HomeSort by relevance Sort by last modified time
    Searched refs:_regex_cache (Results 1 - 6 of 6) sorted by null

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
_strptime.py 268 # 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/
_strptime.py 268 # 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/test/
test_strptime.py 500 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)
regrtest.py     [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_strptime.py 500 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)
regrtest.py     [all...]

Completed in 4488 milliseconds