def __init__(self, language_code, country_code=None):
        """
        Build an instance ``Locale`` providing a ISO 639-3 alpha-3 code (or
        alpha-2 code), and optionally a ISO 3166-1 alpha-2 code.


        @param language_code: a ISO 639-3 alpha-3 code (or alpha-2 code; which
            will be automatically converted to its equivalent ISO 639-3
            alpha-3 code).

        @param country_code: a ISO 3166-1 alpha-2 code.
        """
        self.language_code = language_code if len(language_code) == 3 \
            else ISO_639_2_TO_ISO_639_3[language_code]
        self.country_code = country_code
def __init__ ( self , language_code , country_code = None ) : self . language_code = language_code if len ( language_code ) == 3 else ISO_639_2_TO_ISO_639_3 [ language_code ] self . country_code = country_code
Build an instance ``Locale`` providing a ISO 639-3 alpha-3 code (or
        alpha-2 code), and optionally a ISO 3166-1 alpha-2 code.


        @param language_code: a ISO 639-3 alpha-3 code (or alpha-2 code; which
            will be automatically converted to its equivalent ISO 639-3
            alpha-3 code).

        @param country_code: a ISO 3166-1 alpha-2 code.