Skip to content
Browse files

Merge pull request #124 from mjpieters/patch-1

Simplify dict_of_key_value_pairs
  • Loading branch information...
2 parents a4179fd + b934b07 commit f567ef60929303f97231046eb7951144b97b35fa @mnaberez mnaberez committed Jun 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 supervisor/datatypes.py
View
2 supervisor/datatypes.py
@@ -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"

0 comments on commit f567ef6

Please sign in to comment.
Something went wrong with that request. Please try again.