summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/parse/__init__.py')
-rw-r--r--bitbake/lib/bb/parse/__init__.py4
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 = {}
39def cached_mtime(f): 39def 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
44def cached_mtime_noerror(f): 44def 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: