Use True instead of 1 in while loop

A trivial fix just for more idiomatic expression.

Change-Id: Ib64ff99e8875072ea2dfb8ad0b351e8a20229847
This commit is contained in:
xiexs 2016-06-28 06:44:19 -04:00
parent e7f48fd1ad
commit 7b0e5acff8
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ from cinder.i18n import _
def _operatorOperands(tokenList):
it = iter(tokenList)
while 1:
while True:
try:
op1 = next(it)
op2 = next(it)