diff options
Diffstat (limited to 'net/py-bittorrent/files/extra-psyco-patch-btdownloadcurses.py')
-rw-r--r-- | net/py-bittorrent/files/extra-psyco-patch-btdownloadcurses.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/py-bittorrent/files/extra-psyco-patch-btdownloadcurses.py b/net/py-bittorrent/files/extra-psyco-patch-btdownloadcurses.py new file mode 100644 index 000000000000..f9914687c61b --- /dev/null +++ b/net/py-bittorrent/files/extra-psyco-patch-btdownloadcurses.py @@ -0,0 +1,18 @@ +--- btdownloadcurses.py Thu Dec 16 11:03:11 2004 ++++ btdownloadcurses.py Thu Dec 16 11:13:54 2004 +@@ -3,6 +3,15 @@ + # Written by Henry 'Pi' James + # see LICENSE.txt for license information + ++from BitTorrent import PSYCO ++if PSYCO.psyco: ++ try: ++ import psyco ++ assert psyco.__version__ >= 0x010300f0 ++ psyco.full() ++ except: ++ pass ++ + from BitTorrent.download import download + from threading import Event + from os.path import abspath |