mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
e7fca6a53f
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
19 lines
477 B
Python
19 lines
477 B
Python
--- btlaunchmanycurses.py Thu Dec 16 11:03:11 2004
|
|
+++ btlaunchmanycurses.py Thu Dec 16 11:14:47 2004
|
|
@@ -7,6 +7,15 @@
|
|
# fmttime and fmtsize stolen from btdownloadcurses.
|
|
# 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 Thread, Event, Lock
|
|
from os import listdir
|