##// END OF EJS Templates
util: use propertycache in opener instead of __getattr__
Simon Heimberg -
r9112:54eb3782 default
parent child Browse files
Show More
@@ -842,11 +842,9 class opener(object):
842 self.audit_path = always
842 self.audit_path = always
843 self.createmode = None
843 self.createmode = None
844
844
845 def __getattr__(self, name):
845 @propertycache
846 if name == '_can_symlink':
846 def _can_symlink(self):
847 self._can_symlink = checklink(self.base)
847 return checklink(self.base)
848 return self._can_symlink
849 raise AttributeError(name)
850
848
851 def _fixfilemode(self, name):
849 def _fixfilemode(self, name):
852 if self.createmode is None:
850 if self.createmode is None:
General Comments 0
You need to be logged in to leave comments. Login now