File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -439,10 +439,11 @@ def loads(data, conf=True):
439
439
to_eval = line
440
440
if re .match (cmt_regex , line ):
441
441
to_eval = re .match (cmt_regex , line ).group (1 )
442
- kname , kval = re .match (key_regex , to_eval ).group (1 , 2 )
443
- if "#" not in kname :
444
- k = Key (kname , kval )
445
- lopen [0 ].add (k )
442
+ if re .match (key_regex , to_eval ):
443
+ kname , kval = re .match (key_regex , to_eval ).group (1 , 2 )
444
+ if "#" not in kname :
445
+ k = Key (kname , kval )
446
+ lopen [0 ].add (k )
446
447
if re .match (r'.*}' , line ):
447
448
closenum = len (re .findall ('}' , line ))
448
449
while closenum > 0 :
Original file line number Diff line number Diff line change 4
4
5
5
setup (
6
6
name = 'python-nginx' ,
7
- version = '1.0 ' ,
7
+ version = '1.1 ' ,
8
8
description = 'Create and modify nginx serverblock configs in Python' ,
9
9
author = 'Jacob Cook' ,
10
10
author_email = 'jacob@peakwinter.net' ,
You can’t perform that action at this time.
0 commit comments