summaryrefslogtreecommitdiff
path: root/net/py-bittorrent-devel/files/extra-psyco-patch-maketorrent-console.py
blob: 476f36587378b184f6ef16bf8b6b827fb229835d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- maketorrent-console.py	Wed Oct 12 01:08:27 2005
+++ maketorrent-console.py	Wed Oct 12 07:58:31 2005
@@ -12,6 +12,13 @@
 
 # Written by Bram Cohen
 
+try:
+  import psyco
+  assert psyco.__version__ >= 0x010300f0
+  psyco.full()
+except:
+  pass
+
 if __name__ == '__main__':
     from BitTorrent.platform import install_translation
     install_translation()