summaryrefslogtreecommitdiff
path: root/Lib/sgmllib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/sgmllib.py')
-rw-r--r--Lib/sgmllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py
index 784dbe1b8a..3e85a910e0 100644
--- a/Lib/sgmllib.py
+++ b/Lib/sgmllib.py
@@ -270,7 +270,7 @@ class SGMLParser(markupbase.ParserBase):
if not rest:
attrvalue = attrname
else:
- if (attrvalue[:1] == "'" == attrvalue[-1:] or
+ if (attrvalue[:1] == "'" == attrvalue[-1:] or
attrvalue[:1] == '"' == attrvalue[-1:]):
# strip quotes
attrvalue = attrvalue[1:-1]