Skip to content

Commit 284eb59

Browse files
authored
fixed a bug concerning parameter name (#343)
Co-authored-by: Victor Seifert <victor.seifert>
1 parent dc3219b commit 284eb59

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyhocon/config_parser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ def set_default_white_spaces():
346346

347347
with set_default_white_spaces():
348348
assign_expr = Forward()
349-
true_expr = Keyword("true", case_insensitive=True).set_parse_action(replace_with(True))
350-
false_expr = Keyword("false", case_insensitive=True).set_parse_action(replace_with(False))
351-
null_expr = Keyword("null", case_insensitive=True).set_parse_action(replace_with(NoneValue()))
349+
true_expr = Keyword("true", caseless=True).set_parse_action(replace_with(True))
350+
false_expr = Keyword("false", caseless=True).set_parse_action(replace_with(False))
351+
null_expr = Keyword("null", caseless=True).set_parse_action(replace_with(NoneValue()))
352352
key = QuotedString('"""', esc_char='\\', unquote_results=False) | \
353353
QuotedString('"', esc_char='\\', unquote_results=False) | Word(alphanums + alphas8bit + '._- /')
354354

@@ -382,7 +382,7 @@ def set_default_white_spaces():
382382
- Literal(')').suppress())
383383
)
384384
include_expr = (
385-
Keyword("include", case_insensitive=True).suppress() + (
385+
Keyword("include", caseless=True).suppress() + (
386386
include_content | (
387387
Keyword("required") - Literal('(').suppress() - include_content - Literal(')').suppress()
388388
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='pyhocon',
7-
version='0.3.62',
7+
version='0.3.63',
88
description='HOCON parser for Python',
99
long_description='pyhocon is a HOCON parser for Python. Additionally we provide a tool (pyhocon) to convert any HOCON '
1010
'content into json, yaml and properties format.',

0 commit comments

Comments
 (0)