GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( bbcadb...a925ee )
by Kaloyan
01:29
created

main()   A

Complexity

Conditions 3

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
dl 0
loc 13
rs 9.4285
c 0
b 0
f 0
1
#!/usr/bin/env python
2
3
from pyfranca import Processor, LexerException, ParserException, \
4
    ProcessorException
5
6
7
def main():
8
    processor = Processor()
9
    try:
10
        processor.import_string("hello.fidl", """
11
            package Example
12
            interface Interface {
13
                method Hello {}
14
            }
15
        """)
16
        assert processor.packages["Example"].interfaces["Interface"].\
17
            methods["Hello"].name == "Hello"
18
    except (LexerException, ParserException, ProcessorException) as e:
19
        print("ERROR: {}".format(e))
20
21
22
if __name__ == "__main__":
23
    main()
24