Mercurial > public > mercurial-scm > hg-stable
diff hgext/mq.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 | 672e0558aed1 |
children | 80c5b2666a96 |
line wrap: on
line diff
--- a/hgext/mq.py Sat May 16 14:31:03 2015 -0400 +++ b/hgext/mq.py Sat May 16 14:30:07 2015 -0400 @@ -298,7 +298,7 @@ self.haspatch = diffstart > 1 self.plainmode = (plainmode or '# HG changeset patch' not in self.comments and - util.any(c.startswith('Date: ') or + any(c.startswith('Date: ') or c.startswith('From: ') for c in self.comments))