intel/genxml: Stop manually scrubbing 'α' -> "alpha"
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 22 Aug 2019 20:29:31 +0000 (13:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 23 Sep 2019 20:24:54 +0000 (20:24 +0000)
'α' has never appeared in any genxml files, so there's no need to
replace it with the word "alpha".

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/genxml/gen_bits_header.py
src/intel/genxml/gen_pack_header.py

index 38e9a6c74f1def2095d6686e56d794d32f5b1b66..3b0f9ab2f3f72802d995d1c3a5060ca6ddb89de5 100644 (file)
@@ -135,7 +135,7 @@ ${emit_per_gen_prop_func(field, 'start')}
 alphanum_nono = re.compile(r'[ /\[\]()\-:.,=>#&*"+\\]+')
 def to_alphanum(name):
     global alphanum_nono
-    return alphanum_nono.sub('', name).replace('α', 'alpha')
+    return alphanum_nono.sub('', name)
 
 def safe_name(name):
     name = to_alphanum(name)
index f76ad325f030046970c3561051a93ad5f04e27ab..118cc6330aff8277d3546a93dbade949e0298dbf 100644 (file)
@@ -197,7 +197,6 @@ def to_alphanum(name):
         '=': '',
         '>': '',
         '#': '',
-        'α': 'alpha',
         '&': '',
         '*': '',
         '"': '',