From 75bdd216cb3581ba5f1bf8eb81411f7a54dbb9e6 2021-07-10 18:07:14 From: Douglas Blank Date: 2021-07-10 18:07:14 Subject: [PATCH] Fix typo --- diff --git a/IPython/utils/timing.py b/IPython/utils/timing.py index 600a080..c4acd6f 100644 --- a/IPython/utils/timing.py +++ b/IPython/utils/timing.py @@ -27,7 +27,7 @@ except ImportError: resource = None # Some implementations (like jyputerlite) don't have getrusage -if resource not None and hasattr(resource, "getrusage"): +if resource is not None and hasattr(resource, "getrusage"): def clocku(): """clocku() -> floating point number