mirror of
https://github.com/python/cpython.git
synced 2025-10-11 17:32:49 +00:00
Replace boolean test with is None
This commit is contained in:
parent
0f4940c0a8
commit
094662a165
4 changed files with 5 additions and 5 deletions
|
@ -104,7 +104,7 @@ class NullTranslations:
|
|||
self._info = {}
|
||||
self._charset = None
|
||||
self._fallback = None
|
||||
if fp:
|
||||
if fp is not None:
|
||||
self._parse(fp)
|
||||
|
||||
def _parse(self, fp):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue