Skip to content

Commit

Permalink
Reverted some fixed length related changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Nov 5, 2024
1 parent dd5c7d2 commit d33ceed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pysnmp/proto/rfc1902.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,20 +234,20 @@ class instance.
# having zero-range size constraint applied. The following is
# supposed to be used for setting and querying this property.

fixed_length = None
fixedLength = None

def set_fixed_length(self, value):
"""Set fixed length."""
self.fixed_length = value
self.fixedLength = value
return self

def is_fixed_length(self):
"""Return if fixed length."""
return self.fixed_length is not None
return self.fixedLength is not None

def get_fixed_length(self):
"""Return fixed length."""
return self.fixed_length
return self.fixedLength

def clone(self, *args, **kwargs):
"""Clone the data."""
Expand Down Expand Up @@ -367,7 +367,7 @@ class IpAddress(OctetString):
subtypeSpec = OctetString.subtypeSpec + constraint.ValueSizeConstraint(
4, 4
) # noqa: N815
fixed_length = 4
fixedLength = 4

def prettyIn(self, value): # noqa: N802
"""Convert string to IP address."""
Expand Down

0 comments on commit d33ceed

Please sign in to comment.