Lines Matching defs:locale
4 LocaleTime -- Discovers and stores locale-specific time information
9 _getlang -- Figure out what language is being used for the locale
14 import locale
28 return locale.getlocale(locale.LC_TIME)
31 """Stores and handles locale-specific information related to time.
54 The locale language is set at the offset and then checked again before
56 mix of information from more than one locale. This would most likely
57 happen when using threads where one thread calls a locale-dependent
58 function while another thread changes the locale while the function in
60 locks to prevent changing the locale while locale-dependent code is
76 raise ValueError("locale changed during initialization")
133 # Must deal with possible lack of locale info
477 # Deal with bad locale setup where timezone names are the