summaryrefslogblamecommitdiff
path: root/net-p2p/py-bittorrent/files/extra-psyco-patch-bittorrent.py
blob: dc8724ca12ecf541f65fbc6eb7dc7e3825ea2e65 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13

                                                        










                                         
                        
 
          
--- ./bittorrent.py.orig	Thu Mar  1 22:12:53 2007
+++ ./bittorrent.py	Mon May  7 06:06:21 2007
@@ -14,6 +14,13 @@
 
 from __future__ import division
 
+try:
+  import psyco
+  assert psyco.__version__ >= 0x010300f0
+  psyco.full()
+except:
+  pass
+
 app_name = "BitTorrent"
 
 import os