comparison mercurial/util.py @ 19951:d51c4d85ec23 stable

spelling: random spell checker fixes
author Mads Kiilerich <madski@unity3d.com>
date Thu, 24 Oct 2013 01:49:56 +0800
parents 57479e0d203d
children c38c3fdc8b93 0849d280663e
comparison
equal deleted inserted replaced
19950:cce7ab960312 19951:d51c4d85ec23
281 result = self.func(obj) 281 result = self.func(obj)
282 self.cachevalue(obj, result) 282 self.cachevalue(obj, result)
283 return result 283 return result
284 284
285 def cachevalue(self, obj, value): 285 def cachevalue(self, obj, value):
286 # __dict__ assigment required to bypass __setattr__ (eg: repoview) 286 # __dict__ assignment required to bypass __setattr__ (eg: repoview)
287 obj.__dict__[self.name] = value 287 obj.__dict__[self.name] = value
288 288
289 def pipefilter(s, cmd): 289 def pipefilter(s, cmd):
290 '''filter string S through command CMD, returning its output''' 290 '''filter string S through command CMD, returning its output'''
291 p = subprocess.Popen(cmd, shell=True, close_fds=closefds, 291 p = subprocess.Popen(cmd, shell=True, close_fds=closefds,