Comments
Patch
@@ -1,18 +1,21 @@
# py3kcompat.py - compatibility definitions for running hg in py3k
#
# Copyright 2010 Renato Cunha <renatoc@gmail.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
+from __future__ import absolute_import
+
import builtins
+import numbers
-from numbers import Number
+Number = numbers.Number
def bytesformatter(format, args):
'''Custom implementation of a formatter for bytestrings.
This function currently relies on the string formatter to do the
formatting and always returns bytes objects.
>>> bytesformatter(20, 10)
@@ -113,17 +113,16 @@
mercurial/keepalive.py requires print_function
mercurial/localrepo.py not using absolute_import
mercurial/lsprof.py requires print_function
mercurial/lsprofcalltree.py not using absolute_import
mercurial/lsprofcalltree.py requires print_function
mercurial/mail.py requires print_function
mercurial/manifest.py not using absolute_import
mercurial/pvec.py not using absolute_import
- mercurial/py3kcompat.py not using absolute_import
setup.py not using absolute_import
tests/filterpyflakes.py requires print_function
tests/generate-working-copy-states.py requires print_function
tests/get-with-headers.py requires print_function
tests/heredoctest.py requires print_function
tests/hypothesishelpers.py not using absolute_import
tests/hypothesishelpers.py requires print_function
tests/killdaemons.py not using absolute_import