freebsd-ports/net-p2p/py-bittorrent/files/extra-psyco-patch-btlaunchmanycurses.py
Mario Sergio Fujikawa Ferreira 818beb0701 o Update to 4.0 which supports new protocol standards
o The GUI interface now depends on x11-toolkits/py-gtk2 instead of
  x11-toolkits/py-wxPython
2005-03-12 23:19:07 +00:00

18 lines
381 B
Python

--- btlaunchmanycurses.py.orig Fri Mar 11 23:15:15 2005
+++ btlaunchmanycurses.py Fri Mar 11 23:15:22 2005
@@ -14,6 +14,15 @@
from __future__ import division
+from BitTorrent import PSYCO
+if PSYCO.psyco:
+ try:
+ import psyco
+ assert psyco.__version__ >= 0x010300f0
+ psyco.full()
+ except:
+ pass
+
DOWNLOAD_SCROLL_RATE = 1
import sys, os