diff options
author | Tim Burke <tim.burke@gmail.com> | 2022-03-22 10:14:19 -0700 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2022-05-24 08:33:02 -0700 |
commit | 5d451fb92031989ea9982fc29140175014448ea2 (patch) | |
tree | b58229bfa7dd09d980894b3aad928f5706c8f151 /swiftclient/service.py | |
parent | 20c97e83d3af855e5e238dfa4b10b7bf29533d57 (diff) | |
download | python-swiftclient-5d451fb92031989ea9982fc29140175014448ea2.tar.gz |
More cleanup following py2 removal
* Drop py2-only hacking pin from test-requirements.
* Remove quote() helper; urllib.parse.quote() works fine.
* Remove some useless code.
Change-Id: I9ffc923f58f1d11538f83ff26f7beb53cdf134c3
Diffstat (limited to 'swiftclient/service.py')
-rw-r--r-- | swiftclient/service.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/swiftclient/service.py b/swiftclient/service.py index 9d9fc59..ed0f40a 100644 --- a/swiftclient/service.py +++ b/swiftclient/service.py @@ -2034,11 +2034,6 @@ class SwiftService: if headers is None: headers = {} segment_results.sort(key=lambda di: di['segment_index']) - for seg in segment_results: - seg_loc = seg['segment_location'].lstrip('/') - if isinstance(seg_loc, str): - seg_loc = seg_loc.encode('utf-8') - manifest_data = json.dumps([ { 'path': d['segment_location'], |