1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Chris Lamb <lamby@debian.org>
Date: Fri, 8 Apr 2022 14:22:53 +0000
Subject: Make the build reproducible
Last-Update: 2025-09-16
---
pysnmp/smi/rfc1902.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pysnmp/smi/rfc1902.py b/pysnmp/smi/rfc1902.py
index 87a9d4e..14702ed 100644
--- a/pysnmp/smi/rfc1902.py
+++ b/pysnmp/smi/rfc1902.py
@@ -862,8 +862,11 @@
ST_DIRTY, ST_CLEAN = 1, 2
def __init__(
- self, objectIdentity, objectSyntax: SimpleAsn1Type = rfc1905.unSpecified
+ self, objectIdentity, objectSyntax: SimpleAsn1Type = None
):
+ if objectSyntax is None:
+ objectSyntax = rfc1905.unSpecified
+
"""Create an ObjectType instance."""
if not isinstance(objectIdentity, ObjectIdentity):
raise SmiError(
|