aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-btmaketorrentgui.py
blob: 25d9dbbfe99f1a15d47d1e99c07c934f277b7e7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- btmaketorrentgui.py.orig	Sun May 29 23:28:15 2005
+++ btmaketorrentgui.py	Sun May 29 23:31:51 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 gettext
 gettext.install('bittorrent', 'locale')