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 15:17:40 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
1. skip-blame because just r'' prefix
REPOSITORY
rHG Mercurial
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