From: Dylan Baker <[email protected]> This is cleaner and idiomatic.
Signed-off-by: Dylan Baker <[email protected]> --- framework/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core.py b/framework/core.py index fe4e4a4..870a708 100644 --- a/framework/core.py +++ b/framework/core.py @@ -121,7 +121,7 @@ def checkDir(dirname, failifexists): try: os.stat(dirname) except OSError as e: - if e.errno == errno.ENOENT or e.errno == errno.ENOTDIR: + if e.errno in [errno.ENOENT, errno.ENOTDIR]: exists = False if exists and failifexists: -- 2.8.2 _______________________________________________ Piglit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/piglit
