diff options
author | Ilya Etingof <etingof@gmail.com> | 2019-02-10 16:38:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-10 16:38:35 +0100 |
commit | 588b9b902d191d8010cb6b247fcb07887d59542c (patch) | |
tree | 419b01d2598e91331db784ac3a6675324aba8c24 /pysnmp/carrier/twisted/dgram/udp.py | |
parent | 9664858b145140a4fbb2a22b633c1ab41c2555bd (diff) | |
download | pysnmp-git-588b9b902d191d8010cb6b247fcb07887d59542c.tar.gz |
Uppercase global constants (#238)
This is a massive patch essentially upper-casing global/class attributes
that mean to be constants.
Some previously exposed constants have been preserved for compatibility
reasons (notably, in `hlapi`), though the rest might break user code relying
on pysnmp 4.
Diffstat (limited to 'pysnmp/carrier/twisted/dgram/udp.py')
-rw-r--r-- | pysnmp/carrier/twisted/dgram/udp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pysnmp/carrier/twisted/dgram/udp.py b/pysnmp/carrier/twisted/dgram/udp.py index bdb93cdd..eb47bb24 100644 --- a/pysnmp/carrier/twisted/dgram/udp.py +++ b/pysnmp/carrier/twisted/dgram/udp.py @@ -10,7 +10,7 @@ from pysnmp.carrier.base import AbstractTransportAddress from pysnmp.carrier.twisted.dgram.base import DgramTwistedTransport from pysnmp.carrier import error -domainName = snmpUDPDomain = (1, 3, 6, 1, 6, 1, 1) +DOMAIN_NAME = SNMP_UDP_DOMAIN = (1, 3, 6, 1, 6, 1, 1) class UdpTransportAddress(tuple, AbstractTransportAddress): @@ -18,7 +18,7 @@ class UdpTransportAddress(tuple, AbstractTransportAddress): class UdpTwistedTransport(DgramTwistedTransport): - addressType = UdpTransportAddress + ADDRESS_TYPE = UdpTransportAddress _lport = None # AbstractTwistedTransport API |