commit:     cc7958c85d127afc169c34c83b28a77f51516789
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 15 06:49:16 2016 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Wed Feb 17 05:25:21 2016 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=cc7958c8

catalyst/support.py: Fix a py3 compatibility issue

 catalyst/support.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/catalyst/support.py b/catalyst/support.py
index 97fe562..4efe96c 100644
--- a/catalyst/support.py
+++ b/catalyst/support.py
@@ -225,7 +225,8 @@ def countdown(secs=5, doing="Starting"):
                        ('>>> Waiting %s seconds before starting...\n'
                         '>>> (Control-C to abort)...\n'
                         '%s in: ') % (secs, doing))
-               ticks=range(secs)
+               # py3 now creates a range object, so wrap it with list()
+               ticks=list(range(secs))
                ticks.reverse()
                for sec in ticks:
                        sys.stdout.write(str(sec+1)+" ")

Reply via email to