summaryrefslogtreecommitdiff
path: root/sphinx/util/tags.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/tags.py')
-rw-r--r--sphinx/util/tags.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/tags.py b/sphinx/util/tags.py
index 2a9b2a02..d5141587 100644
--- a/sphinx/util/tags.py
+++ b/sphinx/util/tags.py
@@ -35,9 +35,9 @@ class BooleanParser(Parser):
node = nodes.Const(None, lineno=token.lineno)
else:
node = nodes.Name(token.value, 'load', lineno=token.lineno)
- self.stream.next()
+ next(self.stream)
elif token.type == 'lparen':
- self.stream.next()
+ next(self.stream)
node = self.parse_expression()
self.stream.expect('rparen')
else: