diff options
Diffstat (limited to 'net-p2p/py-bittorrent-devel/files/extra-psyco-patch-maketorrent.py')
-rw-r--r-- | net-p2p/py-bittorrent-devel/files/extra-psyco-patch-maketorrent.py | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-maketorrent.py b/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-maketorrent.py index 59218397b371..9675c99cda69 100644 --- a/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-maketorrent.py +++ b/net-p2p/py-bittorrent-devel/files/extra-psyco-patch-maketorrent.py @@ -1,18 +1,16 @@ ---- maketorrent.py.orig Tue Aug 23 22:49:16 2005 -+++ maketorrent.py Tue Aug 23 22:50:45 2005 -@@ -14,6 +14,15 @@ +--- maketorrent.py Wed Oct 12 01:08:27 2005 ++++ maketorrent.py Wed Oct 12 07:58:35 2005 +@@ -14,6 +14,13 @@ from __future__ import division -+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 + - import gettext - gettext.install('bittorrent', 'locale') + from BitTorrent.platform import install_translation + install_translation() |