summaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent/files/extra-psyco-patch-torrentinfo-console.py
blob: 4678346cfc5af442e5f099fd0466f00ac36b0d5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- ./torrentinfo-console.py.orig	Thu Mar  1 22:13:28 2007
+++ ./torrentinfo-console.py	Mon May  7 06:06:21 2007
@@ -12,6 +12,13 @@
 
 # Written by Henry 'Pi' James, Loring Holden and Matt Chisholm
 
+try:
+  import psyco
+  assert psyco.__version__ >= 0x010300f0
+  psyco.full()
+except:
+  pass
+
 app_name = "BitTorrent"
 from BTL.translation import _