# HG changeset patch # User Yuya Nishihara # Date 2018-06-01 14:02:36 # Node ID db9d1dd01bf023bacff6dd4af3dc337cedc5868d # Parent 273ce823ba5c657623441bcde526e54811c90fb1 setup: write version constant as bytes literal Spotted while bulk-rewriting string literals to b''s. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -360,7 +360,7 @@ if version: write_if_changed('mercurial/__version__.py', b''.join([ b'# this file is autogenerated by setup.py\n' - b'version = "%s"\n' % versionb, + b'version = b"%s"\n' % versionb, ])) try: