summaryrefslogtreecommitdiff
path: root/bin
diff options
authorZygmunt Krynicki <zygmunt.krynicki@canonical.com>2015-05-21 00:04:10 +0200
committerZygmunt Krynicki <zygmunt.krynicki@canonical.com>2015-05-21 00:04:10 +0200
commit97bec929430d0f72542e428fae9975092cea5008 (patch)
tree660169b03037651ddedd12fd6201ee0e312503e4 /bin
parent40096965151dd6e57cc3ec821432f28c50c65912 (diff)
providers:checkbox: use more pythonic prints in recovery_info
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/recovery_info3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/recovery_info b/bin/recovery_info
index 2fed808..9d5c828 100755
--- a/bin/recovery_info
+++ b/bin/recovery_info
@@ -317,9 +317,8 @@ class RecoveryInfo(Command):
partition = RecoveryInfo.get_recovery_partition()
if partition is None:
- sys.stderr.write("Recovery partition not found\n")
+ print("Recovery partition not found", file=sys.stderr)
return 1
-
(recovery_type, recovery_partition) = partition
ctx.recovery_partition = recovery_partition
ctx.recovery_type = recovery_type