py3: make sure we pass str in os.sysconf in hgext/convert/common.py
authorPulkit Goyal <pulkit@yandex-team.ru>
Tue, 04 Sep 2018 17:15:17 +0300
changeset 39425 2dd9519b8c8a
parent 39419 6268fed317d0
child 39426 34fe76b31ca4
py3: make sure we pass str in os.sysconf in hgext/convert/common.py # skip-blame because just r'' prefix Differential Revision: https://phab.mercurial-scm.org/D4453
hgext/convert/common.py
--- a/hgext/convert/common.py	Tue Sep 04 12:16:28 2018 -0400
+++ b/hgext/convert/common.py	Tue Sep 04 17:15:17 2018 +0300
@@ -459,7 +459,7 @@
         # POSIX requires at least 4096 bytes for ARG_MAX
         argmax = 4096
         try:
-            argmax = os.sysconf("SC_ARG_MAX")
+            argmax = os.sysconf(r"SC_ARG_MAX")
         except (AttributeError, ValueError):
             pass