diff options
author | Hugo <hugovk@users.noreply.github.com> | 2018-10-21 18:52:57 +0300 |
---|---|---|
committer | Hugo <hugovk@users.noreply.github.com> | 2018-10-21 18:52:57 +0300 |
commit | 9e351464f011fd0aed59ebf94fe27f22b7823e0f (patch) | |
tree | fe3ab32a1dbb0af18bc50fd502edbdd701dcc811 /blessings | |
parent | 4e515462ba86483f6e8671bf42241fd39fd27c4e (diff) | |
download | blessings-9e351464f011fd0aed59ebf94fe27f22b7823e0f.tar.gz |
Python 3 style print
Diffstat (limited to 'blessings')
-rw-r--r-- | blessings/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/blessings/__init__.py b/blessings/__init__.py index d9305e6..779ca09 100644 --- a/blessings/__init__.py +++ b/blessings/__init__.py @@ -247,9 +247,9 @@ class Terminal(object): term = Terminal() with term.location(2, 5): - print 'Hello, world!' + print('Hello, world!') for x in xrange(10): - print 'I can do it %i times!' % x + print('I can do it %i times!' % x) Specify ``x`` to move to a certain column, ``y`` to move to a certain row, both, or neither. If you specify neither, only the saving and |