From ddf5ba8cfcfe7d133ddbf888cc6e3af79863c712 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 1 May 2021 18:25:06 -0400 Subject: refactor: pyupgrade --py36-plus tests/**.py --- tests/osinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/osinfo.py') diff --git a/tests/osinfo.py b/tests/osinfo.py index f9562deb..ec34c709 100644 --- a/tests/osinfo.py +++ b/tests/osinfo.py @@ -50,7 +50,7 @@ elif env.LINUX: # Get pseudo file /proc//status with open('/proc/%d/status' % os.getpid()) as t: v = t.read() - except IOError: # pragma: cant happen + except OSError: # pragma: cant happen return 0 # non-Linux? # Get VmKey line e.g. 'VmRSS: 9999 kB\n ...' i = v.index(key) -- cgit v1.2.1