File: 0002-Reproducible-build.patch

package info (click to toggle)
python-pysnmp4 7.1.21-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,564 kB
  • sloc: python: 33,654; makefile: 166; javascript: 4
file content (26 lines) | stat: -rw-r--r-- 814 bytes parent folder | download
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(