aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent/files/extra-psyco-patch-btlaunchmanycurses.py
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/py-bittorrent/files/extra-psyco-patch-btlaunchmanycurses.py')
-rw-r--r--net-p2p/py-bittorrent/files/extra-psyco-patch-btlaunchmanycurses.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-p2p/py-bittorrent/files/extra-psyco-patch-btlaunchmanycurses.py b/net-p2p/py-bittorrent/files/extra-psyco-patch-btlaunchmanycurses.py
new file mode 100644
index 000000000000..7cf9c34eefdb
--- /dev/null
+++ b/net-p2p/py-bittorrent/files/extra-psyco-patch-btlaunchmanycurses.py
@@ -0,0 +1,18 @@
+--- 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