Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

func_w0405.py 606B

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