aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent/files/extra-psyco-patch-maketorrent.py
blob: 5eeefc4a53b6558e40fe41d7a0ee58531022a15b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- maketorrent.py.orig	Tue Jun  6 20:43:43 2006
+++ maketorrent.py	Thu Jun 15 14:46:45 2006
@@ -14,6 +14,13 @@
 
 from __future__ import division
 
+try:
+  import psyco
+  assert psyco.__version__ >= 0x010300f0
+  psyco.full()
+except:
+  pass
+
 app_name = "BitTorrent"
 from BTL.translation import _