summaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-torrentinfo-console.py
blob: c8a19d96f6e1c90bc92ea867a4ea8e539baab72f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- torrentinfo-console.py.orig	Tue Aug 23 22:49:16 2005
+++ torrentinfo-console.py	Tue Aug 23 22:50:55 2005
@@ -12,6 +12,15 @@
 
 # Written by Henry 'Pi' James, Loring Holden and Matt Chisholm
 
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+    try:
+       import psyco
+       assert psyco.__version__ >= 0x010300f0
+       psyco.full()
+    except:
+       pass
+
 import gettext
 gettext.install('bittorrent', 'locale')