mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +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
|
@ -150,7 +150,7 @@ class Profile:
|
|||
bias = self.bias
|
||||
self.bias = bias # Materialize in local dict for lookup speed.
|
||||
|
||||
if not timer:
|
||||
if timer is None:
|
||||
if os.name == 'mac':
|
||||
self.timer = MacOS.GetTicks
|
||||
self.dispatcher = self.trace_dispatch_mac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue