From 42b8ab588284667c85f9a300878d70407c6cebf8 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 11 Apr 2018 14:41:51 +0200 Subject: [PATCH] Modifying output in wait_for_finish_install() --- lib/cr_vmware_tpl/handler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cr_vmware_tpl/handler.py b/lib/cr_vmware_tpl/handler.py index 8d0afaf..0c20bfd 100644 --- a/lib/cr_vmware_tpl/handler.py +++ b/lib/cr_vmware_tpl/handler.py @@ -6,7 +6,7 @@ @copyright: © 2018 by Frank Brehm, Berlin @summary: A handler module for creating the VMWare template """ -from __future__ import absolute_import +from __future__ import absolute_import, print_function # Standard module import sys @@ -627,10 +627,10 @@ class CrTplHandler(PpBaseObject): time.sleep(self.interval_poll) cur_time = time.time() if (cur_time - last_dot) >= self.interval_dot: - sys.stdout.write('.') - sys.stdout.flush() + print('.', end='', flush=True) last_dot = cur_time cur_duration = cur_time - self.ts_start_install + print('', flush=True) # ============================================================================= -- 2.39.5