Skip to content

Files

Latest commit

 

History

History
39 lines (30 loc) · 754 Bytes

File metadata and controls

39 lines (30 loc) · 754 Bytes

Pattern: Expected an indented block (comment)

Issue: -

Description

An indented block comment was expected but a non-indented block comment was found instead.

Example of incorrect code:

def start(self):
    if True:
#       try:
#           self.master.start()
#       except MasterExit:
#           self.shutdown()
#       finally:
#           sys.exit()
        self.master.start()

Example of correct code:

def start(self):
    if True:
        #  try:
        #      self.master.start()
        #  except MasterExit:
        #      self.shutdown()
        #  finally:
        #      sys.exit()
        self.master.start()

Further Reading