diff options
author | Dylan Baker <[email protected]> | 2016-05-31 13:33:50 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-05-31 15:09:06 -0700 |
commit | 12c1a01c720f4e9fa16345ee403ac061ed40601e (patch) | |
tree | dddecc176797e4e525fd9a94ba1f4269d6c227d2 /src/intel/genxml | |
parent | a45a25418bd6310122d52f12a4640e8493246439 (diff) |
genxml: use the isalpha method rather than str.isalpha.
This fixes gen_pack_header to work on python 2, where name[0] is unicode
not str.
Signed-off-by: Dylan Bake <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
cc: 12.0 <[email protected]>
Diffstat (limited to 'src/intel/genxml')
-rw-r--r-- | src/intel/genxml/gen_pack_header.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py index 876d6097206..99452728b84 100644 --- a/src/intel/genxml/gen_pack_header.py +++ b/src/intel/genxml/gen_pack_header.py @@ -201,7 +201,7 @@ def to_alphanum(name): def safe_name(name): name = to_alphanum(name) - if not str.isalpha(name[0]): + if not name[0].isalpha(): name = '_' + name return name |