From 874ef51d3d3edfa25f5a505ec6ab50e172965d1e Mon Sep 17 00:00:00 2001 From: robot-piglet <robot-piglet@yandex-team.com> Date: Tue, 14 Nov 2023 19:18:07 +0300 Subject: Intermediate changes --- contrib/python/ipython/py3/IPython/utils/timing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/python/ipython/py3/IPython/utils/timing.py') diff --git a/contrib/python/ipython/py3/IPython/utils/timing.py b/contrib/python/ipython/py3/IPython/utils/timing.py index 3a181ae728..d87e5fa8ef 100644 --- a/contrib/python/ipython/py3/IPython/utils/timing.py +++ b/contrib/python/ipython/py3/IPython/utils/timing.py @@ -23,8 +23,8 @@ import time # If possible (Unix), use the resource module instead of time.clock() try: import resource -except ImportError: - resource = None +except ModuleNotFoundError: + resource = None # type: ignore [assignment] # Some implementations (like jyputerlite) don't have getrusage if resource is not None and hasattr(resource, "getrusage"): -- cgit v1.2.3