D4453: py3: make sure we pass str in os.sysconf in hgext/convert/common.py

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Sep 4 12:29:31 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2dd9519b8c8a: py3: make sure we pass str in os.sysconf in hgext/convert/common.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4453?vs=10732&id=10743

REVISION DETAIL
  https://phab.mercurial-scm.org/D4453

AFFECTED FILES
  hgext/convert/common.py

CHANGE DETAILS

diff --git a/hgext/convert/common.py b/hgext/convert/common.py
--- a/hgext/convert/common.py
+++ b/hgext/convert/common.py
@@ -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
 



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list