summaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent/files/extra-psyco-patch-btmaketorrentgui.py
blob: a635ddfdd4623cfdfee13c4d3cb99e05ff548bbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- btmaketorrentgui.py.orig	Mon May 30 00:20:48 2005
+++ btmaketorrentgui.py	Mon May 30 00:21:00 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 os
 import sys