mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
Fix Python 3 error in direct.stdpy.file
This commit is contained in:
parent
920210c999
commit
047e5cafcc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user