changeset 39444:2dd9519b8c8a

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
author Pulkit Goyal <pulkit@yandex-team.ru>
date Tue, 04 Sep 2018 17:15:17 +0300
parents 6268fed317d0
children 34fe76b31ca4
files hgext/convert/common.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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