summaryrefslogtreecommitdiffstats
path: root/import-layers/yocto-poky/bitbake/contrib/dump_cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'import-layers/yocto-poky/bitbake/contrib/dump_cache.py')
-rwxr-xr-ximport-layers/yocto-poky/bitbake/contrib/dump_cache.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/import-layers/yocto-poky/bitbake/contrib/dump_cache.py b/import-layers/yocto-poky/bitbake/contrib/dump_cache.py
index e1f23090b..f4d4c1b12 100755
--- a/import-layers/yocto-poky/bitbake/contrib/dump_cache.py
+++ b/import-layers/yocto-poky/bitbake/contrib/dump_cache.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
@@ -29,14 +29,14 @@ import warnings
sys.path.insert(0, os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), '../lib'))
from bb.cache import CoreRecipeInfo
-import cPickle as pickle
+import pickle as pickle
def main(argv=None):
"""
Get the mapping for the target recipe.
"""
if len(argv) != 1:
- print >>sys.stderr, "Error, need one argument!"
+ print("Error, need one argument!", file=sys.stderr)
return 2
cachefile = argv[0]
@@ -56,7 +56,7 @@ def main(argv=None):
continue
# 1.0 is the default version for a no PV recipe.
- if val.__dict__.has_key("pv"):
+ if "pv" in val.__dict__:
pv = val.pv
else:
pv = "1.0"
OpenPOWER on IntegriCloud