changeset 38219:db9d1dd01bf0

setup: write version constant as bytes literal Spotted while bulk-rewriting string literals to b''s.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 01 Jun 2018 23:02:36 +0900
parents 273ce823ba5c
children b10a9ace2738
files setup.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Thu May 31 18:53:28 2018 +0800
+++ b/setup.py	Fri Jun 01 23:02:36 2018 +0900
@@ -360,7 +360,7 @@
 
     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: