File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,7 @@ def test_parse_exceptions(self):
306
306
'"asd" "123"\n "zxc" "333"\n "' ,
307
307
'asd 123\n zxc 333\n "' ,
308
308
'"asd\n \n \n \n \n zxc' ,
309
+ '"asd" "bbb\n \n \n \n \n zxc' ,
309
310
310
311
# one too many closing parenthasis
311
312
'"asd"\n {\n "zxc" "123"\n }\n }\n }\n }\n ' ,
Original file line number Diff line number Diff line change @@ -85,9 +85,9 @@ def parse(fp, mapper=dict):
85
85
if not match :
86
86
try :
87
87
line += next (fp )
88
+ continue
88
89
except StopIteration :
89
90
raise SyntaxError ("vdf.parse: unexpected EOF (open key quote?)" )
90
- continue
91
91
92
92
key = match .group ('key' ) if match .group ('qkey' ) is None else match .group ('qkey' )
93
93
val = match .group ('val' ) if match .group ('qval' ) is None else match .group ('qval' )
@@ -106,9 +106,9 @@ def parse(fp, mapper=dict):
106
106
if match .group ('vq_end' ) is None and match .group ('qval' ) is not None :
107
107
try :
108
108
line += next (fp )
109
+ continue
109
110
except StopIteration :
110
111
raise SyntaxError ("vdf.parse: unexpected EOF (open value quote?)" )
111
- continue
112
112
113
113
stack [- 1 ][key ] = val
114
114
You can’t perform that action at this time.
0 commit comments