Commit b275ec90 authored by Julien Muchembled's avatar Julien Muchembled

shared: fix trailing whitespace in signature file on Python 2

parent 07c7eb8e
...@@ -105,7 +105,9 @@ class Shared(object): ...@@ -105,7 +105,9 @@ class Shared(object):
if profile_base_location else v) if profile_base_location else v)
for k, v in options.items() for k, v in options.items()
if k != '_profile_base_location_' if k != '_profile_base_location_'
}, ensure_ascii=False, indent=2, sort_keys=True) }, ensure_ascii=False, indent=2, sort_keys=True,
# BBB: Python 2 ( https://bugs.python.org/issue16333 )
separators=(',', ': '))
if not isinstance(signature, bytes): # BBB: Python 3 if not isinstance(signature, bytes): # BBB: Python 3
signature = signature.encode() signature = signature.encode()
digest = md5(signature).hexdigest() digest = md5(signature).hexdigest()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment