##// END OF EJS Templates
util: add util.clearcachedproperty...
Mark Thomas -
r35021:be6aa0cf default
parent child Browse files
Show More
@@ -931,6 +931,11 b' class propertycache(object):'
931 931 # __dict__ assignment required to bypass __setattr__ (eg: repoview)
932 932 obj.__dict__[self.name] = value
933 933
934 def clearcachedproperty(obj, prop):
935 '''clear a cached property value, if one has been set'''
936 if prop in obj.__dict__:
937 del obj.__dict__[prop]
938
934 939 def pipefilter(s, cmd):
935 940 '''filter string S through command CMD, returning its output'''
936 941 p = subprocess.Popen(cmd, shell=True, close_fds=closefds,
General Comments 0
You need to be logged in to leave comments. Login now