Show More
@@ -129,7 +129,14 b' class path_auditor(object):' | |||||
129 | # want to add "foo/bar/baz" before checking if there's a "foo/.hg" |
|
129 | # want to add "foo/bar/baz" before checking if there's a "foo/.hg" | |
130 | self.auditeddir.update(prefixes) |
|
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 | '''Open files relative to a base directory |
|
140 | '''Open files relative to a base directory | |
134 |
|
141 | |||
135 | This class is used to hide the details of COW semantics and |
|
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