comparison hgext/gpg.py @ 25149:3f0744eeaeaf

cleanup: use __builtins__.any instead of util.any any() is available in all Python versions we support now.
author Augie Fackler <augie@google.com>
date Sat, 16 May 2015 14:30:07 -0400
parents 7cc77030c557
children 80c5b2666a96
comparison
equal deleted inserted replaced
25148:3b5cd6f13dcc 25149:3f0744eeaeaf
253 repo.vfs.append("localsigs", sigmessage) 253 repo.vfs.append("localsigs", sigmessage)
254 return 254 return
255 255
256 if not opts["force"]: 256 if not opts["force"]:
257 msigs = match.exact(repo.root, '', ['.hgsigs']) 257 msigs = match.exact(repo.root, '', ['.hgsigs'])
258 if util.any(repo.status(match=msigs, unknown=True, ignored=True)): 258 if any(repo.status(match=msigs, unknown=True, ignored=True)):
259 raise util.Abort(_("working copy of .hgsigs is changed "), 259 raise util.Abort(_("working copy of .hgsigs is changed "),
260 hint=_("please commit .hgsigs manually")) 260 hint=_("please commit .hgsigs manually"))
261 261
262 sigsfile = repo.wfile(".hgsigs", "ab") 262 sigsfile = repo.wfile(".hgsigs", "ab")
263 sigsfile.write(sigmessage) 263 sigsfile.write(sigmessage)