aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-btlaunchmanycurses.py
blob: a6fc2f146a14edde4903313eb8842355d62cd8d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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