summaryrefslogtreecommitdiffstats
path: root/bitbake/contrib/dump_cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/contrib/dump_cache.py')
-rwxr-xr-xbitbake/contrib/dump_cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/contrib/dump_cache.py b/bitbake/contrib/dump_cache.py
index e1f23090b9..97c5463a09 100755
--- a/bitbake/contrib/dump_cache.py
+++ b/bitbake/contrib/dump_cache.py
@@ -36,7 +36,7 @@ def main(argv=None):
36 Get the mapping for the target recipe. 36 Get the mapping for the target recipe.
37 """ 37 """
38 if len(argv) != 1: 38 if len(argv) != 1:
39 print >>sys.stderr, "Error, need one argument!" 39 print("Error, need one argument!", file=sys.stderr)
40 return 2 40 return 2
41 41
42 cachefile = argv[0] 42 cachefile = argv[0]
@@ -56,7 +56,7 @@ def main(argv=None):
56 continue 56 continue
57 57
58 # 1.0 is the default version for a no PV recipe. 58 # 1.0 is the default version for a no PV recipe.
59 if val.__dict__.has_key("pv"): 59 if "pv" in val.__dict__:
60 pv = val.pv 60 pv = val.pv
61 else: 61 else:
62 pv = "1.0" 62 pv = "1.0"