aboutsummaryrefslogtreecommitdiff
path: root/net/py-bittorrent-devel/files/extra-psyco-patch-btshowmetainfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'net/py-bittorrent-devel/files/extra-psyco-patch-btshowmetainfo.py')
-rw-r--r--net/py-bittorrent-devel/files/extra-psyco-patch-btshowmetainfo.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/py-bittorrent-devel/files/extra-psyco-patch-btshowmetainfo.py b/net/py-bittorrent-devel/files/extra-psyco-patch-btshowmetainfo.py
new file mode 100644
index 000000000000..a9f1be8c736e
--- /dev/null
+++ b/net/py-bittorrent-devel/files/extra-psyco-patch-btshowmetainfo.py
@@ -0,0 +1,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 *