Mercurial > public > mercurial-scm > python-hglib
diff hglib/util.py @ 153:ef8eb78fc88d
hglib: don't try to use long under Python 3 (issue4520)
author | Brett Cannon <brett@python.org> |
---|---|
date | Fri, 20 Mar 2015 16:34:42 -0400 |
parents | 0808bb03add5 |
children | 2104fc9aa513 |
line wrap: on
line diff
--- a/hglib/util.py Fri Mar 20 16:32:53 2015 -0400 +++ b/hglib/util.py Fri Mar 20 16:34:42 2015 -0400 @@ -7,12 +7,14 @@ if sys.version_info[0] > 2: izip = zip + integertypes = (int,) def b(s): """Encode the string as bytes.""" return s.encode('latin-1') else: from itertools import izip + integertypes = (long, int) def b(s): """Encode the string as bytes."""