diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-30 12:50:12 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-30 12:50:12 -0700 |
| commit | 97662952fd5efaebc19596fcfef87355dca61489 (patch) | |
| tree | f8cfc4c5fafb1a91cdcc2f683feb0b3f7f479dd0 /swiftclient/shell.py | |
| parent | 21db1bf83670f284b8f3d1dab4dc2be548ffb57e (diff) | |
| download | python-swiftclient-97662952fd5efaebc19596fcfef87355dca61489.tar.gz | |
Removed usage of tuple unpacking in parameters.
Replaced it with traditional tuple unpacking. Needed for Python 3 support.
Change-Id: I714f32859f9b1ec7216eae777ea8968b5826af3b
Diffstat (limited to 'swiftclient/shell.py')
| -rwxr-xr-x | swiftclient/shell.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/swiftclient/shell.py b/swiftclient/shell.py index 44ce3a0..b316b3f 100755 --- a/swiftclient/shell.py +++ b/swiftclient/shell.py @@ -122,7 +122,8 @@ def st_delete(parser, args, thread_manager): st_delete_help) return - def _delete_segment((container, obj), conn): + def _delete_segment(item, conn): + (container, obj) = item conn.delete_object(container, obj) if options.verbose: if conn.attempts > 2: @@ -132,7 +133,8 @@ def st_delete(parser, args, thread_manager): else: thread_manager.print_msg('%s/%s', container, obj) - def _delete_object((container, obj), conn): + def _delete_object(item, conn): + (container, obj) = item try: old_manifest = None query_string = None |
