pkgsrc/news/hellanzb/patches/patch-ac
2010-11-27 13:51:24 +00:00

15 lines
530 B
Text

$NetBSD: patch-ac,v 1.1 2010/11/27 13:51:24 abs Exp $
Handle twisted.copyright.versions such as 10.0.0
--- Hellanzb/HellaXMLRPC/HtPasswdAuth.py.orig 2008-07-30 12:30:03.000000000 +0000
+++ Hellanzb/HellaXMLRPC/HtPasswdAuth.py
@@ -13,7 +13,7 @@ from twisted.web import static
from twisted.web.resource import Resource
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