diff options
Diffstat (limited to 'net/py-bittorrent-devel/files/extra-psyco-patch-btdownloadheadless.py')
-rw-r--r-- | net/py-bittorrent-devel/files/extra-psyco-patch-btdownloadheadless.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/py-bittorrent-devel/files/extra-psyco-patch-btdownloadheadless.py b/net/py-bittorrent-devel/files/extra-psyco-patch-btdownloadheadless.py new file mode 100644 index 000000000000..93d08d1edb6a --- /dev/null +++ b/net/py-bittorrent-devel/files/extra-psyco-patch-btdownloadheadless.py @@ -0,0 +1,18 @@ +--- btdownloadheadless.py.orig Fri Mar 11 23:14:21 2005 ++++ btdownloadheadless.py Fri Mar 11 23:14:28 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 + import os + import threading |