py3: pass str into RuntimeError() to prevent b'' in output
authorPulkit Goyal <pulkit@yandex-team.ru>
Wed, 30 Jan 2019 03:56:35 +0530
changeset 41453 1a4a41d39dfc
parent 41452 a03d20e36194
child 41454 d1d3094b54f9
py3: pass str into RuntimeError() to prevent b'' in output # skip-blame as just r'' prefixes Differential Revision: https://phab.mercurial-scm.org/D5740
hgext/remotefilelog/shallowutil.py
--- a/hgext/remotefilelog/shallowutil.py	Wed Jan 30 03:49:56 2019 +0530
+++ b/hgext/remotefilelog/shallowutil.py	Wed Jan 30 03:56:35 2019 +0530
@@ -237,9 +237,9 @@
             # v0, str(int(size)) is the header
             size = int(header)
     except ValueError:
-        raise RuntimeError("unexpected remotefilelog header: illegal format")
+        raise RuntimeError(r"unexpected remotefilelog header: illegal format")
     if size is None:
-        raise RuntimeError("unexpected remotefilelog header: no size found")
+        raise RuntimeError(r"unexpected remotefilelog header: no size found")
     return index + 1, size, flags
 
 def buildfileblobheader(size, flags, version=None):