summaryrefslogtreecommitdiff
path: root/news/hellanzb/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'news/hellanzb/patches/patch-ad')
-rw-r--r--news/hellanzb/patches/patch-ad15
1 files changed, 15 insertions, 0 deletions
diff --git a/news/hellanzb/patches/patch-ad b/news/hellanzb/patches/patch-ad
new file mode 100644
index 00000000000..b04d23afd86
--- /dev/null
+++ b/news/hellanzb/patches/patch-ad
@@ -0,0 +1,15 @@
+$NetBSD: patch-ad,v 1.1 2010/11/27 13:51:24 abs Exp $
+
+Handle twisted.copyright.versions such as 10.0.0
+
+--- Hellanzb/HellaXMLRPC/xmlrpc.py.orig 2008-07-30 12:30:03.000000000 +0000
++++ Hellanzb/HellaXMLRPC/xmlrpc.py
+@@ -31,7 +31,7 @@ from twisted.internet import defer, prot
+ from twisted.python import log, reflect
+
+ import twisted.copyright
+-if twisted.copyright.version >= '2.0.0':
++if int(twisted.copyright.version.partition('.')[0]) >= 2:
+ from twisted.web import http
+ else:
+ from twisted.protocols import http