<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> from . import python_tree_converter <EOL> import redhawk . common . parser as parser <EOL> import ast <EOL> import logging <EOL> class PythonParser ( parser . Parser ) : <EOL> def GetTreeConverterClass ( self ) : <EOL> return python_tree_converter . PythonTreeConverter <EOL> def Parse ( self , filename ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> tree = ast . parse ( open ( filename ) . read ( ) , filename = filename ) <EOL> return tree <EOL> except SyntaxError as e : <EOL> error = "<STR_LIT>" % ( filename ) <EOL> logging . warning ( error ) <EOL> return None </s>
