Replace boolean test with is None

This commit is contained in:
Raymond Hettinger 2002-06-01 01:29:16 +00:00
parent 0f4940c0a8
commit 094662a165
4 changed files with 5 additions and 5 deletions

View file

@ -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):