diff options
Diffstat (limited to 'net-p2p/py-bittorrent-devel/files/extra-psyco-patch-bittorrent-tracker.py')
-rw-r--r-- | net-p2p/py-bittorrent-devel/files/extra-psyco-patch-bittorrent-tracker.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-bittorrent-tracker.py b/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-bittorrent-tracker.py new file mode 100644 index 000000000000..384b9ba883a7 --- /dev/null +++ b/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-bittorrent-tracker.py @@ -0,0 +1,18 @@ +--- bittorrent-tracker.py.orig Tue Aug 23 22:49:16 2005 ++++ bittorrent-tracker.py Tue Aug 23 22:50:14 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 ++ + if __name__ == '__main__': + import gettext + gettext.install('bittorrent', 'locale') |