Mercurial > public > mercurial-scm > hg-stable
diff setup.py @ 31317:62939e0148f1
policy: try and always have a bytes for module policy
debuginstall now runs cleanly in Python 3.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 08 Mar 2017 18:11:41 -0500 |
parents | 718a57e95a89 |
children | 70bc35df3e54 |
line wrap: on
line diff
--- a/setup.py Wed Mar 08 18:11:19 2017 -0500 +++ b/setup.py Wed Mar 08 18:11:41 2017 -0500 @@ -370,7 +370,7 @@ modulepolicy = 'c' with open("mercurial/__modulepolicy__.py", "w") as f: f.write('# this file is autogenerated by setup.py\n') - f.write('modulepolicy = "%s"\n' % modulepolicy) + f.write('modulepolicy = b"%s"\n' % modulepolicy) build_py.run(self)