1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Make the build reproducible
Author: Chris Lamb <lamby@debian.org>
Last-Update: 2018-01-01
--- python-pysnmp4-4.4.3.orig/pysnmp/smi/rfc1902.py
+++ python-pysnmp4-4.4.3/pysnmp/smi/rfc1902.py
@@ -695,7 +695,9 @@ class ObjectType(object):
"""
stDirty, stClean = 1, 2
- def __init__(self, objectIdentity, objectSyntax=rfc1905.unSpecified):
+ def __init__(self, objectIdentity, objectSyntax=None):
+ if objectSyntax is None:
+ objectSyntax = rfc1905.unSpecified
if not isinstance(objectIdentity, ObjectIdentity):
raise SmiError('initializer should be ObjectIdentity instance, not %r' % (objectIdentity,))
self.__args = [objectIdentity, objectSyntax]
|