Skip to content

Commit

Permalink
Simplify; no need to create a range every loop if all you are testing…
Browse files Browse the repository at this point in the history
… is if `i` is within bounds.
  • Loading branch information
mjpieters committed Jun 4, 2012
1 parent a4179fd commit b934b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervisor/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def dict_of_key_value_pairs(arg):

D = {}
i = 0
while i in range(0, tokens_len):
while i < tokens_len:
k_eq_v = tokens[i:i+3]
if len(k_eq_v) != 3:
raise ValueError, "Unexpected end of key/value pairs"
Expand Down

0 comments on commit b934b07

Please sign in to comment.