summaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent/files/extra-psyco-patch-bittorrent-console.py
blob: 6756d3312233ac0a35396f348865ebeb18e146dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- ./bittorrent-console.py.orig	Thu Mar  1 22:12:51 2007
+++ ./bittorrent-console.py	Mon May  7 06:06:21 2007
@@ -14,6 +14,13 @@
 
 from __future__ import division
 
+try:
+  import psyco
+  assert psyco.__version__ >= 0x010300f0
+  psyco.full()
+except:
+  pass
+
 app_name = "BitTorrent"
 from BitTorrent.translation import _
 import sys