Skip to content

Commit

Permalink
Fix issue with detecting unbalanced quotes. Identified by issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
uiri committed Mar 5, 2013
1 parent 14bf202 commit ffa0d09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def loads(s):
else:
openarr -= 1
if sl[i] == '\n':
if openstring:
raise Exception("Unbalanced quotes")
if openarr:
if openstring:
raise Exception("Unbalanced quotes")
sl.insert(i, ' ')
sl.pop(i+1)
else:
Expand Down

0 comments on commit ffa0d09

Please sign in to comment.