summaryrefslogtreecommitdiffstats
path: root/pym/portage/getbinpkg.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-21 17:41:45 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-21 17:41:45 +0000
commitcdd7a8350d5ad23c49c916399dfaace2cd4ab99a (patch)
tree4881d84340d833b0fdbc8f8b77d61f4c001f15b6 /pym/portage/getbinpkg.py
parent1e41a53912fa53b74577752cbbad7cbdd4e2afef (diff)
downloadportage-cdd7a8350d5ad23c49c916399dfaace2cd4ab99a.tar.gz
portage-cdd7a8350d5ad23c49c916399dfaace2cd4ab99a.tar.bz2
portage-cdd7a8350d5ad23c49c916399dfaace2cd4ab99a.zip
Define long as int when Python 3 is used.
svn path=/main/trunk/; revision=14343
Diffstat (limited to 'pym/portage/getbinpkg.py')
-rw-r--r--pym/portage/getbinpkg.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/getbinpkg.py b/pym/portage/getbinpkg.py
index 35bef052a..95bd1dbc6 100644
--- a/pym/portage/getbinpkg.py
+++ b/pym/portage/getbinpkg.py
@@ -51,6 +51,9 @@ try:
except ImportError as e:
sys.stderr.write(colorize("BAD","!!! CANNOT IMPORT HTTP.CLIENT: ")+str(e)+"\n")
+if sys.hexversion >= 0x3000000:
+ long = int
+
def make_metadata_dict(data):
myid,myglob = data