From ffa0d09ef29ffbf83f6658547c695b989a6afa14 Mon Sep 17 00:00:00 2001 From: Uiri Date: Mon, 4 Mar 2013 22:52:15 -0500 Subject: [PATCH] Fix issue with detecting unbalanced quotes. Identified by issue #4 --- toml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toml.py b/toml.py index 8ccd754..ac18e41 100644 --- a/toml.py +++ b/toml.py @@ -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: