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