mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Replace boolean test with is None.
This commit is contained in:
parent
793d4b4936
commit
16e3c427f3
7 changed files with 12 additions and 12 deletions
|
|
@ -506,7 +506,7 @@ if __name__ == '__main__':
|
|||
def __init__(self, profile=None):
|
||||
cmd.Cmd.__init__(self)
|
||||
self.prompt = "% "
|
||||
if profile:
|
||||
if profile is not None:
|
||||
self.stats = Stats(profile)
|
||||
else:
|
||||
self.stats = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue