diff options
Diffstat (limited to 'net/py-bittorrent-devel/files/extra-psyco-patch-btmaketorrent.py')
-rw-r--r-- | net/py-bittorrent-devel/files/extra-psyco-patch-btmaketorrent.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/py-bittorrent-devel/files/extra-psyco-patch-btmaketorrent.py b/net/py-bittorrent-devel/files/extra-psyco-patch-btmaketorrent.py new file mode 100644 index 000000000000..89e4cb15cf3d --- /dev/null +++ b/net/py-bittorrent-devel/files/extra-psyco-patch-btmaketorrent.py @@ -0,0 +1,18 @@ +--- btmaketorrent.py.orig Fri Mar 11 23:15:38 2005 ++++ btmaketorrent.py Fri Mar 11 23:15:43 2005 +@@ -12,6 +12,15 @@ + + # Written by Bram Cohen + ++from BitTorrent import PSYCO ++if PSYCO.psyco: ++ try: ++ import psyco ++ assert psyco.__version__ >= 0x010300f0 ++ psyco.full() ++ except: ++ pass ++ + import sys + from BitTorrent.makemetafile import make_meta_files + from BitTorrent.parseargs import parseargs, printHelp |