E40.py 554 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #: E401:7
  2. import os, sys
  3. # Okay
  4. import os
  5. import sys
  6. from subprocess import Popen, PIPE
  7. from myclass import MyClass
  8. from foo.bar.yourclass import YourClass
  9. import myclass
  10. import foo.bar.yourclass
  11. # All Okay from here until the definition of VERSION
  12. __all__ = ['abc']
  13. import foo
  14. __version__ = "42"
  15. import foo
  16. __author__ = "Simon Gomizelj"
  17. import foo
  18. try:
  19. import foo
  20. except ImportError:
  21. pass
  22. else:
  23. hello('imported foo')
  24. finally:
  25. hello('made attempt to import foo')
  26. import bar
  27. VERSION = '1.2.3'
  28. #: E402
  29. import foo
  30. #: E402
  31. import foo