| Index: pylib/gyp/generator/scons.py
|
| ===================================================================
|
| --- pylib/gyp/generator/scons.py (revision 1410)
|
| +++ pylib/gyp/generator/scons.py (working copy)
|
| @@ -8,7 +8,6 @@
|
| import os.path
|
| import pprint
|
| import re
|
| -import string
|
|
|
|
|
| # TODO: remove when we delete the last WriteList() call in this module
|
| @@ -463,7 +462,7 @@
|
|
|
| rules = spec.get('rules', [])
|
| for rule in rules:
|
| - name = rule['rule_name'].translate(string.maketrans(' ()-', '____'))
|
| + name = re.sub('[^a-zA-Z0-9_]', '_', rule['rule_name'])
|
| message = rule.get('message')
|
| if message:
|
| message = repr(message)
|
|
|