def country_name_by_addr(self, addr):
VALID_EDITIONS = (const.COUNTRY_EDITION, const.COUNTRY_EDITION_V6)<EOL>if self._databaseType in VALID_EDITIONS:<EOL><INDENT>country_id = self.id_by_addr(addr)<EOL>return const.COUNTRY_NAMES[country_id]<EOL><DEDENT>elif self._databaseType in const.CITY_EDITIONS:<EOL><INDENT>return self.record_by_addr(addr).get('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>message = '<STR_LIT>'<EOL>raise GeoIPError(message)<EOL><DEDENT>
Returns full country name for specified IP address.

:arg addr: IP address (e.g. 203.0.113.30)