diff options
Diffstat (limited to 'bitbake/lib/bb/parse/__init__.py')
-rw-r--r-- | bitbake/lib/bb/parse/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py index adc1408b9e..4b957884cc 100644 --- a/bitbake/lib/bb/parse/__init__.py +++ b/bitbake/lib/bb/parse/__init__.py | |||
@@ -37,12 +37,12 @@ class SkipPackage(Exception): | |||
37 | 37 | ||
38 | __mtime_cache = {} | 38 | __mtime_cache = {} |
39 | def cached_mtime(f): | 39 | def cached_mtime(f): |
40 | if not __mtime_cache.has_key(f): | 40 | if f not in __mtime_cache: |
41 | __mtime_cache[f] = os.stat(f)[8] | 41 | __mtime_cache[f] = os.stat(f)[8] |
42 | return __mtime_cache[f] | 42 | return __mtime_cache[f] |
43 | 43 | ||
44 | def cached_mtime_noerror(f): | 44 | def cached_mtime_noerror(f): |
45 | if not __mtime_cache.has_key(f): | 45 | if f not in __mtime_cache: |
46 | try: | 46 | try: |
47 | __mtime_cache[f] = os.stat(f)[8] | 47 | __mtime_cache[f] = os.stat(f)[8] |
48 | except OSError: | 48 | except OSError: |