[Python-modules-commits] [python-spur] 09/13: Use print as a function in README.rst

Ruben Undheim rubund-guest at moszumanska.debian.org
Sun Jan 3 10:38:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

rubund-guest pushed a commit to branch master
in repository python-spur.

commit 1dcbda582955219e8f253cf45b690f6318d54cb9
Author: Michael Williamson <mike at zwobble.org>
Date:   Mon Dec 28 11:03:30 2015 +0000

    Use print as a function in README.rst
---
 README.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.rst b/README.rst
index d358d11..2b5eb96 100644
--- a/README.rst
+++ b/README.rst
@@ -9,7 +9,7 @@ To run echo locally:
 
     shell = spur.LocalShell()
     result = shell.run(["echo", "-n", "hello"])
-    print result.output # prints hello
+    print(result.output) # prints hello
 
 Executing the same command over SSH uses the same interface -- the only
 difference is how the shell is created:
@@ -21,7 +21,7 @@ difference is how the shell is created:
     shell = spur.SshShell(hostname="localhost", username="bob", password="password1")
     with shell:
         result = shell.run(["echo", "-n", "hello"])
-    print result.output # prints hello
+    print(result.output) # prints hello
 
 Installation
 ------------
@@ -116,7 +116,7 @@ a list of strings. Returns an instance of ``ExecutionResult``.
 .. code-block:: python
 
     result = shell.run(["echo", "-n", "hello"])
-    print result.output # prints hello
+    print(result.output) # prints hello
 
 Note that arguments are passed without any shell expansion. For
 instance, ``shell.run(["echo", "$PATH"])`` will print the literal string

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-spur.git



More information about the Python-modules-commits mailing list