summaryrefslogtreecommitdiff
path: root/net/py-bittorrent-devel/files/extra-psyco-patch-bittorrent-curses.py
blob: b46155e5bcb9b9ef56bd3587ddf9aa62767f73f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- bittorrent-curses.py	Wed Oct 12 01:08:15 2005
+++ bittorrent-curses.py	Wed Oct 12 07:57:28 2005
@@ -15,6 +15,13 @@
 
 from __future__ import division
 
+try:
+  import psyco
+  assert psyco.__version__ >= 0x010300f0
+  psyco.full()
+except:
+  pass
+
 from BitTorrent.platform import install_translation
 install_translation()