Fix auto-renaming for structures

This commit is contained in:
Jan Petykiewicz 2019-04-16 00:41:18 -07:00
parent 5e6485f410
commit 11bbf6aa0b

View File

@ -468,7 +468,7 @@ def _disambiguate_pattern_names(patterns):
if suffixed_name != sanitized_name:
logger.warning('Pattern name "{}" appears multiple times; renaming to "{}"'.format(pat.name, suffixed_name))
encoded_name = sanitized_name.encode('ASCII')
encoded_name = suffixed_name.encode('ASCII')
if len(encoded_name) == 0:
raise PatternError('Zero-length name after sanitize+encode, originally "{}"'.format(pat.name))
if len(encoded_name) > 32: