Patchwork D7265: vfs: add a NotImplementedError implementation of __call__

login
register
mail settings
Submitter phabricator
Date Nov. 7, 2019, 8:31 a.m.
Message ID <8175055a963acbc771195dc4c11689e0@localhost.localdomain>
Download mbox | patch
Permalink /patch/42864/
State Not Applicable
Headers show

Comments

phabricator - Nov. 7, 2019, 8:31 a.m.
Closed by commit rHGb16912f8c07c: vfs: add a NotImplementedError implementation of __call__ (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7265?vs=17635&id=17682

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7265/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7265

AFFECTED FILES
  mercurial/vfs.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/vfs.py b/mercurial/vfs.py
--- a/mercurial/vfs.py
+++ b/mercurial/vfs.py
@@ -54,6 +54,9 @@ 
         '''Prevent instantiation; don't call this from subclasses.'''
         raise NotImplementedError('attempted instantiating ' + str(type(self)))
 
+    def __call__(self, path, mode=b'rb', **kwargs):
+        raise NotImplementedError
+
     def _auditpath(self, path, mode):
         raise NotImplementedError