blob: 50a069d7a9c032ac1549bf628dde450c2673209e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
"""check reimport
"""
from __future__ import absolute_import, print_function
# pylint: disable=using-constant-test,ungrouped-imports,wrong-import-position
import os
from os.path import join, exists
import os
import re as _re
__revision__ = 0
_re.match('yo', '.*')
if __revision__:
print(os)
from os.path import exists
print(join, exists)
def func(yooo):
"""reimport in different scope"""
import os as ass
ass.remove(yooo)
import re
re.compile('.*')
if 1: # pylint: disable=using-constant-test
import sys
print(sys.modules)
else:
print('bla')
import sys
|