diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2016-02-14 22:49:16 -0800 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2016-02-16 21:25:21 -0800 |
commit | cc7958c85d127afc169c34c83b28a77f51516789 (patch) | |
tree | 1675219a9ceba60779f66933b6b8ecfcf61dc98f | |
parent | Merge branch 'master' of git+ssh://git.gentoo.org/proj/catalyst (diff) | |
download | catalyst-cc7958c85d127afc169c34c83b28a77f51516789.tar.gz catalyst-cc7958c85d127afc169c34c83b28a77f51516789.tar.bz2 catalyst-cc7958c85d127afc169c34c83b28a77f51516789.zip |
catalyst/support.py: Fix a py3 compatibility issue
-rw-r--r-- | catalyst/support.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/catalyst/support.py b/catalyst/support.py index 97fe5620..4efe96c5 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)+" ") |