Commit Graph

6 Commits

Author SHA1 Message Date
Pulkit Goyal
9d833da676 py3: make keys of keyword arguments strings
keys of keyword arguments on Python 3 has to be string. We are dealing with
bytes in our codebase so the keys are also bytes. Done that using
pycompat.strkwargs().

Also after this patch, `hg version` now runs on Python 3.5. Hurray!
2016-12-13 20:53:40 +05:30
Pulkit Goyal
4245797c62 py3: avoid use of basestring
"In this case, result is a source variable of a list to be returned, it
shouldn't be unicode. Hence we can use bytes instead of basestring here." -Yuya
2016-11-30 23:51:11 +05:30
Augie Fackler
915e3e24fa config: mark parser regexes as bytes explicitly
r-strings are not transformed into bytes by our source transformer magic.
2016-10-09 09:25:39 -04:00
Augie Fackler
d40f484280 ui: explicitly open config files in binary mode
This has been working mostly accidentally, but now it works explicitly.
2016-10-09 09:17:49 -04:00
Pulkit Goyal
22fabd6f33 py3: make scmutil.rcpath() return bytes
This patch make sure scmutil.rcpath() returns bytes independent of
which platform is used on Python 3. If we want to change type for windows we
can just conditionalize the return variable.
2016-11-06 04:17:19 +05:30
Pulkit Goyal
65a2376373 py3: test to check which commands run
This test helps us to keep track on the commands which runs to Python 3.
The full traceback is hidden. Thanks to Augie and Martijn to wrap it up
in four lines.
2016-10-09 13:59:20 +02:00