Show More
@@ -931,6 +931,11 b' class propertycache(object):' | |||||
931 | # __dict__ assignment required to bypass __setattr__ (eg: repoview) |
|
931 | # __dict__ assignment required to bypass __setattr__ (eg: repoview) | |
932 | obj.__dict__[self.name] = value |
|
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 | def pipefilter(s, cmd): |
|
939 | def pipefilter(s, cmd): | |
935 | '''filter string S through command CMD, returning its output''' |
|
940 | '''filter string S through command CMD, returning its output''' | |
936 | p = subprocess.Popen(cmd, shell=True, close_fds=closefds, |
|
941 | p = subprocess.Popen(cmd, shell=True, close_fds=closefds, |
General Comments 0
You need to be logged in to leave comments.
Login now