8000 Fix bug found by inspection; it is disquieting that this is not covered · awesome-python/html5lib-python@fb6d8c5 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb6d8c5

Browse files
committed
Fix bug found by inspection; it is disquieting that this is not covered
by any test case. --HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40650
1 parent eb70d51 commit fb6d8c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/serializer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ def serialize(self, treewalker, encoding=None):
147147
quote_char = self.quote_char
148148
if self.use_best_quote_char:
149149
if "'" in v and '"' not in v:
150-
quote_char = "'"
151-
elif '"' in v and "'" not in v:
152150
quote_char = '"'
151+
elif '"' in v and "'" not in v:
152+
quote_char = "'"
153153
if quote_char == "'":
154154
v = v.replace("'", "'")
155155
else:

0 commit comments

Comments
 (0)
0