Make "print" compatible between Py2 & Py3

This commit is contained in:
Ivan Kravets
2018-10-27 20:22:11 +03:00
parent 729178731c
commit 080369f597
7 changed files with 32 additions and 32 deletions

View File

@@ -274,13 +274,13 @@ def VerboseAction(_, act, actstr):
def PioClean(env, clean_dir):
if not isdir(clean_dir):
print "Build environment is clean"
print("Build environment is clean")
env.Exit(0)
for root, _, files in walk(clean_dir):
for file_ in files:
remove(join(root, file_))
print "Removed %s" % relpath(join(root, file_))
print "Done cleaning"
print("Removed %s" % relpath(join(root, file_)))
print("Done cleaning")
util.rmtree_(clean_dir)
env.Exit(0)