Conditions | 1 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """ |
||
30 | def process(self, infile): |
||
31 | """ |
||
32 | Processes a SDoc1 document. |
||
33 | |||
34 | :param str infile: The input filename with the SDoc2 document. |
||
35 | """ |
||
36 | in_stream = antlr4.FileStream(infile, 'utf-8') |
||
37 | |||
38 | lexer = sdoc2Lexer(in_stream) |
||
39 | tokens = antlr4.CommonTokenStream(lexer) |
||
40 | parser = sdoc2Parser(tokens) |
||
41 | tree = parser.sdoc() |
||
42 | visitor = SDoc2Visitor() |
||
43 | |||
44 | visitor.visit(tree) |
||
45 | |||
46 | sdoc.sdoc2.node_store.prepare_content_tree() |
||
47 | |||
48 | return visitor.errors |
||
49 | |||
51 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.py
files in your module folders. Make sure that you place one file in each sub-folder.