summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2019-08-10 20:08:21 +0200
committerIlya Etingof <etingof@gmail.com>2019-08-10 20:08:21 +0200
commit6049b0cfc4b34ded72da44a8c97c56799c00127c (patch)
tree002c1da1bf31db9b73e857be73c5793867db86d0
parentc351e90391b7772c3d93e63b64d479cae5f44f6b (diff)
downloadpysnmp-git-6049b0cfc4b34ded72da44a8c97c56799c00127c.tar.gz
Pin Twisted on Python < 3.5
-rw-r--r--devel-requirements.txt8
-rw-r--r--examples/v3arch/asyncore/agent/cmdrsp/multiple-usm-users.py2
2 files changed, 8 insertions, 2 deletions
diff --git a/devel-requirements.txt b/devel-requirements.txt
index d03c9630..02629f5e 100644
--- a/devel-requirements.txt
+++ b/devel-requirements.txt
@@ -1,10 +1,16 @@
Sphinx <= 1.6; python_version < '2.7'
Sphinx > 1.6; python_version >= '2.7'
trollius; python_version < '3.0'
+# NOTE: Twisted < 19.2.1 has a security problem in URL handling.
+# However, newer Twisted does not work on older Pythons. That's why
+# we have to pin to older Twisted here.
+# On the other hand, pysnmp does not use anything HTTP, however other
+# dependencies can rely on that.
twisted < 15.4; python_version < '2.7'
twisted; python_version == '2.7'
twisted < 17.9; python_version == '3.0'
twisted < 17.9; python_version == '3.1'
twisted < 17.9; python_version == '3.2'
twisted <= 17.9; python_version == '3.3'
-twisted; python_version >= '3.4'
+twisted <= 17.9; python_version == '3.4'
+twisted; python_version >= '3.5'
diff --git a/examples/v3arch/asyncore/agent/cmdrsp/multiple-usm-users.py b/examples/v3arch/asyncore/agent/cmdrsp/multiple-usm-users.py
index 3b1119dd..9d1454ce 100644
--- a/examples/v3arch/asyncore/agent/cmdrsp/multiple-usm-users.py
+++ b/examples/v3arch/asyncore/agent/cmdrsp/multiple-usm-users.py
@@ -32,7 +32,7 @@ snmpEngine = engine.SnmpEngine()
config.addTransport(
snmpEngine,
udp.domainName,
- udp.UdpTransport().openServerMode(('127.0.0.1', 161))
+ udp.UdpTransport().openServerMode(('127.0.0.1', 1161))
)
# SNMPv3/USM setup