3911: Crash because of syntax error in name format

svn: r15302
This commit is contained in:
Doug Blank 2010-05-03 01:07:24 +00:00
parent 527db10555
commit 652a1f132b

View File

@ -393,8 +393,11 @@ class NameDisplay(object):
] ]
format_str = format_str[1:] format_str = format_str[1:]
else: else:
patterns = [",\W*\(%(" + ("|".join(codes)) + ")\)", # ,\W*(%s) patterns = [
",\W*\"%(" + ("|".join(codes)) + ")\"", # ,\W*"%s"
",\W*\(%(" + ("|".join(codes)) + ")\)", # ,\W*(%s)
",\W*%(" + ("|".join(codes)) + ")", # ,\W*%s ",\W*%(" + ("|".join(codes)) + ")", # ,\W*%s
"\"%(" + ("|".join(codes)) + ")\"", # "%s"
"\(%(" + ("|".join(codes)) + ")\)", # (%s) "\(%(" + ("|".join(codes)) + ")\)", # (%s)
"%(" + ("|".join(codes)) + ")", # %s "%(" + ("|".join(codes)) + ")", # %s
] ]