aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent/files/extra-psyco-patch-btshowmetainfo.py
blob: a9f1be8c736eda1b70353f63c2590cb6eb38e19e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- btshowmetainfo.py.orig	Fri Mar 11 23:16:39 2005
+++ btshowmetainfo.py	Fri Mar 11 23:16:48 2005
@@ -12,6 +12,15 @@
 
 # Written by Henry 'Pi' James and Loring Holden
 
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+    try:
+       import psyco
+       assert psyco.__version__ >= 0x010300f0
+       psyco.full()
+    except:
+       pass
+
 from sys import *
 from os.path import *
 from sha import *