##// 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 b' class opener(object):'
842 842 self.audit_path = always
843 843 self.createmode = None
844 844
845 def __getattr__(self, name):
846 if name == '_can_symlink':
847 self._can_symlink = checklink(self.base)
848 return self._can_symlink
849 raise AttributeError(name)
845 @propertycache
846 def _can_symlink(self):
847 return checklink(self.base)
850 848
851 849 def _fixfilemode(self, name):
852 850 if self.createmode is None:
General Comments 0
You need to be logged in to leave comments. Login now