summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/template/smartif.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/template/smartif.py b/django/template/smartif.py
index 272eab1e91..54d74b4e25 100644
--- a/django/template/smartif.py
+++ b/django/template/smartif.py
@@ -165,7 +165,7 @@ class IfParser(object):
self.tokens = mapped_tokens
self.pos = 0
- self.current_token = next(self)
+ self.current_token = self.next()
def translate_token(self, token):
try:
@@ -193,11 +193,11 @@ class IfParser(object):
def expression(self, rbp=0):
t = self.current_token
- self.current_token = next(self)
+ self.current_token = self.next()
left = t.nud(self)
while rbp < self.current_token.lbp:
t = self.current_token
- self.current_token = next(self)
+ self.current_token = self.next()
left = t.led(left, self)
return left