From c9819a721d5d58543a87f9eba959cd05d98d6076 Mon Sep 17 00:00:00 2001 From: Bruno Morier <33898669+bmorier@users.noreply.github.com> Date: Wed, 30 Jan 2019 01:33:02 -0200 Subject: [PATCH] Update tempfile_services.py (#3896) Fix an invalid reference to os.errno. errno have been removed from os in python 3.7. The fix only replaces it by the already imported errno. --- python/ray/tempfile_services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/tempfile_services.py b/python/ray/tempfile_services.py index 6e47c3991..c8da4e58b 100644 --- a/python/ray/tempfile_services.py +++ b/python/ray/tempfile_services.py @@ -57,7 +57,7 @@ def try_to_create_directory(directory_path): try: os.makedirs(directory_path) except OSError as e: - if e.errno != os.errno.EEXIST: + if e.errno != errno.EEXIST: raise e logger.warning( "Attempted to create '{}', but the directory already "