Skip to content

Commit

Permalink
LineParser: Don't allow key seperation by space
Browse files Browse the repository at this point in the history
This is more consequent.
  • Loading branch information
sils committed May 20, 2015
1 parent b990ef8 commit 8e29ef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coalib/parsing/LineParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class LineParser:
def __init__(self,
key_value_delimiters=['='],
comment_seperators=['#', ';', '//'],
key_delimiters=[',', ' '],
key_delimiters=[','],
section_name_surroundings={'[': "]"},
section_override_delimiters=["."]):
"""
Expand Down
2 changes: 1 addition & 1 deletion coalib/tests/parsing/LineParserTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_section_override(self):

def test_multi_value_parsing(self):
self.check_data_set(
"a, b\\ \\= section.c= = :()&/ \\\\#heres a comment \n",
"a, b\\ \\=, section.c= = :()&/ \\\\#heres a comment \n",
output_section='',
output_keys=[("", 'a'), ("", 'b ='), ("section", 'c')],
output_value='= :()&/ \\\\',
Expand Down

0 comments on commit 8e29ef5

Please sign in to comment.