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