#NEWLINE# @ skip_ignored_lines #NEWLINE# def check_no_direct_rally_objects_import( logical_line , physical_line , filename ) : #NEWLINE# #INDENT# 'Check if rally.common.objects are properly imported.\n\n    If you import "from rally.common import objects" you are able to use\n    objects directly like objects.Task.\n\n    N340\n    ' #NEWLINE# if ( filename == './rally/common/objects/__init__.py' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( filename == './rally/common/objects/endpoint.py' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( logical_line . startswith ( 'from rally.common.objects' ) or logical_line . startswith ( 'import rally.common.objects.' ) ) : #NEWLINE# #INDENT# ( yield ( 0 , 'N340: Import objects module:`from rally.common import objects`. After that you can use directly objects e.g. objects.Task' ) )