def _create_regexp(self, keyword_name): if variablematcher.contains_scalar_variable(keyword_name) and \ not variablematcher.is_variable(keyword_name): kw = lambda: 0 kw.arguments = None kw.name = keyword_name return EmbeddedArgsHandler(kw).name_regexp