Show More
@@ -229,13 +229,21 b' class opener(abstractopener):' | |||||
229 | if expand: |
|
229 | if expand: | |
230 | base = os.path.realpath(util.expandpath(base)) |
|
230 | base = os.path.realpath(util.expandpath(base)) | |
231 | self.base = base |
|
231 | self.base = base | |
232 |
self._ |
|
232 | self._setmustaudit(audit) | |
233 | if audit: |
|
233 | self.createmode = None | |
234 | self.auditor = pathauditor(base) |
|
234 | self._trustnlink = None | |
|
235 | ||||
|
236 | def _getmustaudit(self): | |||
|
237 | return self._audit | |||
|
238 | ||||
|
239 | def _setmustaudit(self, onoff): | |||
|
240 | self._audit = onoff | |||
|
241 | if onoff: | |||
|
242 | self.auditor = pathauditor(self.base) | |||
235 | else: |
|
243 | else: | |
236 | self.auditor = util.always |
|
244 | self.auditor = util.always | |
237 | self.createmode = None |
|
245 | ||
238 | self._trustnlink = None |
|
246 | mustaudit = property(_getmustaudit, _setmustaudit) | |
239 |
|
247 | |||
240 | @util.propertycache |
|
248 | @util.propertycache | |
241 | def _cansymlink(self): |
|
249 | def _cansymlink(self): |
General Comments 0
You need to be logged in to leave comments.
Login now