Mercurial > public > mercurial-scm > hg
comparison mercurial/py3kcompat.py @ 27486:5bfd01a3c2a9
py3compat: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Dec 2015 21:31:57 -0800 |
parents | a7a9d84f5e4a |
children |
comparison
equal
deleted
inserted
replaced
27485:60183975b5bc | 27486:5bfd01a3c2a9 |
---|---|
3 # Copyright 2010 Renato Cunha <renatoc@gmail.com> | 3 # Copyright 2010 Renato Cunha <renatoc@gmail.com> |
4 # | 4 # |
5 # This software may be used and distributed according to the terms of the | 5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2 or any later version. | 6 # GNU General Public License version 2 or any later version. |
7 | 7 |
8 from __future__ import absolute_import | |
9 | |
8 import builtins | 10 import builtins |
11 import numbers | |
9 | 12 |
10 from numbers import Number | 13 Number = numbers.Number |
11 | 14 |
12 def bytesformatter(format, args): | 15 def bytesformatter(format, args): |
13 '''Custom implementation of a formatter for bytestrings. | 16 '''Custom implementation of a formatter for bytestrings. |
14 | 17 |
15 This function currently relies on the string formatter to do the | 18 This function currently relies on the string formatter to do the |