freebsd-ports/net-p2p/py-bittorrent/files/extra-psyco-patch-btdownloadgui.py
Mario Sergio Fujikawa Ferreira 6335722ac1 Update to 4.0.2
2005-05-30 03:27:00 +00:00

18 lines
409 B
Python

--- btdownloadgui.py.orig Mon May 30 00:19:57 2005
+++ btdownloadgui.py Mon May 30 00:20:19 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
+
import sys
assert sys.version_info >= (2, 3), "Install Python 2.3 or greater"