Skip to content

Commit

Permalink
Fixed an issue where == should be used instead of is for python 3.8 c…
Browse files Browse the repository at this point in the history
…ompatibility
  • Loading branch information
ktarplee committed Jan 23, 2020
1 parent 7d8a225 commit fb04244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minio/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def dump_http(method, url, request_headers, response, output_stream):
http_path))

for k, v in list(request_headers.items()):
if k is 'authorization':
if k == 'authorization':
# Redact signature header value from trace logs.
v = re.sub(r'Signature=([[0-9a-f]+)', 'Signature=*REDACTED*', v)
output_stream.write('{0}: {1}\n'.format(k.title(), v))
Expand Down

0 comments on commit fb04244

Please sign in to comment.