def real_name(self, asname):
for name, _asname in self.names:<EOL><INDENT>if name == "<STR_LIT:*>":<EOL><INDENT>return asname<EOL><DEDENT>if not _asname:<EOL><INDENT>name = name.split("<STR_LIT:.>", <NUM_LIT:1>)[<NUM_LIT:0>]<EOL>_asname = name<EOL><DEDENT>if asname == _asname:<EOL><INDENT>return name<EOL><DEDENT><DEDENT>raise exceptions.AttributeInferenceError(<EOL>"<STR_LIT>",<EOL>target=self,<EOL>attribute=asname,<EOL>)<EOL>
get name from 'as' name