summaryrefslogtreecommitdiff
path: root/pysnmp/smi
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-07-23 13:32:20 +0200
committerIlya Etingof <etingof@gmail.com>2017-07-23 13:32:20 +0200
commit3e7f2e6e1090b24a7666259302bc5bc48561011d (patch)
treef2eea8928258af69f4f3cc1720ad18ffb4fe7116 /pysnmp/smi
parent311c004d52aa6407ee767f6ec44d11bca7849ebd (diff)
downloadpysnmp-git-3e7f2e6e1090b24a7666259302bc5bc48561011d.tar.gz
better pyasn1 types specialization
Diffstat (limited to 'pysnmp/smi')
-rw-r--r--pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py b/pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py
index afa566b9..0fa8f539 100644
--- a/pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py
+++ b/pysnmp/smi/mibs/SNMP-FRAMEWORK-MIB.py
@@ -62,13 +62,13 @@ class SnmpEngineID(TextualConvention, OctetString):
class SnmpEngineTime(Integer32):
- def clone(self, value=None, tagSet=None, subtypeSpec=None):
- if value is None:
+ def clone(self, *args, **kwargs):
+ if not args:
try:
- value = time.time() - self
+ args = (time.time() - self,)
except Exception:
pass
- return Integer32.clone(self, value, tagSet, subtypeSpec)
+ return Integer32.clone(self, *args, **kwargs)
class SnmpSecurityModel(Integer32, TextualConvention):