Show More
@@ -290,21 +290,13 b' class vfs(abstractvfs):' | |||||
290 | if realpath: |
|
290 | if realpath: | |
291 | base = os.path.realpath(base) |
|
291 | base = os.path.realpath(base) | |
292 | self.base = base |
|
292 | self.base = base | |
293 |
self. |
|
293 | self._audit = audit | |
294 | self.createmode = None |
|
294 | if audit: | |
295 | self._trustnlink = None |
|
|||
296 |
|
||||
297 | @property |
|
|||
298 | def mustaudit(self): |
|
|||
299 | return self._audit |
|
|||
300 |
|
||||
301 | @mustaudit.setter |
|
|||
302 | def mustaudit(self, onoff): |
|
|||
303 | self._audit = onoff |
|
|||
304 | if onoff: |
|
|||
305 | self.audit = pathutil.pathauditor(self.base) |
|
295 | self.audit = pathutil.pathauditor(self.base) | |
306 | else: |
|
296 | else: | |
307 | self.audit = util.always |
|
297 | self.audit = util.always | |
|
298 | self.createmode = None | |||
|
299 | self._trustnlink = None | |||
308 |
|
300 | |||
309 | @util.propertycache |
|
301 | @util.propertycache | |
310 | def _cansymlink(self): |
|
302 | def _cansymlink(self): | |
@@ -436,14 +428,6 b' class auditvfs(object):' | |||||
436 | self.vfs = vfs |
|
428 | self.vfs = vfs | |
437 |
|
429 | |||
438 | @property |
|
430 | @property | |
439 | def mustaudit(self): |
|
|||
440 | return self.vfs.mustaudit |
|
|||
441 |
|
||||
442 | @mustaudit.setter |
|
|||
443 | def mustaudit(self, onoff): |
|
|||
444 | self.vfs.mustaudit = onoff |
|
|||
445 |
|
||||
446 | @property |
|
|||
447 | def options(self): |
|
431 | def options(self): | |
448 | return self.vfs.options |
|
432 | return self.vfs.options | |
449 |
|
433 |
General Comments 0
You need to be logged in to leave comments.
Login now