aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent/files/extra-psyco-patch-btdownloadgui.py
blob: d6af343a19dfe8344d7eaf3cf38091af218c531c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- btdownloadgui.py.orig	Mon May 30 00:19:57 2005
+++ btdownloadgui.py	Mon May 30 00:20:19 2005
@@ -14,6 +14,15 @@
 
 from __future__ import division
 
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+    try:
+       import psyco
+       assert psyco.__version__ >= 0x010300f0
+       psyco.full()
+    except:
+       pass
+
 import sys
 
 assert sys.version_info >= (2, 3), "Install Python 2.3 or greater"