diff options
Diffstat (limited to 'net/py-bittorrent-devel/files/extra-psyco-patch-bittorrent-tracker.py')
-rw-r--r-- | net/py-bittorrent-devel/files/extra-psyco-patch-bittorrent-tracker.py | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/net/py-bittorrent-devel/files/extra-psyco-patch-bittorrent-tracker.py b/net/py-bittorrent-devel/files/extra-psyco-patch-bittorrent-tracker.py index 384b9ba883a7..d2e5b60d36d2 100644 --- a/net/py-bittorrent-devel/files/extra-psyco-patch-bittorrent-tracker.py +++ b/net/py-bittorrent-devel/files/extra-psyco-patch-bittorrent-tracker.py @@ -1,18 +1,16 @@ ---- 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 @@ +--- bittorrent-tracker.py Wed Oct 12 01:08:15 2005 ++++ bittorrent-tracker.py Wed Oct 12 07:57:55 2005 +@@ -12,6 +12,13 @@ # Written by Bram Cohen -+from BitTorrent import PSYCO -+if PSYCO.psyco: -+ try: -+ import psyco -+ assert psyco.__version__ >= 0x010300f0 -+ psyco.full() -+ except: -+ pass ++try: ++ import psyco ++ assert psyco.__version__ >= 0x010300f0 ++ psyco.full() ++except: ++ pass + if __name__ == '__main__': - import gettext - gettext.install('bittorrent', 'locale') + from BitTorrent.platform import install_translation + install_translation() |