aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/py-bittorrent/files/extra-psyco-patch-btreannouce.py
blob: 9cb26a477321161cb5b7a53f4a966ab2c41bb3f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- btreannounce.py.orig	Fri Mar 11 23:15:59 2005
+++ btreannounce.py	Fri Mar 11 23:16:05 2005
@@ -12,6 +12,15 @@
 
 # Written by Henry 'Pi' James and Bram Cohen
 
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+    try:
+       import psyco
+       assert psyco.__version__ >= 0x010300f0
+       psyco.full()
+    except:
+       pass
+
 from sys import argv
 from BitTorrent.bencode import bencode, bdecode