]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - const.py
major cleanup, updated for twisted
[quix0rs-apt-p2p.git] / const.py
index b91996a7813ce085fe5940321ae0a74aa9db98e2..1a42485421ac7c2fd33ffb5d5535a460281e9990 100644 (file)
--- a/const.py
+++ b/const.py
@@ -1,6 +1,7 @@
 ## Copyright 2002-2003 Andrew Loewenstern, All Rights Reserved
 # see LICENSE.txt for license information
 
+"""
 from twisted.internet.default import SelectReactor ## twistedmatrix.com
 
 reactor = SelectReactor()
@@ -14,6 +15,8 @@ try:
     reactor.installResolver(twisted.names.client.theResolver)
 except IOError:
     print "no resolv.conf!"
+"""
+from twisted.internet import reactor
 
 # magic id to use before we know a peer's id
 NULL_ID =  20 * '\0'