Remove Unreachable Code¶
Sourcery refactoring id:
Removes code that will never be executed
for a in b: do_a() continue do_x() do_y()
for a in b: do_a() continue
Statements after a
raise will never be executed.
Leaving them in the code confuses the reader, who may believe that these
statements have some effect. They should therefore be removed.