##// END OF EJS Templates
opener: introduce an abstact superclass of it...
Dan Villiom Podlaski Christiansen -
r14089:d3f7e110 default
parent child Browse files
Show More
@@ -129,7 +129,14 b' class path_auditor(object):'
129 129 # want to add "foo/bar/baz" before checking if there's a "foo/.hg"
130 130 self.auditeddir.update(prefixes)
131 131
132 class opener(object):
132 class abstractopener(object):
133 """Abstract base class; cannot be instantiated"""
134
135 def __init__(self, *args, **kwargs):
136 '''Prevent instantiation; don't call this from subclasses.'''
137 raise NotImplementedError('attempted instantiating ' + str(type(self)))
138
139 class opener(abstractopener):
133 140 '''Open files relative to a base directory
134 141
135 142 This class is used to hide the details of COW semantics and
General Comments 0
You need to be logged in to leave comments. Login now