Commit 6f75d7c4 authored by Guido Günther's avatar Guido Günther

Fix new flake8 errors

E305 expected 2 blank lines after class or function definition
parent acf7a739
......@@ -146,6 +146,7 @@ def main(argv):
repo.push(dest, upstream_sha1, options.upstream_branch)
print("done.")
if __name__ == '__main__':
sys.exit(main(sys.argv))
......
......@@ -99,5 +99,6 @@ def main(argv):
subjects=[subject])
CLIENT.insert_event(event)
if __name__ == '__main__':
main(sys.argv)
......@@ -113,6 +113,7 @@ class DebianSourceFormat(object):
f.write("%s (%s)" % (version, type))
return klass.parse_file(klass.format_file)
if __name__ == "__main__":
import doctest
doctest.testmod()
......@@ -795,6 +795,7 @@ def main(argv):
return retval
if __name__ == '__main__':
sys.exit(main(sys.argv))
......
......@@ -654,5 +654,6 @@ def main(argv):
return retval
if __name__ == '__main__':
sys.exit(main(sys.argv))
......@@ -146,6 +146,7 @@ def main(argv):
return retval
if __name__ == '__main__':
sys.exit(main(sys.argv))
......
......@@ -136,6 +136,7 @@ def main(argv):
retval = print_cmd_values(query, value_printer)
return retval
if __name__ == '__main__':
sys.exit(main(sys.argv))
......
......@@ -362,6 +362,7 @@ def main(argv):
return retval
if __name__ == '__main__':
sys.exit(main(sys.argv))
......
......@@ -569,6 +569,7 @@ def main(argv):
ret = 1
return ret
if __name__ == "__main__":
sys.exit(main(sys.argv))
......
......@@ -432,6 +432,7 @@ def main(argv):
gbp.log.info("Version '%s' imported under '%s'" % (src.version, src.pkg))
return ret
if __name__ == '__main__':
sys.exit(main(sys.argv))
......
......@@ -173,6 +173,7 @@ def main(argv):
gbp.log.info('Everything imported under %s' % dirs['pkg'])
return ret
if __name__ == '__main__':
sys.exit(main(sys.argv))
......
......@@ -647,6 +647,7 @@ def main(argv):
gbp.log.info("Successfully imported version %s of %s" % (version, source.path))
return ret
if __name__ == "__main__":
sys.exit(main(sys.argv))
......
......@@ -463,6 +463,7 @@ def main(argv):
gbp.log.info("Version '%s' imported under '%s'" % (ver_str, spec.name))
return ret
if __name__ == '__main__':
sys.exit(main(sys.argv))
......
......@@ -484,5 +484,6 @@ def main(argv):
return retval
if __name__ == '__main__':
sys.exit(main(sys.argv))
......@@ -462,5 +462,6 @@ def main(argv):
return retval
if __name__ == '__main__':
sys.exit(main(sys.argv))
......@@ -171,6 +171,7 @@ def main(argv):
return retval
if __name__ == '__main__':
sys.exit(main(sys.argv))
......
......@@ -445,5 +445,6 @@ def main(argv):
return 0
if __name__ == "__main__":
sys.exit(main(sys.argv))
......@@ -146,6 +146,7 @@ def supercommand(argv=None):
return module.main(args)
if __name__ == '__main__':
sys.exit(supercommand())
......
......@@ -55,6 +55,7 @@ class DscStub(object):
version = filename[4]
return cls(filename, version)
# hook up stubs
import_dscs.GitImportDsc = StubGitImportDsc
import_dscs.DscFile = DscStub
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment