diff options
| author | Rémi Verschelde | 2017-10-07 10:54:58 +0200 |
|---|---|---|
| committer | GitHub | 2017-10-07 10:54:58 +0200 |
| commit | 84e7bbafb75a32dbd819777a61edfdb83252b8b1 (patch) | |
| tree | 5bbc71c5ef58ce83aa286d92417bd77899f89686 /editor | |
| parent | 195b12212d96494c3c7260c44442fcdfe27060e5 (diff) | |
| parent | 727a381fc902cd93d23b3624359bad38d49539d0 (diff) | |
| download | godot-84e7bbafb75a32dbd819777a61edfdb83252b8b1.tar.gz godot-84e7bbafb75a32dbd819777a61edfdb83252b8b1.tar.zst godot-84e7bbafb75a32dbd819777a61edfdb83252b8b1.zip | |
Merge pull request #11843 from hoelzl/pr-python3-build
Fix Python 3 build
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/SCsub | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/editor/SCsub b/editor/SCsub index 11cdb471a..e44b4e4bb 100644 --- a/editor/SCsub +++ b/editor/SCsub @@ -4,18 +4,8 @@ Import('env') env.editor_sources = [] import os -from compat import encode_utf8, byte_to_str, open_utf8 +from compat import encode_utf8, byte_to_str, open_utf8, escape_string -def escape_string(s, encoding='ascii'): - if isinstance(s, unicode): - s = s.encode(encoding) - result = '' - for c in s: - if not (32 <= ord(c) < 127) or c in ('\\', '"'): - result += '\\%03o' % ord(c) - else: - result += c - return result def make_certs_header(target, source, env): |
