From 7565e585384431c0f018aa13cdc363377f551208 Mon Sep 17 00:00:00 2001 From: Benjamin Radovsky Date: Tue, 18 Oct 2016 11:31:25 +1100 Subject: [PATCH] updated watcher cmd example to be compatible with python 3 as well --- README.md | 2 +- cmd/watcher/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4f602c7..0ca1276 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ First create a file called `script.py` with the following contents: import sys for line in sys.stdin: - print line + " - python" + print (line + " - python") ``` Next, start watcher with the `pipe` and `cmd` flags enabled: diff --git a/cmd/watcher/README.md b/cmd/watcher/README.md index da1d044..469dbe3 100644 --- a/cmd/watcher/README.md +++ b/cmd/watcher/README.md @@ -43,7 +43,7 @@ First create a file called `script.py` with the following contents: import sys for line in sys.stdin: - print line + " - python" + print (line + " - python") ``` Next, start watcher with the `pipe` and `cmd` flags enabled: