pep8: Add compliance with rule E261 to camo.py.

This commit is contained in:
Aditya Bansal 2017-05-07 20:36:01 +05:30 committed by Tim Abbott
parent e7e7c1a3cd
commit 101d334b80
1 changed files with 1 additions and 1 deletions

View File

@ -15,5 +15,5 @@ def get_camo_url(url):
encoded_url = url.encode("utf-8") encoded_url = url.encode("utf-8")
encoded_camo_key = settings.CAMO_KEY.encode("utf-8") encoded_camo_key = settings.CAMO_KEY.encode("utf-8")
digest = hmac.new(encoded_camo_key, encoded_url, hashlib.sha1).hexdigest() digest = hmac.new(encoded_camo_key, encoded_url, hashlib.sha1).hexdigest()
hex_encoded_url = codecs.encode(encoded_url, "hex") # type: ignore # https://github.com/python/typeshed/issues/300 hex_encoded_url = codecs.encode(encoded_url, "hex") # type: ignore # https://github.com/python/typeshed/issues/300
return "%s%s/%s" % (settings.CAMO_URI, digest, hex_encoded_url.decode("utf-8")) return "%s%s/%s" % (settings.CAMO_URI, digest, hex_encoded_url.decode("utf-8"))