Open naphta opened 8 years ago
Getting an exception from pyparsing:
Exception:
pyparsing.ParseException: Expected {Group:({"</" W:(ABCD...) ">" LineEnd}) ^ Group:({"<" {{W:(ABCD...) <SPC><TAB><CR><LF> <= | >= | == | != | < | > | ~ <SPC><TAB><CR><LF> W:(ABCD...)} | {W:(ABCD...)}...} ">" LineEnd}) ^ Group:({W:(ABCD...) Suppress:(<SPC><TAB><CR><LF>) W:(0123...) LineEnd}) ^ Group:({{"#" LineEnd} ^ {"#" {W:(ABCD...)}... LineEnd}}) ^ Group:(LineEnd)} (at char 19), (line:1, col:20)
My code:
f = open(file, 'r') fs = str(f.read()) apache_parse_obj = parse_config.ParseApacheConfig(apache_file_as_string=fs) apache_config = apache_parse_obj.parse_config()```
pull request #10 may resolve this error
Getting an exception from pyparsing:
Exception:
My code: