getgauge/parser_parso.py
def _step_decorator_args(self, decorator):
        """
        Get the arguments passed to step decorators
        converted to python objects.
        """
        args = decorator.children[3:-2]
        step = None
        if len(args) == 1:
            try:
                step = ast.literal_eval(args[0].get_code())
            except (ValueError, SyntaxError):
                pass
            if isinstance(step, six.string_types+(list,)):
                return step
            logging.error("Decorator step accepts either a string or a list of strings - %s:%d",
                          self.file_path, decorator.start_pos[0])
        else:
            logging.error("Decorator step accepts only one argument - %s:%d",
                          self.file_path, decorator.start_pos[0])
def _step_decorator_args(self, decorator):
        """
        Get the arguments passed to step decorators
        converted to python objects.
        """
        args = decorator.children[3:-2]
        step = None
        if len(args) == 1:
            try:
                step = ast.literal_eval(args[0].get_code())
            except (ValueError, SyntaxError):
                pass
            if isinstance(step, six.string_types+(list,)):
                return step
            logging.error("Decorator step accepts either a string or a list of strings - %s:%d",
                          self.file_path, decorator.start_pos[0])
        else:
            logging.error("Decorator step accepts only one argument - %s:%d",
                          self.file_path, decorator.start_pos[0])
def _step_decorator_args ( self , decorator ) : args = decorator . children [ 3 : - 2 ] step = None if len ( args ) == 1 : try : step = ast . literal_eval ( args [ 0 ] . get_code ( ) ) except ( ValueError , SyntaxError ) : pass if isinstance ( step , six . string_types + ( list , ) ) : return step logging . error ( "Decorator step accepts either a string or a list of strings - %s:%d" , self . file_path , decorator . start_pos [ 0 ] ) else : logging . error ( "Decorator step accepts only one argument - %s:%d" , self . file_path , decorator . start_pos [ 0 ] )
Get the arguments passed to step decorators
        converted to python objects.
Get the arguments passed to step decorators converted to python objects .