aboutsummaryrefslogtreecommitdiff
path: root/net/py-bittorrent-devel/files/extra-psyco-patch-torrentinfo-console.py
blob: bf6128eb8b65e3efcd2e170b907de6801d42e8e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- torrentinfo-console.py	Wed Oct 12 01:08:50 2005
+++ torrentinfo-console.py	Wed Oct 12 07:58:48 2005
@@ -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
+
 from BitTorrent.platform import install_translation
 install_translation()