Skip to content

Commit e68c04c

Browse files
committed
More Pythonic code!
1 parent 7a5b7fb commit e68c04c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emacs-the-best-python-editor/PyEval/pyeval_expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def parse(self):
133133
# - Pop it and output it.
134134
# - Push the current operator
135135

136-
if len(self._operator_stack) == 0:
136+
if not self._operator_stack:
137137
self._operator_stack.append(current_operator)
138138

139139
else:

0 commit comments

Comments
 (0)