equal
deleted
inserted
replaced
43 > EOF |
43 > EOF |
44 |
44 |
45 $ cat > testpackage/relativestdlib.py << EOF |
45 $ cat > testpackage/relativestdlib.py << EOF |
46 > from __future__ import absolute_import |
46 > from __future__ import absolute_import |
47 > from .. import os |
47 > from .. import os |
|
48 > EOF |
|
49 |
|
50 $ cat > testpackage/stdlibfrom.py << EOF |
|
51 > from __future__ import absolute_import |
|
52 > from collections import abc |
48 > EOF |
53 > EOF |
49 |
54 |
50 $ cat > testpackage/symbolimport.py << EOF |
55 $ cat > testpackage/symbolimport.py << EOF |
51 > from __future__ import absolute_import |
56 > from __future__ import absolute_import |
52 > from .unsorted import foo |
57 > from .unsorted import foo |
148 testpackage/multiplegroups.py:3: multiple "from . import" statements |
153 testpackage/multiplegroups.py:3: multiple "from . import" statements |
149 testpackage/relativestdlib.py:2: relative import of stdlib module |
154 testpackage/relativestdlib.py:2: relative import of stdlib module |
150 testpackage/requirerelative.py:2: import should be relative: testpackage.unsorted |
155 testpackage/requirerelative.py:2: import should be relative: testpackage.unsorted |
151 testpackage/sortedentries.py:2: imports from testpackage not lexically sorted: bar < foo |
156 testpackage/sortedentries.py:2: imports from testpackage not lexically sorted: bar < foo |
152 testpackage/stdafterlocal.py:3: stdlib import "os" follows local import: testpackage |
157 testpackage/stdafterlocal.py:3: stdlib import "os" follows local import: testpackage |
|
158 testpackage/stdlibfrom.py:2: direct symbol import abc from collections |
153 testpackage/subpackage/levelpriority.py:3: higher-level import should come first: testpackage |
159 testpackage/subpackage/levelpriority.py:3: higher-level import should come first: testpackage |
154 testpackage/subpackage/localimport.py:7: multiple "from .. import" statements |
160 testpackage/subpackage/localimport.py:7: multiple "from .. import" statements |
155 testpackage/subpackage/localimport.py:8: import should be relative: testpackage.subpackage.levelpriority |
161 testpackage/subpackage/localimport.py:8: import should be relative: testpackage.subpackage.levelpriority |
156 testpackage/symbolimport.py:2: direct symbol import foo from testpackage.unsorted |
162 testpackage/symbolimport.py:2: direct symbol import foo from testpackage.unsorted |
157 testpackage/unsorted.py:3: imports not lexically sorted: os < sys |
163 testpackage/unsorted.py:3: imports not lexically sorted: os < sys |