Fix Python 3 error in direct.stdpy.file

This commit is contained in:
rdb 2015-10-16 14:59:04 +02:00
parent 920210c999
commit 047e5cafcc

View File

@ -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