E11.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. if x > 2:
  2. #: E111:2
  3. hello(x)
  4. if True:
  5. #: E111:5
  6. print
  7. #: E111:6
  8. #
  9. #: E111:2
  10. # what
  11. # Comment is fine
  12. # Comment is also fine
  13. if False:
  14. pass
  15. print
  16. print
  17. #: E903:0
  18. print
  19. mimetype = 'application/x-directory'
  20. #: E111:5
  21. # 'httpd/unix-directory'
  22. create_date = False
  23. def start(self):
  24. # foo
  25. #: E111:8
  26. # bar
  27. if True: # Hello
  28. self.master.start() # Comment
  29. # try:
  30. #: E111:12
  31. # self.master.start()
  32. # except MasterExit:
  33. #: E111:12
  34. # self.shutdown()
  35. # finally:
  36. #: E111:12
  37. # sys.exit()
  38. # Dedent to the first level
  39. #: E111:6
  40. # error
  41. # Dedent to the base level
  42. #: E111:2
  43. # Also wrongly indented.
  44. # Indent is correct.
  45. def start(self): # Correct comment
  46. if True:
  47. #: E111:0
  48. # try:
  49. #: E111:0
  50. # self.master.start()
  51. #: E111:0
  52. # except MasterExit:
  53. #: E111:0
  54. # self.shutdown()
  55. self.master.start() # comment