summaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-bittorrent-curses.py
blob: 51f59f66073a11fecb2490105e2ed47a6701f856 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- bittorrent-curses.py.orig	Tue Aug 23 22:49:16 2005
+++ bittorrent-curses.py	Tue Aug 23 22:49:59 2005
@@ -15,6 +15,15 @@
 
 from __future__ import division
 
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+    try:
+       import psyco
+       assert psyco.__version__ >= 0x010300f0
+       psyco.full()
+    except:
+       pass
+
 import gettext
 gettext.install('bittorrent', 'locale')