Searched refs:_regex_cache (Results 1 - 12 of 12) sorted by relevance

/prebuilts/gdb/darwin-x86/lib/python2.7/
H A D_strptime.py268 # DO NOT modify _TimeRE_cache or _regex_cache without acquiring the cache lock
271 _CACHE_MAX_SIZE = 5 # Max number of regexes stored in _regex_cache
272 _regex_cache = {} variable
297 global _TimeRE_cache, _regex_cache
301 _regex_cache.clear()
302 if len(_regex_cache) > _CACHE_MAX_SIZE:
303 _regex_cache.clear()
305 format_regex = _regex_cache.get(format)
321 _regex_cache[format] = format_regex
/prebuilts/gdb/linux-x86/lib/python2.7/
H A D_strptime.py268 # DO NOT modify _TimeRE_cache or _regex_cache without acquiring the cache lock
271 _CACHE_MAX_SIZE = 5 # Max number of regexes stored in _regex_cache
272 _regex_cache = {} variable
297 global _TimeRE_cache, _regex_cache
301 _regex_cache.clear()
302 if len(_regex_cache) > _CACHE_MAX_SIZE:
303 _regex_cache.clear()
305 format_regex = _regex_cache.get(format)
321 _regex_cache[format] = format_regex
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
H A D_strptime.py268 # DO NOT modify _TimeRE_cache or _regex_cache without acquiring the cache lock
271 _CACHE_MAX_SIZE = 5 # Max number of regexes stored in _regex_cache
272 _regex_cache = {} variable
297 global _TimeRE_cache, _regex_cache
301 _regex_cache.clear()
302 if len(_regex_cache) > _CACHE_MAX_SIZE:
303 _regex_cache.clear()
305 format_regex = _regex_cache.get(format)
321 _regex_cache[format] = format_regex
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/
H A D_strptime.py268 # DO NOT modify _TimeRE_cache or _regex_cache without acquiring the cache lock
271 _CACHE_MAX_SIZE = 5 # Max number of regexes stored in _regex_cache
272 _regex_cache = {} variable
297 global _TimeRE_cache, _regex_cache
301 _regex_cache.clear()
302 if len(_regex_cache) > _CACHE_MAX_SIZE:
303 _regex_cache.clear()
305 format_regex = _regex_cache.get(format)
321 _regex_cache[format] = format_regex
/prebuilts/gdb/darwin-x86/lib/python2.7/test/
H A Dtest_strptime.py500 self.assertEqual(len(_strptime._regex_cache), 1)
505 del _strptime._regex_cache['%d']
509 while len(_strptime._regex_cache) <= _strptime._CACHE_MAX_SIZE:
510 _strptime._regex_cache[bogus_key] = None
513 self.assertEqual(len(_strptime._regex_cache), 1)
H A Dregrtest.py1088 _strptime._regex_cache.clear()
/prebuilts/gdb/linux-x86/lib/python2.7/test/
H A Dtest_strptime.py500 self.assertEqual(len(_strptime._regex_cache), 1)
505 del _strptime._regex_cache['%d']
509 while len(_strptime._regex_cache) <= _strptime._CACHE_MAX_SIZE:
510 _strptime._regex_cache[bogus_key] = None
513 self.assertEqual(len(_strptime._regex_cache), 1)
H A Dregrtest.py1088 _strptime._regex_cache.clear()
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
H A Dtest_strptime.py500 self.assertEqual(len(_strptime._regex_cache), 1)
505 del _strptime._regex_cache['%d']
509 while len(_strptime._regex_cache) <= _strptime._CACHE_MAX_SIZE:
510 _strptime._regex_cache[bogus_key] = None
513 self.assertEqual(len(_strptime._regex_cache), 1)
H A Dregrtest.py1088 _strptime._regex_cache.clear()
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
H A Dtest_strptime.py500 self.assertEqual(len(_strptime._regex_cache), 1)
505 del _strptime._regex_cache['%d']
509 while len(_strptime._regex_cache) <= _strptime._CACHE_MAX_SIZE:
510 _strptime._regex_cache[bogus_key] = None
513 self.assertEqual(len(_strptime._regex_cache), 1)
H A Dregrtest.py1088 _strptime._regex_cache.clear()

Completed in 976 milliseconds