summaryrefslogtreecommitdiff
path: root/sphinx/util/cfamily.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/cfamily.py')
-rw-r--r--sphinx/util/cfamily.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/cfamily.py b/sphinx/util/cfamily.py
index 2dbb02004..21ac9b79f 100644
--- a/sphinx/util/cfamily.py
+++ b/sphinx/util/cfamily.py
@@ -379,7 +379,7 @@ class BaseParser:
while not self.eof:
if len(symbols) == 0 and self.current_char in end:
break
- if self.current_char in brackets.keys():
+ if self.current_char in brackets:
symbols.append(brackets[self.current_char])
elif len(symbols) > 0 and self.current_char == symbols[-1]:
symbols.pop()