intel/genxml: Stop manually scrubbing 'α' -> "alpha"
'α' 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>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -197,7 +197,6 @@ def to_alphanum(name):
|
||||
'=': '',
|
||||
'>': '',
|
||||
'#': '',
|
||||
'α': 'alpha',
|
||||
'&': '',
|
||||
'*': '',
|
||||
'"': '',
|
||||
|
||||
Reference in New Issue
Block a user