diff options
Diffstat (limited to 'net/py-bittorrent/files/extra-psyco-patch-btdownloadgui.py')
-rw-r--r-- | net/py-bittorrent/files/extra-psyco-patch-btdownloadgui.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/py-bittorrent/files/extra-psyco-patch-btdownloadgui.py b/net/py-bittorrent/files/extra-psyco-patch-btdownloadgui.py new file mode 100644 index 000000000000..d9f8aa0300da --- /dev/null +++ b/net/py-bittorrent/files/extra-psyco-patch-btdownloadgui.py @@ -0,0 +1,18 @@ +--- btdownloadgui.py Thu Dec 16 11:03:11 2004 ++++ btdownloadgui.py Thu Dec 16 11:14:07 2004 +@@ -3,6 +3,15 @@ + # Written by Bram Cohen and Myers Carpenter + # 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 sys import argv + from BitTorrent import version + from BitTorrent.download import download |