diff options
author | Tim Burke <tim.burke@gmail.com> | 2021-02-01 13:26:53 -0800 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2021-02-01 13:26:53 -0800 |
commit | 1f9b879547a5fd8fe1bbdbf42e20d7f73ac5d393 (patch) | |
tree | dc9ad63de312505243a2d1b9ccad6c34d7bc206c /bin | |
parent | 9e14a778cdbdb67d178e201ec008223b2bbcc99b (diff) | |
download | swift-1f9b879547a5fd8fe1bbdbf42e20d7f73ac5d393.tar.gz |
Run flake8 on bin/ files
Change-Id: I58d4b5a00e97785584c6d3bd8b06243f481c1934
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/swift-account-info | 1 | ||||
-rwxr-xr-x | bin/swift-config | 1 | ||||
-rwxr-xr-x | bin/swift-container-info | 1 | ||||
-rwxr-xr-x | bin/swift-oldies | 3 | ||||
-rwxr-xr-x | bin/swift-recon-cron | 1 |
5 files changed, 6 insertions, 1 deletions
diff --git a/bin/swift-account-info b/bin/swift-account-info index e9ae188dc..41563bcc9 100755 --- a/bin/swift-account-info +++ b/bin/swift-account-info @@ -34,6 +34,7 @@ def run_print_info(args, opts): print('Account info failed: %s' % e) sys.exit(1) + if __name__ == '__main__': parser = OptionParser('%prog [options] ACCOUNT_DB_FILE') parser.add_option( diff --git a/bin/swift-config b/bin/swift-config index 12bcede09..1a2db221c 100755 --- a/bin/swift-config +++ b/bin/swift-config @@ -86,5 +86,6 @@ def main(): print('# %s = %s' % (k, v)) print() + if __name__ == "__main__": sys.exit(main()) diff --git a/bin/swift-container-info b/bin/swift-container-info index d832e84fd..46e5d6f11 100755 --- a/bin/swift-container-info +++ b/bin/swift-container-info @@ -34,6 +34,7 @@ def run_print_info(args, opts): print('Container info failed: %s' % e) sys.exit(1) + if __name__ == '__main__': parser = OptionParser('%prog [options] CONTAINER_DB_FILE') parser.add_option( diff --git a/bin/swift-oldies b/bin/swift-oldies index dd4eee882..5614371e9 100755 --- a/bin/swift-oldies +++ b/bin/swift-oldies @@ -86,4 +86,5 @@ Lists old Swift processes. print('%*s %*s %s' % (hours_len, 'Hours', pid_len, 'PID', 'Command')) for hours, pid, args in listing: - print('%*s %*s %s' % (hours_len, hours, pid_len, pid, args[:args_len])) + print('%*s %*s %s' % (hours_len, hours, pid_len, + pid, args[:args_len])) diff --git a/bin/swift-recon-cron b/bin/swift-recon-cron index d750ba4b2..d9384f313 100755 --- a/bin/swift-recon-cron +++ b/bin/swift-recon-cron @@ -72,5 +72,6 @@ def main(): print('%s: %s' % (msg, err)) sys.exit(1) + if __name__ == '__main__': main() |