mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 02:21:15 +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:
parent
2e6f2ed032
commit
727a381fc9
3 changed files with 35 additions and 12 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue