Show More
@@ -169,6 +169,7 b' class opener(abstractopener):' | |||||
169 | ''' |
|
169 | ''' | |
170 | def __init__(self, base, audit=True): |
|
170 | def __init__(self, base, audit=True): | |
171 | self.base = base |
|
171 | self.base = base | |
|
172 | self._audit = audit | |||
172 | if audit: |
|
173 | if audit: | |
173 | self.auditor = pathauditor(base) |
|
174 | self.auditor = pathauditor(base) | |
174 | else: |
|
175 | else: | |
@@ -186,6 +187,7 b' class opener(abstractopener):' | |||||
186 | os.chmod(name, self.createmode & 0666) |
|
187 | os.chmod(name, self.createmode & 0666) | |
187 |
|
188 | |||
188 | def __call__(self, path, mode="r", text=False, atomictemp=False): |
|
189 | def __call__(self, path, mode="r", text=False, atomictemp=False): | |
|
190 | if self._audit: | |||
189 | r = util.checkosfilename(path) |
|
191 | r = util.checkosfilename(path) | |
190 | if r: |
|
192 | if r: | |
191 | raise util.Abort("%s: %r" % (r, path)) |
|
193 | raise util.Abort("%s: %r" % (r, path)) |
General Comments 0
You need to be logged in to leave comments.
Login now