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:
Matthias Hoelzl 2017-10-04 23:21:32 +02:00
parent 2e6f2ed032
commit 727a381fc9
3 changed files with 35 additions and 12 deletions

View file

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