# HG changeset patch # User Augie Fackler # Date 2019-11-06 20:19:56 # Node ID 2dcd4e7731932f876e6446df8a141148f7cc6852 # Parent 90aac60b6697860ce884f43055d0a42b780e32d5 vfs: fix erroneous bytes constants Detected with pytype. Differential Revision: https://phab.mercurial-scm.org/D7264 diff --git a/mercurial/vfs.py b/mercurial/vfs.py --- a/mercurial/vfs.py +++ b/mercurial/vfs.py @@ -52,7 +52,7 @@ class abstractvfs(object): def __init__(self, *args, **kwargs): '''Prevent instantiation; don't call this from subclasses.''' - raise NotImplementedError(b'attempted instantiating ' + str(type(self))) + raise NotImplementedError('attempted instantiating ' + str(type(self))) def _auditpath(self, path, mode): raise NotImplementedError @@ -589,10 +589,10 @@ class closewrapbase(object): return self def __exit__(self, exc_type, exc_value, exc_tb): - raise NotImplementedError(b'attempted instantiating ' + str(type(self))) + raise NotImplementedError('attempted instantiating ' + str(type(self))) def close(self): - raise NotImplementedError(b'attempted instantiating ' + str(type(self))) + raise NotImplementedError('attempted instantiating ' + str(type(self))) class delayclosedfile(closewrapbase):