1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Merge python EnvironmentError, IOError and WindowsError into OSError.

This commit is contained in:
Marcel Admiraal
2020-09-02 15:58:07 +01:00
parent 39228830ce
commit cba4a93a34
3 changed files with 8 additions and 8 deletions

View File

@@ -185,7 +185,7 @@ def write_modules(module_list):
unregister_cpp += "#ifdef MODULE_" + name.upper() + "_ENABLED\n"
unregister_cpp += "\tunregister_" + name + "_types();\n"
unregister_cpp += "#endif\n"
except IOError:
except OSError:
pass
modules_cpp = """// register_module_types.gen.cpp
@@ -522,7 +522,7 @@ def generate_cpp_hint_file(filename):
try:
with open(filename, "w") as fd:
fd.write("#define GDCLASS(m_class, m_inherits)\n")
except IOError:
except OSError:
print("Could not write cpp.hint file.")