mirror of
https://git.yoctoproject.org/poky
synced 2026-06-11 16:30:23 +00:00
scripts: python3: Use print function
Used print function instead of print statement to make the code work in python 3. (From OE-Core rev: 80fecc44761fa38ccf2e4dc6897b9f1f0c9c1ed0) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
79be110c1f
commit
2e388048b6
+2
-2
@@ -519,7 +519,7 @@ def check_patch(patchfile):
|
||||
|
||||
def drop_to_shell(workdir=None):
|
||||
if not sys.stdin.isatty():
|
||||
print "Not a TTY so can't drop to shell for resolution, exiting."
|
||||
print("Not a TTY so can't drop to shell for resolution, exiting.")
|
||||
return False
|
||||
|
||||
shell = os.environ.get('SHELL', 'bash')
|
||||
@@ -529,7 +529,7 @@ def drop_to_shell(workdir=None):
|
||||
' exit 1 -- abort\n' % shell);
|
||||
ret = subprocess.call([shell], cwd=workdir)
|
||||
if ret != 0:
|
||||
print "Aborting"
|
||||
print("Aborting")
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user