diff options
author | elie <elie> | 2005-06-28 17:39:58 +0000 |
---|---|---|
committer | elie <elie> | 2005-06-28 17:39:58 +0000 |
commit | 4facaa7a9aed4026fd83b3d70bae51535e0e89d6 (patch) | |
tree | 8e030f827fe3546e0c3505468221f5e816be3f85 /pysnmp/proto/rfc1902.py | |
parent | d6b57fa87ef21c73d2651fd1b2b81a33b0e7ab7b (diff) | |
download | pysnmp-git-4facaa7a9aed4026fd83b3d70bae51535e0e89d6.tar.gz |
prettyIn & prettyOut become public methods
Diffstat (limited to 'pysnmp/proto/rfc1902.py')
-rw-r--r-- | pysnmp/proto/rfc1902.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pysnmp/proto/rfc1902.py b/pysnmp/proto/rfc1902.py index c3cfbb89..698b920a 100644 --- a/pysnmp/proto/rfc1902.py +++ b/pysnmp/proto/rfc1902.py @@ -25,8 +25,8 @@ class IpAddress(univ.OctetString): subtypeSpec = univ.OctetString.subtypeSpec+constraint.ValueSizeConstraint( 4, 4 ) - def _prettyIn(self, value): return rfc1155.ipAddressPrettyIn(value) - def _prettyOut(self, value): return rfc1155.ipAddressPrettyOut(value) + def prettyIn(self, value): return rfc1155.ipAddressPrettyIn(value) + def prettyOut(self, value): return rfc1155.ipAddressPrettyOut(value) class Counter32(univ.Integer): tagSet = univ.Integer.tagSet.tagImplicitly( @@ -85,7 +85,7 @@ class Bits(univ.OctetString): self, value, tagSet, subtypeSpec ) - def _prettyIn(self, bits): + def prettyIn(self, bits): if type(bits) == types.StringType: return bits # raw bitstring octets = [] @@ -101,7 +101,7 @@ class Bits(univ.OctetString): octets[d] = octets[d] | 0x01 << (7-m) return string.join(map(lambda x: chr(x), octets)) - def _prettyOut(self, value): + def prettyOut(self, value): names = [] octets = tuple(map(None, value)) i = 0 |