diff options
Diffstat (limited to 'BuildTools/SCons/Tools/WindowsBundle.py')
| -rw-r--r-- | BuildTools/SCons/Tools/WindowsBundle.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/BuildTools/SCons/Tools/WindowsBundle.py b/BuildTools/SCons/Tools/WindowsBundle.py index 4d73fa3..9781deb 100644 --- a/BuildTools/SCons/Tools/WindowsBundle.py +++ b/BuildTools/SCons/Tools/WindowsBundle.py @@ -31,13 +31,17 @@ def generate(env) : if p: stdout, stderr = p.communicate() mappings = [] - p = re.compile(r'"([^\"]*)" "([^\"]*)"') + regex = re.compile(r'"([^\"]*)" "([^\"]*)"') + + if SCons.Util.PY3: + matches = re.findall(regex, stdout.decode('utf8')) + else: + matches = re.findall(regex, stdout) - matches = re.findall(p, stdout) for match in matches: mappings.append(match) return mappings else: return False |
Swift