summaryrefslogtreecommitdiff
path: root/docutils/utils/smartquotes.py
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-01-26 19:04:01 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-01-26 19:04:01 +0000
commit066f96150fbe7bc2e3458581ef5f298471a4e39b (patch)
tree4a0babfccfceb750d47dc320153a9276ffd9a329 /docutils/utils/smartquotes.py
parent8fed1e903703656b5c00064e11679d3f2292d332 (diff)
downloaddocutils-066f96150fbe7bc2e3458581ef5f298471a4e39b.tar.gz
Remove redundant parentheses
Patch by Adam Turner. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8976 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/utils/smartquotes.py')
-rw-r--r--docutils/utils/smartquotes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/docutils/utils/smartquotes.py b/docutils/utils/smartquotes.py
index fca9fa9b3..734f392d7 100644
--- a/docutils/utils/smartquotes.py
+++ b/docutils/utils/smartquotes.py
@@ -895,15 +895,15 @@ def tokenize(text):
previous_end = 0
while token_match is not None:
if token_match.group(1):
- yield ('text', token_match.group(1))
+ yield 'text', token_match.group(1)
- yield ('tag', token_match.group(2))
+ yield 'tag', token_match.group(2)
previous_end = token_match.end()
token_match = tag_soup.search(text, token_match.end())
if previous_end < len(text):
- yield ('text', text[previous_end:])
+ yield 'text', text[previous_end:]