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