Show More
@@ -5,8 +5,15 b'' | |||
|
5 | 5 | # This software may be used and distributed according to the terms of the |
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | import error | |
|
9 | import unicodedata, locale, os | |
|
8 | from __future__ import absolute_import | |
|
9 | ||
|
10 | import locale | |
|
11 | import os | |
|
12 | import unicodedata | |
|
13 | ||
|
14 | from . import ( | |
|
15 | error, | |
|
16 | ) | |
|
10 | 17 | |
|
11 | 18 | # These unicode characters are ignored by HFS+ (Apple Technote 1150, |
|
12 | 19 | # "Unicode Subtleties"), so we need to ignore them in some places for |
@@ -194,7 +201,7 b" def trim(s, width, ellipsis='', leftside" | |||
|
194 | 201 | 'ellipsis' is always placed at trimmed side. |
|
195 | 202 | |
|
196 | 203 | >>> ellipsis = '+++' |
|
197 |
>>> from |
|
|
204 | >>> from . import encoding | |
|
198 | 205 | >>> encoding.encoding = 'utf-8' |
|
199 | 206 | >>> t= '1234567890' |
|
200 | 207 | >>> print trim(t, 12, ellipsis=ellipsis) |
@@ -290,7 +297,7 b' def _asciilower(s):' | |||
|
290 | 297 | def asciilower(s): |
|
291 | 298 | # delay importing avoids cyclic dependency around "parsers" in |
|
292 | 299 | # pure Python build (util => i18n => encoding => parsers => util) |
|
293 | import parsers | |
|
300 | from . import parsers | |
|
294 | 301 | impl = getattr(parsers, 'asciilower', _asciilower) |
|
295 | 302 | global asciilower |
|
296 | 303 | asciilower = impl |
@@ -306,7 +313,7 b' def _asciiupper(s):' | |||
|
306 | 313 | def asciiupper(s): |
|
307 | 314 | # delay importing avoids cyclic dependency around "parsers" in |
|
308 | 315 | # pure Python build (util => i18n => encoding => parsers => util) |
|
309 | import parsers | |
|
316 | from . import parsers | |
|
310 | 317 | impl = getattr(parsers, 'asciiupper', _asciiupper) |
|
311 | 318 | global asciiupper |
|
312 | 319 | asciiupper = impl |
@@ -104,7 +104,6 b'' | |||
|
104 | 104 | mercurial/context.py not using absolute_import |
|
105 | 105 | mercurial/dirstate.py not using absolute_import |
|
106 | 106 | mercurial/dispatch.py requires print_function |
|
107 | mercurial/encoding.py not using absolute_import | |
|
108 | 107 | mercurial/exchange.py not using absolute_import |
|
109 | 108 | mercurial/help.py not using absolute_import |
|
110 | 109 | mercurial/httpclient/__init__.py not using absolute_import |
General Comments 0
You need to be logged in to leave comments.
Login now