diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-05-31 23:24:35 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-05-31 23:24:35 -0700 |
commit | f979521ba261b8bbc3c494f14f14f9311443a516 (patch) | |
tree | 1610bb902d037c69ef2b0bca81b87526025c56cb /bin/boto-empty-bucket | |
parent | 8e12c5c029dd5d9a2a7debc33995d8a8836a7164 (diff) | |
download | dotfiles-f979521ba261b8bbc3c494f14f14f9311443a516.tar.gz |
migrate boto-* scripts to python3
Diffstat (limited to 'bin/boto-empty-bucket')
-rwxr-xr-x | bin/boto-empty-bucket | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/boto-empty-bucket b/bin/boto-empty-bucket index 45ff931c..7e44e7d1 100755 --- a/bin/boto-empty-bucket +++ b/bin/boto-empty-bucket @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 """boto-empty-bucket -- delete all versions from an s3 bucket""" @@ -14,7 +14,7 @@ def main(): bucket = connection.get_bucket(bucket) for version in bucket.list_versions(): - print "deleting", version.name, "version", version.version_id + print("deleting", version.name, "version", version.version_id) bucket.delete_key(version.name, version_id=version.version_id) if __name__ == "__main__": |