From 1e94fc5ab534c787783cfeeb8dd6e018d32fe7e5 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Fri, 3 Apr 2015 16:35:16 -0500 Subject: [PATCH] Don't use a dict comprehension, be more verbose --- cloud/google/gc_storage.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cloud/google/gc_storage.py b/cloud/google/gc_storage.py index 8566843dabd..578722e301a 100644 --- a/cloud/google/gc_storage.py +++ b/cloud/google/gc_storage.py @@ -242,8 +242,10 @@ def transform_headers(headers): :rtype: dict """ - - return {key: str(value) for key, value in headers.items()} + + for key, value in headers.items(): + headers[key] = str(value) + return headers def upload_gsfile(module, gs, bucket, obj, src, expiry): try: