summaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent/files/extra-psyco-patch-btmakemetafile.py
blob: 27caf5b03793af5fe65397caef5904a792a05417 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- btmakemetafile.py	Thu Dec 16 11:03:11 2004
+++ btmakemetafile.py	Thu Dec 16 11:15:10 2004
@@ -3,6 +3,15 @@
 # Written by Bram Cohen
 # see LICENSE.txt for license information
 
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+    try:
+	import psyco
+	assert psyco.__version__ >= 0x010300f0
+	psyco.full()
+    except:
+	pass
+
 from sys import argv
 from os.path import getsize, split, join, abspath, isdir
 from os import listdir