summaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-btlaunchmanycurses.py
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/py-bittorrent-devel/files/extra-psyco-patch-btlaunchmanycurses.py')
-rw-r--r--net-p2p/py-bittorrent-devel/files/extra-psyco-patch-btlaunchmanycurses.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-btlaunchmanycurses.py b/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-btlaunchmanycurses.py
new file mode 100644
index 000000000000..a6fc2f146a14
--- /dev/null
+++ b/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-btlaunchmanycurses.py
@@ -0,0 +1,18 @@
+--- btlaunchmanycurses.py.orig Fri Mar 11 23:15:15 2005
++++ btlaunchmanycurses.py Fri Mar 11 23:15:22 2005
+@@ -14,6 +14,15 @@
+
+ from __future__ import division
+
++from BitTorrent import PSYCO
++if PSYCO.psyco:
++ try:
++ import psyco
++ assert psyco.__version__ >= 0x010300f0
++ psyco.full()
++ except:
++ pass
++
+ DOWNLOAD_SCROLL_RATE = 1
+
+ import sys, os