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