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