From 8de13bd7dd76f5f5b23d6e4fb84be1a2f1dc5c5e Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 12 Aug 2015 13:44:11 +0200 Subject: Use the print function In Python 3, `print` is no longer a statement. Call it as a function everywhere, and include the future import to remove the statement in Python 2 code as well. Reviewed-By: Christian Heimes Reviewed-By: Jan Cholasta --- doc/examples/python-api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/examples/python-api.py') diff --git a/doc/examples/python-api.py b/doc/examples/python-api.py index 215bb9153..8c79dc4ca 100755 --- a/doc/examples/python-api.py +++ b/doc/examples/python-api.py @@ -43,5 +43,5 @@ else: # Now that you're connected, you can make calls to api.Command.whatever(): -print 'The admin user:' -print api.Command.user_show(u'admin') +print('The admin user:') +print(api.Command.user_show(u'admin')) -- cgit