for performance reasons o Use WITHOUT_PSYCO to disable the support o Idea borrowed from net/py-bittornado CVS: http://www.bittornado.com/ Obtained from: BitTornado
18 lines
441 B
Python
18 lines
441 B
Python
--- btdownloadcurses.py Thu Dec 16 11:03:11 2004
|
|
+++ btdownloadcurses.py Thu Dec 16 11:13:54 2004
|
|
@@ -3,6 +3,15 @@
|
|
# Written by Henry 'Pi' James
|
|
# see LICENSE.txt for license information
|
|
|
|
+from BitTorrent import PSYCO
|
|
+if PSYCO.psyco:
|
|
+ try:
|
|
+ import psyco
|
|
+ assert psyco.__version__ >= 0x010300f0
|
|
+ psyco.full()
|
|
+ except:
|
|
+ pass
|
|
+
|
|
from BitTorrent.download import download
|
|
from threading import Event
|
|
from os.path import abspath
|