From 8489206e9da02bfa3a69f44b2f9a516ba7d1fdee Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 22 Aug 2019 13:29:31 -0700 Subject: intel/genxml: Stop manually scrubbing 'α' -> "alpha" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'α' has never appeared in any genxml files, so there's no need to replace it with the word "alpha". Reviewed-by: Jordan Justen --- src/intel/genxml/gen_bits_header.py | 2 +- src/intel/genxml/gen_pack_header.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/intel/genxml/gen_bits_header.py b/src/intel/genxml/gen_bits_header.py index 38e9a6c74f1..3b0f9ab2f3f 100644 --- a/src/intel/genxml/gen_bits_header.py +++ b/src/intel/genxml/gen_bits_header.py @@ -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) diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py index f76ad325f03..118cc6330af 100644 --- a/src/intel/genxml/gen_pack_header.py +++ b/src/intel/genxml/gen_pack_header.py @@ -197,7 +197,6 @@ def to_alphanum(name): '=': '', '>': '', '#': '', - 'α': 'alpha', '&': '', '*': '', '"': '', -- cgit v1.2.3