From 4e54031a3aed23585ff7dbc8a9e202418e9ff8ef Mon Sep 17 00:00:00 2001 From: Kevin Ndung'u Date: Tue, 29 Nov 2016 23:36:22 +0300 Subject: [PATCH] Fix example code in README Fix list comprehension in README with invalid syntax --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index c8a6cf2..48420a6 100644 --- a/README.rst +++ b/README.rst @@ -134,7 +134,7 @@ You know what sucks? Kicking off a long running data ingestion/processing task o import preflyt ok, results = preflyt.check(settings.CHECKS) if not ok: - print([result in results if not result["success"]]) + print([result for result in results if not result["success"]]) sys.exit(1) Now all the checks you're performing are defined in configuration, and no boilerplate!