File: 0002-Reproducible-build.patch

package info (click to toggle)
python-pysnmp4 4.4.12-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,476 kB
  • sloc: python: 20,332; makefile: 166; sh: 23
file content (17 lines) | stat: -rw-r--r-- 725 bytes parent folder | download | duplicates (3)
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]