changeset 41453:1a4a41d39dfc

py3: pass str into RuntimeError() to prevent b'' in output # skip-blame as just r'' prefixes Differential Revision: https://phab.mercurial-scm.org/D5740
author Pulkit Goyal <pulkit@yandex-team.ru>
date Wed, 30 Jan 2019 03:56:35 +0530
parents a03d20e36194
children d1d3094b54f9
files hgext/remotefilelog/shallowutil.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):