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