You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix Python 3 build
- Take care of the differences in handling unicode characters in `escape_string` (formerly in `editor/SCsub`, now in `compat.py)`. - Conditionally include `_winreg` or `winreg` in the Mono editor module.
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import os
|
||||
|
||||
if os.name == 'nt':
|
||||
import _winreg as winreg
|
||||
import sys
|
||||
if sys.version_info < (3,):
|
||||
import _winreg as winreg
|
||||
else:
|
||||
import winreg
|
||||
|
||||
|
||||
def _reg_open_key(key, subkey):
|
||||
|
||||
Reference in New Issue
Block a user