From 047e5cafcc7e14bb93994038c8d3f7f74bc866cc Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 16 Oct 2015 14:59:04 +0200 Subject: [PATCH] Fix Python 3 error in direct.stdpy.file --- direct/src/stdpy/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/stdpy/file.py b/direct/src/stdpy/file.py index e31fb76b89..f7125a3920 100644 --- a/direct/src/stdpy/file.py +++ b/direct/src/stdpy/file.py @@ -19,7 +19,7 @@ from posixpath import join _vfs = core.VirtualFileSystem.getGlobalPtr() -if sys.version < (3, 0): +if sys.version_info < (3, 0): # Python 3 defines these subtypes of IOError, but Python 2 doesn't. FileNotFoundError = IOError IsADirectoryError = IOError