Mercurial > public > mercurial-scm > hg-stable
diff mercurial/keepalive.py @ 34338:531332502568
style: always use `x is not None` instead of `not x is None`
Differential Revision: https://phab.mercurial-scm.org/D842
author | Alex Gaynor <agaynor@mozilla.com> |
---|---|
date | Fri, 29 Sep 2017 15:49:43 +0000 |
parents | 9bd003052d55 |
children | a454123f5d94 |
line wrap: on
line diff
--- a/mercurial/keepalive.py Sun Apr 24 18:41:23 2016 +0900 +++ b/mercurial/keepalive.py Fri Sep 29 15:49:43 2017 +0000 @@ -393,7 +393,7 @@ def read(self, amt=None): # the _rbuf test is only in this first if for speed. It's not # logically necessary - if self._rbuf and not amt is None: + if self._rbuf and amt is not None: L = len(self._rbuf) if amt > L: amt -= L