Show More
@@ -12,7 +12,6 b' import socket' | |||
|
12 | 12 | |
|
13 | 13 | from mercurial.i18n import _ |
|
14 | 14 | from mercurial.pycompat import ( |
|
15 | getattr, | |
|
16 | 15 | open, |
|
17 | 16 | ) |
|
18 | 17 | from mercurial import ( |
@@ -27,8 +27,6 b' import svn.ra' | |||
|
27 | 27 | Pool = svn.core.Pool |
|
28 | 28 | SubversionException = svn.core.SubversionException |
|
29 | 29 | |
|
30 | from mercurial.pycompat import getattr | |
|
31 | ||
|
32 | 30 | # Some older versions of the Python bindings need to be |
|
33 | 31 | # explicitly initialized. But what we want to do probably |
|
34 | 32 | # won't work worth a darn against those libraries anyway! |
@@ -48,7 +48,6 b' service entry controls the service name ' | |||
|
48 | 48 | |
|
49 | 49 | import os |
|
50 | 50 | from mercurial.i18n import _ |
|
51 | from mercurial.pycompat import setattr | |
|
52 | 51 | from mercurial.utils import procutil |
|
53 | 52 | from mercurial import ( |
|
54 | 53 | error, |
@@ -12,9 +12,7 b' import os' | |||
|
12 | 12 | |
|
13 | 13 | from mercurial.i18n import _ |
|
14 | 14 | from mercurial.pycompat import ( |
|
15 | getattr, | |
|
16 | 15 | open, |
|
17 | setattr, | |
|
18 | 16 | ) |
|
19 | 17 | from mercurial.node import ( |
|
20 | 18 | bin, |
@@ -6,7 +6,6 b'' | |||
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | 8 | |
|
9 | from mercurial.pycompat import getattr | |
|
10 | 9 | from mercurial import ( |
|
11 | 10 | context as hgcontext, |
|
12 | 11 | dagop, |
@@ -207,7 +207,6 b' import struct' | |||
|
207 | 207 | |
|
208 | 208 | from mercurial.i18n import _ |
|
209 | 209 | from mercurial.pycompat import ( |
|
210 | getattr, | |
|
211 | 210 | open, |
|
212 | 211 | ) |
|
213 | 212 | from mercurial.node import ( |
@@ -88,7 +88,6 b' import re' | |||
|
88 | 88 | import weakref |
|
89 | 89 | |
|
90 | 90 | from mercurial.i18n import _ |
|
91 | from mercurial.pycompat import getattr | |
|
92 | 91 | from mercurial.hgweb import webcommands |
|
93 | 92 | |
|
94 | 93 | from mercurial import ( |
@@ -5,7 +5,6 b'' | |||
|
5 | 5 | import re |
|
6 | 6 | |
|
7 | 7 | from mercurial.i18n import _ |
|
8 | from mercurial.pycompat import getattr | |
|
9 | 8 | from mercurial import ( |
|
10 | 9 | error, |
|
11 | 10 | hg, |
@@ -15,7 +15,6 b' import re' | |||
|
15 | 15 | import socket |
|
16 | 16 | |
|
17 | 17 | from mercurial.i18n import _ |
|
18 | from mercurial.pycompat import getattr | |
|
19 | 18 | from mercurial.node import hex |
|
20 | 19 | |
|
21 | 20 | from mercurial import ( |
@@ -10,10 +10,6 b' import hashlib' | |||
|
10 | 10 | |
|
11 | 11 | from mercurial.i18n import _ |
|
12 | 12 | from mercurial.node import bin, hex, short |
|
13 | from mercurial.pycompat import ( | |
|
14 | getattr, | |
|
15 | setattr, | |
|
16 | ) | |
|
17 | 13 | |
|
18 | 14 | from mercurial import ( |
|
19 | 15 | bundle2, |
@@ -75,8 +75,6 b' from mercurial.node import (' | |||
|
75 | 75 | short, |
|
76 | 76 | ) |
|
77 | 77 | from mercurial.pycompat import ( |
|
78 | delattr, | |
|
79 | getattr, | |
|
80 | 78 | open, |
|
81 | 79 | ) |
|
82 | 80 | from mercurial import ( |
@@ -71,7 +71,6 b' import time' | |||
|
71 | 71 | |
|
72 | 72 | from mercurial.node import bin, short |
|
73 | 73 | from mercurial.i18n import _ |
|
74 | from mercurial.pycompat import getattr | |
|
75 | 74 | from mercurial.thirdparty import attr |
|
76 | 75 | from mercurial import ( |
|
77 | 76 | cmdutil, |
@@ -7,7 +7,6 b' import time' | |||
|
7 | 7 | |
|
8 | 8 | from mercurial.i18n import _ |
|
9 | 9 | from mercurial.pycompat import ( |
|
10 | getattr, | |
|
11 | 10 | open, |
|
12 | 11 | ) |
|
13 | 12 | from mercurial.node import hex |
@@ -4,7 +4,6 b' from mercurial.node import (' | |||
|
4 | 4 | hex, |
|
5 | 5 | sha1nodeconstants, |
|
6 | 6 | ) |
|
7 | from mercurial.pycompat import getattr | |
|
8 | 7 | from mercurial import ( |
|
9 | 8 | mdiff, |
|
10 | 9 | revlog, |
@@ -73,7 +73,6 b' certain files::' | |||
|
73 | 73 | |
|
74 | 74 | |
|
75 | 75 | from mercurial.i18n import _ |
|
76 | from mercurial.pycompat import setattr | |
|
77 | 76 | from mercurial import ( |
|
78 | 77 | cmdutil, |
|
79 | 78 | commands, |
@@ -49,7 +49,6 b' import os' | |||
|
49 | 49 | import sys |
|
50 | 50 | |
|
51 | 51 | from mercurial.i18n import _ |
|
52 | from mercurial.pycompat import getattr, setattr | |
|
53 | 52 | from mercurial import ( |
|
54 | 53 | encoding, |
|
55 | 54 | error, |
@@ -14,7 +14,6 b' from .node import (' | |||
|
14 | 14 | hex, |
|
15 | 15 | short, |
|
16 | 16 | ) |
|
17 | from .pycompat import getattr | |
|
18 | 17 | from . import ( |
|
19 | 18 | encoding, |
|
20 | 19 | error, |
@@ -49,10 +49,6 b' import struct' | |||
|
49 | 49 | import time |
|
50 | 50 | |
|
51 | 51 | from .i18n import _ |
|
52 | from .pycompat import ( | |
|
53 | getattr, | |
|
54 | setattr, | |
|
55 | ) | |
|
56 | 52 | from .node import hex |
|
57 | 53 | |
|
58 | 54 | from . import ( |
@@ -28,9 +28,7 b' from .node import (' | |||
|
28 | 28 | short, |
|
29 | 29 | ) |
|
30 | 30 | from .pycompat import ( |
|
31 | getattr, | |
|
32 | 31 | open, |
|
33 | setattr, | |
|
34 | 32 | ) |
|
35 | 33 | from .thirdparty import attr |
|
36 | 34 |
@@ -9,7 +9,6 b'' | |||
|
9 | 9 | import re |
|
10 | 10 | |
|
11 | 11 | from .i18n import _ |
|
12 | from .pycompat import getattr | |
|
13 | 12 | |
|
14 | 13 | from . import ( |
|
15 | 14 | encoding, |
@@ -16,7 +16,6 b' import struct' | |||
|
16 | 16 | import traceback |
|
17 | 17 | |
|
18 | 18 | from .i18n import _ |
|
19 | from .pycompat import getattr | |
|
20 | 19 | from . import ( |
|
21 | 20 | encoding, |
|
22 | 21 | error, |
@@ -10,7 +10,6 b' import errno' | |||
|
10 | 10 | import os |
|
11 | 11 | |
|
12 | 12 | from .i18n import _ |
|
13 | from .pycompat import getattr | |
|
14 | 13 | from . import ( |
|
15 | 14 | encoding, |
|
16 | 15 | error, |
@@ -16,9 +16,6 b' from .node import (' | |||
|
16 | 16 | nullrev, |
|
17 | 17 | short, |
|
18 | 18 | ) |
|
19 | from .pycompat import ( | |
|
20 | getattr, | |
|
21 | ) | |
|
22 | 19 | from . import ( |
|
23 | 20 | dagop, |
|
24 | 21 | encoding, |
@@ -15,7 +15,6 b' import signal' | |||
|
15 | 15 | |
|
16 | 16 | from .i18n import _ |
|
17 | 17 | from .pycompat import ( |
|
18 | getattr, | |
|
19 | 18 | open, |
|
20 | 19 | ) |
|
21 | 20 | from . import ( |
@@ -33,7 +33,6 b' from .node import (' | |||
|
33 | 33 | short, |
|
34 | 34 | ) |
|
35 | 35 | from .pycompat import ( |
|
36 | getattr, | |
|
37 | 36 | open, |
|
38 | 37 | ) |
|
39 | 38 | from . import ( |
@@ -13,7 +13,6 b' import stat' | |||
|
13 | 13 | import uuid |
|
14 | 14 | |
|
15 | 15 | from .i18n import _ |
|
16 | from .pycompat import delattr | |
|
17 | 16 | |
|
18 | 17 | from hgdemandimport import tracing |
|
19 | 18 |
@@ -18,7 +18,6 b' import traceback' | |||
|
18 | 18 | |
|
19 | 19 | |
|
20 | 20 | from .i18n import _ |
|
21 | from .pycompat import getattr | |
|
22 | 21 | |
|
23 | 22 | from hgdemandimport import tracing |
|
24 | 23 |
@@ -11,7 +11,6 b' import os' | |||
|
11 | 11 | import re |
|
12 | 12 | import unicodedata |
|
13 | 13 | |
|
14 | from .pycompat import getattr | |
|
15 | 14 | from . import ( |
|
16 | 15 | error, |
|
17 | 16 | policy, |
@@ -19,9 +19,7 b' from .i18n import (' | |||
|
19 | 19 | gettext, |
|
20 | 20 | ) |
|
21 | 21 | from .pycompat import ( |
|
22 | getattr, | |
|
23 | 22 | open, |
|
24 | setattr, | |
|
25 | 23 | ) |
|
26 | 24 | |
|
27 | 25 | from . import ( |
@@ -16,9 +16,6 b' from .node import (' | |||
|
16 | 16 | hex, |
|
17 | 17 | short, |
|
18 | 18 | ) |
|
19 | from .pycompat import ( | |
|
20 | getattr, | |
|
21 | ) | |
|
22 | 19 | |
|
23 | 20 | from . import ( |
|
24 | 21 | encoding, |
@@ -9,7 +9,6 b'' | |||
|
9 | 9 | import re |
|
10 | 10 | |
|
11 | 11 | from .i18n import _ |
|
12 | from .pycompat import getattr | |
|
13 | 12 | from . import ( |
|
14 | 13 | error, |
|
15 | 14 | filesetlang, |
@@ -7,7 +7,6 b'' | |||
|
7 | 7 | |
|
8 | 8 | |
|
9 | 9 | from .i18n import _ |
|
10 | from .pycompat import getattr | |
|
11 | 10 | from . import ( |
|
12 | 11 | error, |
|
13 | 12 | parser, |
@@ -26,7 +26,6 b' from .i18n import (' | |||
|
26 | 26 | _, |
|
27 | 27 | gettext, |
|
28 | 28 | ) |
|
29 | from .pycompat import getattr | |
|
30 | 29 | from . import ( |
|
31 | 30 | cmdutil, |
|
32 | 31 | encoding, |
@@ -19,7 +19,6 b' from .node import (' | |||
|
19 | 19 | sha1nodeconstants, |
|
20 | 20 | short, |
|
21 | 21 | ) |
|
22 | from .pycompat import getattr | |
|
23 | 22 | |
|
24 | 23 | from . import ( |
|
25 | 24 | bookmarks, |
@@ -15,7 +15,6 b' import stat' | |||
|
15 | 15 | |
|
16 | 16 | from ..i18n import _ |
|
17 | 17 | from ..pycompat import ( |
|
18 | getattr, | |
|
19 | 18 | open, |
|
20 | 19 | ) |
|
21 | 20 | from .. import ( |
@@ -17,7 +17,6 b' from .common import (' | |||
|
17 | 17 | permhooks, |
|
18 | 18 | statusmessage, |
|
19 | 19 | ) |
|
20 | from ..pycompat import getattr | |
|
21 | 20 | |
|
22 | 21 | from .. import ( |
|
23 | 22 | encoding, |
@@ -16,7 +16,6 b' import wsgiref.validate' | |||
|
16 | 16 | |
|
17 | 17 | from ..i18n import _ |
|
18 | 18 | from ..pycompat import ( |
|
19 | getattr, | |
|
20 | 19 | open, |
|
21 | 20 | ) |
|
22 | 21 |
@@ -13,7 +13,6 b' import re' | |||
|
13 | 13 | |
|
14 | 14 | from ..i18n import _ |
|
15 | 15 | from ..node import hex, short |
|
16 | from ..pycompat import getattr | |
|
17 | 16 | |
|
18 | 17 | from .common import ( |
|
19 | 18 | ErrorResponse, |
@@ -14,7 +14,6 b' import re' | |||
|
14 | 14 | |
|
15 | 15 | from ..i18n import _ |
|
16 | 16 | from ..node import hex, short |
|
17 | from ..pycompat import setattr | |
|
18 | 17 | |
|
19 | 18 | from .common import ( |
|
20 | 19 | ErrorResponse, |
@@ -11,7 +11,6 b'' | |||
|
11 | 11 | |
|
12 | 12 | import os |
|
13 | 13 | |
|
14 | from ..pycompat import getattr | |
|
15 | 14 | from .. import pycompat |
|
16 | 15 | |
|
17 | 16 | from ..utils import procutil |
@@ -12,7 +12,6 b' import os' | |||
|
12 | 12 | import sys |
|
13 | 13 | |
|
14 | 14 | from .i18n import _ |
|
15 | from .pycompat import getattr | |
|
16 | 15 | from . import ( |
|
17 | 16 | demandimport, |
|
18 | 17 | encoding, |
@@ -15,7 +15,6 b' import struct' | |||
|
15 | 15 | |
|
16 | 16 | from concurrent import futures |
|
17 | 17 | from .i18n import _ |
|
18 | from .pycompat import getattr | |
|
19 | 18 | from . import ( |
|
20 | 19 | bundle2, |
|
21 | 20 | error, |
@@ -11,7 +11,6 b' import locale' | |||
|
11 | 11 | import os |
|
12 | 12 | import sys |
|
13 | 13 | |
|
14 | from .pycompat import getattr | |
|
15 | 14 | from .utils import resourceutil |
|
16 | 15 | from . import ( |
|
17 | 16 | encoding, |
@@ -90,7 +90,6 b' import sys' | |||
|
90 | 90 | import threading |
|
91 | 91 | |
|
92 | 92 | from .i18n import _ |
|
93 | from .pycompat import getattr | |
|
94 | 93 | from .node import hex |
|
95 | 94 | from . import ( |
|
96 | 95 | pycompat, |
@@ -28,10 +28,6 b' from .node import (' | |||
|
28 | 28 | sha1nodeconstants, |
|
29 | 29 | short, |
|
30 | 30 | ) |
|
31 | from .pycompat import ( | |
|
32 | delattr, | |
|
33 | getattr, | |
|
34 | ) | |
|
35 | 31 | from . import ( |
|
36 | 32 | bookmarks, |
|
37 | 33 | branchmap, |
@@ -15,7 +15,6 b' import time' | |||
|
15 | 15 | import warnings |
|
16 | 16 | |
|
17 | 17 | from .i18n import _ |
|
18 | from .pycompat import getattr | |
|
19 | 18 | |
|
20 | 19 | from . import ( |
|
21 | 20 | encoding, |
@@ -1,8 +1,6 b'' | |||
|
1 | 1 | import _lsprof |
|
2 | 2 | import sys |
|
3 | 3 | |
|
4 | from .pycompat import getattr | |
|
5 | ||
|
6 | 4 | Profiler = _lsprof.Profiler |
|
7 | 5 | |
|
8 | 6 | # PyPy doesn't expose profiler_entry from the module. |
@@ -20,7 +20,6 b' import time' | |||
|
20 | 20 | |
|
21 | 21 | from .i18n import _ |
|
22 | 22 | from .pycompat import ( |
|
23 | getattr, | |
|
24 | 23 | open, |
|
25 | 24 | ) |
|
26 | 25 | from . import ( |
@@ -17,7 +17,6 b' from .node import (' | |||
|
17 | 17 | hex, |
|
18 | 18 | nullrev, |
|
19 | 19 | ) |
|
20 | from .pycompat import getattr | |
|
21 | 20 | from . import ( |
|
22 | 21 | encoding, |
|
23 | 22 | error, |
@@ -11,10 +11,6 b' import struct' | |||
|
11 | 11 | import zlib |
|
12 | 12 | |
|
13 | 13 | from .i18n import _ |
|
14 | from .pycompat import ( | |
|
15 | getattr, | |
|
16 | setattr, | |
|
17 | ) | |
|
18 | 14 | from . import ( |
|
19 | 15 | diffhelper, |
|
20 | 16 | encoding, |
@@ -8,7 +8,6 b'' | |||
|
8 | 8 | import weakref |
|
9 | 9 | |
|
10 | 10 | from .i18n import _ |
|
11 | from .pycompat import getattr | |
|
12 | 11 | from . import ( |
|
13 | 12 | error, |
|
14 | 13 | match as matchmod, |
@@ -73,7 +73,6 b' import struct' | |||
|
73 | 73 | import weakref |
|
74 | 74 | |
|
75 | 75 | from .i18n import _ |
|
76 | from .pycompat import getattr | |
|
77 | 76 | from .node import ( |
|
78 | 77 | bin, |
|
79 | 78 | hex, |
@@ -111,10 +111,6 b' from .node import (' | |||
|
111 | 111 | short, |
|
112 | 112 | wdirrev, |
|
113 | 113 | ) |
|
114 | from .pycompat import ( | |
|
115 | getattr, | |
|
116 | setattr, | |
|
117 | ) | |
|
118 | 114 | from . import ( |
|
119 | 115 | error, |
|
120 | 116 | pycompat, |
@@ -9,8 +9,6 b'' | |||
|
9 | 9 | import os |
|
10 | 10 | import sys |
|
11 | 11 | |
|
12 | from .pycompat import getattr | |
|
13 | ||
|
14 | 12 | # Rules for how modules can be loaded. Values are: |
|
15 | 13 | # |
|
16 | 14 | # c - require C extensions |
@@ -36,7 +36,6 b' from typing import (' | |||
|
36 | 36 | |
|
37 | 37 | from .i18n import _ |
|
38 | 38 | from .pycompat import ( |
|
39 | getattr, | |
|
40 | 39 | open, |
|
41 | 40 | ) |
|
42 | 41 | from . import ( |
@@ -10,7 +10,6 b' import contextlib' | |||
|
10 | 10 | |
|
11 | 11 | from .i18n import _ |
|
12 | 12 | from .pycompat import ( |
|
13 | getattr, | |
|
14 | 13 | open, |
|
15 | 14 | ) |
|
16 | 15 | from . import ( |
@@ -11,7 +11,6 b' import ctypes.util' | |||
|
11 | 11 | import os |
|
12 | 12 | import stat as statmod |
|
13 | 13 | |
|
14 | from ..pycompat import getattr | |
|
15 | 14 | from .. import ( |
|
16 | 15 | encoding, |
|
17 | 16 | pycompat, |
@@ -15,11 +15,6 b' from .node import (' | |||
|
15 | 15 | hex, |
|
16 | 16 | nullrev, |
|
17 | 17 | ) |
|
18 | from .pycompat import ( | |
|
19 | delattr, | |
|
20 | getattr, | |
|
21 | setattr, | |
|
22 | ) | |
|
23 | 18 | from . import ( |
|
24 | 19 | error, |
|
25 | 20 | obsolete, |
@@ -32,7 +32,6 b' from .node import (' | |||
|
32 | 32 | wdirrev, |
|
33 | 33 | ) |
|
34 | 34 | from .i18n import _ |
|
35 | from .pycompat import getattr | |
|
36 | 35 | from .revlogutils.constants import ( |
|
37 | 36 | ALL_KINDS, |
|
38 | 37 | CHANGELOGV2, |
@@ -14,7 +14,6 b' import struct' | |||
|
14 | 14 | # import stuff from node for others to import from revlog |
|
15 | 15 | from ..node import nullrev |
|
16 | 16 | from ..i18n import _ |
|
17 | from ..pycompat import getattr | |
|
18 | 17 | |
|
19 | 18 | from .constants import ( |
|
20 | 19 | COMP_MODE_DEFAULT, |
@@ -12,7 +12,6 b' import random' | |||
|
12 | 12 | import re |
|
13 | 13 | |
|
14 | 14 | from .i18n import _ |
|
15 | from .pycompat import getattr | |
|
16 | 15 | from .node import ( |
|
17 | 16 | bin, |
|
18 | 17 | nullrev, |
@@ -9,7 +9,6 b'' | |||
|
9 | 9 | import string |
|
10 | 10 | |
|
11 | 11 | from .i18n import _ |
|
12 | from .pycompat import getattr | |
|
13 | 12 | from .node import hex |
|
14 | 13 | from . import ( |
|
15 | 14 | error, |
@@ -9,7 +9,6 b' from typing import (' | |||
|
9 | 9 | Tuple, |
|
10 | 10 | ) |
|
11 | 11 | |
|
12 | from .pycompat import getattr | |
|
13 | 12 | from . import ( |
|
14 | 13 | encoding, |
|
15 | 14 | pycompat, |
@@ -23,7 +23,6 b' from .node import (' | |||
|
23 | 23 | short, |
|
24 | 24 | wdirrev, |
|
25 | 25 | ) |
|
26 | from .pycompat import getattr | |
|
27 | 26 | from .thirdparty import attr |
|
28 | 27 | from . import ( |
|
29 | 28 | copies as copiesmod, |
@@ -6,7 +6,6 b'' | |||
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | 8 | |
|
9 | from .pycompat import getattr | |
|
10 | 9 | from . import ( |
|
11 | 10 | encoding, |
|
12 | 11 | error, |
@@ -10,7 +10,6 b' import re' | |||
|
10 | 10 | import uuid |
|
11 | 11 | |
|
12 | 12 | from .i18n import _ |
|
13 | from .pycompat import getattr | |
|
14 | 13 | from . import ( |
|
15 | 14 | error, |
|
16 | 15 | pycompat, |
@@ -15,7 +15,6 b' import ssl' | |||
|
15 | 15 | import warnings |
|
16 | 16 | |
|
17 | 17 | from .i18n import _ |
|
18 | from .pycompat import getattr | |
|
19 | 18 | from .node import hex |
|
20 | 19 | from . import ( |
|
21 | 20 | encoding, |
@@ -167,7 +167,7 b' class ProfileState:' | |||
|
167 | 167 | # a float |
|
168 | 168 | if frequency: |
|
169 | 169 | self.sample_interval = 1.0 / frequency |
|
170 |
elif not |
|
|
170 | elif not hasattr(self, 'sample_interval'): | |
|
171 | 171 | # default to 1000 Hz |
|
172 | 172 | self.sample_interval = 1.0 / 1000.0 |
|
173 | 173 | else: |
@@ -13,7 +13,6 b' import stat' | |||
|
13 | 13 | from typing import Generator, List |
|
14 | 14 | |
|
15 | 15 | from .i18n import _ |
|
16 | from .pycompat import getattr | |
|
17 | 16 | from .thirdparty import attr |
|
18 | 17 | from .node import hex |
|
19 | 18 | from .revlogutils.constants import ( |
@@ -1,5 +1,4 b'' | |||
|
1 | 1 | from .i18n import _ |
|
2 | from .pycompat import getattr | |
|
3 | 2 | from . import ( |
|
4 | 3 | bookmarks as bookmarksmod, |
|
5 | 4 | cmdutil, |
@@ -11,7 +11,6 b' import posixpath' | |||
|
11 | 11 | import re |
|
12 | 12 | |
|
13 | 13 | from .i18n import _ |
|
14 | from .pycompat import getattr | |
|
15 | 14 | from . import ( |
|
16 | 15 | config, |
|
17 | 16 | error, |
@@ -72,7 +72,6 b' import os' | |||
|
72 | 72 | from .i18n import _ |
|
73 | 73 | from .pycompat import ( |
|
74 | 74 | FileNotFoundError, |
|
75 | getattr, | |
|
76 | 75 | ) |
|
77 | 76 | from . import ( |
|
78 | 77 | config, |
@@ -10,7 +10,6 b' import abc' | |||
|
10 | 10 | import types |
|
11 | 11 | |
|
12 | 12 | from .i18n import _ |
|
13 | from .pycompat import getattr | |
|
14 | 13 | from . import ( |
|
15 | 14 | error, |
|
16 | 15 | pycompat, |
@@ -12,7 +12,6 b' from ..node import (' | |||
|
12 | 12 | hex, |
|
13 | 13 | nullrev, |
|
14 | 14 | ) |
|
15 | from ..pycompat import getattr | |
|
16 | 15 | from .. import ( |
|
17 | 16 | error, |
|
18 | 17 | mdiff, |
@@ -37,7 +37,6 b' from typing import (' | |||
|
37 | 37 | from .i18n import _ |
|
38 | 38 | from .node import hex |
|
39 | 39 | from .pycompat import ( |
|
40 | getattr, | |
|
41 | 40 | open, |
|
42 | 41 | ) |
|
43 | 42 |
@@ -13,7 +13,6 b' allowing operations like diff and log wi' | |||
|
13 | 13 | |
|
14 | 14 | |
|
15 | 15 | from .i18n import _ |
|
16 | from .pycompat import getattr | |
|
17 | 16 | |
|
18 | 17 | from . import ( |
|
19 | 18 | changelog, |
@@ -9,7 +9,6 b'' | |||
|
9 | 9 | import stat |
|
10 | 10 | |
|
11 | 11 | from ..i18n import _ |
|
12 | from ..pycompat import getattr | |
|
13 | 12 | from .. import ( |
|
14 | 13 | error, |
|
15 | 14 | metadata, |
@@ -11,7 +11,6 b' import urllib.parse' | |||
|
11 | 11 | import urllib.request |
|
12 | 12 | import urllib.response |
|
13 | 13 | |
|
14 | from .pycompat import getattr | |
|
15 | 14 | from . import pycompat |
|
16 | 15 | |
|
17 | 16 | _sysstr = pycompat.sysstr |
@@ -37,10 +37,7 b' import warnings' | |||
|
37 | 37 | from .node import hex |
|
38 | 38 | from .thirdparty import attr |
|
39 | 39 | from .pycompat import ( |
|
40 | delattr, | |
|
41 | getattr, | |
|
42 | 40 | open, |
|
43 | setattr, | |
|
44 | 41 | ) |
|
45 | 42 | from hgdemandimport import tracing |
|
46 | 43 | from . import ( |
@@ -8,7 +8,6 b' import bz2' | |||
|
8 | 8 | import collections |
|
9 | 9 | import zlib |
|
10 | 10 | |
|
11 | from ..pycompat import getattr | |
|
12 | 11 | from .. import ( |
|
13 | 12 | error, |
|
14 | 13 | i18n, |
@@ -24,7 +24,6 b' from typing import (' | |||
|
24 | 24 | |
|
25 | 25 | from ..i18n import _ |
|
26 | 26 | from ..pycompat import ( |
|
27 | getattr, | |
|
28 | 27 | open, |
|
29 | 28 | ) |
|
30 | 29 |
@@ -9,10 +9,6 b' import re as remod' | |||
|
9 | 9 | import socket |
|
10 | 10 | |
|
11 | 11 | from ..i18n import _ |
|
12 | from ..pycompat import ( | |
|
13 | getattr, | |
|
14 | setattr, | |
|
15 | ) | |
|
16 | 12 | from .. import ( |
|
17 | 13 | encoding, |
|
18 | 14 | error, |
@@ -16,11 +16,6 b' from typing import (' | |||
|
16 | 16 | ) |
|
17 | 17 | |
|
18 | 18 | from .i18n import _ |
|
19 | from .pycompat import ( | |
|
20 | delattr, | |
|
21 | getattr, | |
|
22 | setattr, | |
|
23 | ) | |
|
24 | 19 | from . import ( |
|
25 | 20 | encoding, |
|
26 | 21 | error, |
@@ -33,7 +33,6 b' from typing import (' | |||
|
33 | 33 | ) |
|
34 | 34 | |
|
35 | 35 | from .i18n import _ |
|
36 | from .pycompat import getattr | |
|
37 | 36 | from . import ( |
|
38 | 37 | encoding, |
|
39 | 38 | error, |
@@ -14,7 +14,6 b' import collections' | |||
|
14 | 14 | import struct |
|
15 | 15 | |
|
16 | 16 | from .i18n import _ |
|
17 | from .pycompat import getattr | |
|
18 | 17 | from .thirdparty import attr |
|
19 | 18 | from . import ( |
|
20 | 19 | encoding, |
@@ -9,7 +9,6 b' from .node import (' | |||
|
9 | 9 | hex, |
|
10 | 10 | ) |
|
11 | 11 | from .i18n import _ |
|
12 | from .pycompat import getattr | |
|
13 | 12 | from .thirdparty import attr |
|
14 | 13 | from . import ( |
|
15 | 14 | error, |
General Comments 0
You need to be logged in to leave comments.
Login now