# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-05-31 18:12:58 # Node ID 954489932c4f5e6ec33b57ebaaf4333f881e3010 # Parent bf728e72a21901b0ae9170958ade16893c6938e3 py3: pass str in os.sysconf() os.sysconf() doesn't accepts bytes on Python 3. Adding r'' will make sure b'' is not added here. diff --git a/mercurial/worker.py b/mercurial/worker.py --- a/mercurial/worker.py +++ b/mercurial/worker.py @@ -26,7 +26,7 @@ def countcpus(): # posix try: - n = int(os.sysconf('SC_NPROCESSORS_ONLN')) + n = int(os.sysconf(r'SC_NPROCESSORS_ONLN')) if n > 0: return n except (AttributeError, ValueError):