From 097eea7d5fbbcece4ddb87466b63f03f30556833 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 26 Jun 2020 20:47:05 +0200 Subject: [PATCH] flak8-fy Gbp-Dch: Ignore Signed-off-by: Mattia Rizzolo --- update-maintainer | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/update-maintainer b/update-maintainer index ccd1323..769d36d 100755 --- a/update-maintainer +++ b/update-maintainer @@ -22,6 +22,7 @@ from ubuntutools.update_maintainer import (update_maintainer, restore_maintainer, MaintainerUpdateException) + def find_debian_dir(depth=6): """Scans up the directory hierarchy looking for a ./debian dir @@ -29,13 +30,14 @@ def find_debian_dir(depth=6): :rtype: str :returns: a path to an existing debian/ directory, or None """ - for path in ['../'*n or './' for n in list(range(0,depth+1))]: + for path in ['../'*n or './' for n in list(range(0, depth+1))]: debian_path = '{}debian'.format(path) if os.path.exists(os.path.join(debian_path, 'control')) \ - and os.path.exists(os.path.join(debian_path, 'changelog')): + and os.path.exists(os.path.join(debian_path, 'changelog')): return debian_path return None + def main(): script_name = os.path.basename(sys.argv[0]) usage = "%s [options]" % (script_name)