Permalink
Browse files

_NO_FILENO has moved to twisted.internet.posixbase

  • Loading branch information...
1 parent 16382b9 commit 2a8a873b65d79a6483d4c7afb547ed8ce43b8d6e @emikulic committed Dec 26, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 Hellanzb/HellaReactor.py
View
@@ -9,7 +9,11 @@
import Hellanzb, sys, time
import twisted.copyright
-if twisted.copyright.version >= '2.0.0' or twisted.copyright.version >= '10.0.0':
+if twisted.copyright.version >= '11.1.0':
+ from twisted.internet.selectreactor import SelectReactor
+ from twisted.internet.posixbase import _NO_FILENO
+ from twisted.internet.posixbase import _NO_FILEDESC
+elif twisted.copyright.version >= '2.0.0' or twisted.copyright.version >= '10.0.0':
from twisted.internet.selectreactor import SelectReactor
from twisted.internet.selectreactor import _NO_FILENO
from twisted.internet.selectreactor import _NO_FILEDESC

3 comments on commit 2a8a873

Just confirmed that this works against Portage's version of ~net-nntp/hellanzb-0.13-r8 in Gentoo.

I installed hellanzb on Debian Squeeze, I've upgraded it to Wheezy. hellanzb was not able to run.
So this works for me with hellanzb on Debian Wheezy.
The error was : "ImportError: cannot import name _NO_FILENO"
Thanks

Owner

emikulic replied Aug 22, 2013

I'm glad you found the patch useful. I submitted it to Debian ( http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653294 ) but the bug was resolved by removing the hellanzb package entirely.

Please sign in to comment.