Module ImportFrom alias ImportFrom alias identifier ImportFrom alias Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Return BoolOpAnd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMod Str NameLoad keyword AttributeLoad NameLoad attr Return NameLoad If UnaryOpNot AttributeLoad NameLoad attr body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Return NameLoad Return NameLoad decorator_list
N/A pybcp47 Bcp47LanguageParser transitfeed problems problems_class transitfeed util N/A parser N/A Bcp47LanguageParser IsValidLanguageCode N/A N/A lang N/A N/A N/A 
  Checks the validity of a language code value:
    - checks whether the code, as lower case, is well formed and valid BCP47
      using the pybcp47 module
   N/A bcp47_obj N/A N/A parser ParseLanguage N/A str N/A N/A lang lower N/A N/A N/A N/A bcp47_obj IsWellformed N/A N/A bcp47_obj IsValid N/A ValidateLanguageCode N/A N/A lang column_name problems N/A None None N/A N/A 
  Validates a non-required language code value using the pybcp47 module:
    - if invalid adds InvalidValue error (if problems accumulator is provided)
    - distinguishes between 'not well-formed' and 'not valid' and adds error
      reasons accordingly
    - an empty language code is regarded as valid! Otherwise we might end up
      with many duplicate errors because of the required field checks.
    - returns true if the language is valid, false if not well-formed or
      invalid.
   N/A N/A N/A util IsEmpty lang N/A N/A True N/A bcp47_obj N/A N/A parser ParseLanguage N/A str N/A N/A lang lower N/A N/A N/A bcp47_obj wellformed N/A N/A problems N/A N/A N/A N/A problems InvalidValue column_name lang N/A language code "%s" is not well-formed lang type N/A problems_class TYPE_ERROR N/A False N/A N/A N/A bcp47_obj valid N/A N/A problems N/A N/A N/A N/A problems InvalidValue column_name lang N/A language code "%s" is not valid, parses as: %s N/A lang bcp47_obj type N/A problems_class TYPE_WARNING N/A False N/A True N/A