We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92beb55 commit 7706cd9Copy full SHA for 7706cd9
1 file changed
gcloud/storage/bucket.py
@@ -225,13 +225,7 @@ def new_key(self, key):
225
if isinstance(key, Key):
226
return key
227
228
- # Support Python 2 and 3.
229
- try:
230
- string_type = six.string_types
231
- except NameError: # pragma: NO COVER PY3k
232
- string_type = str
233
-
234
- if isinstance(key, string_type):
+ if isinstance(key, six.string_types):
235
return Key(bucket=self, name=key)
236
237
raise TypeError('Invalid key: %s' % key)
0 commit comments