aboutsummaryrefslogtreecommitdiff
path: root/docs/streaming-programming-guide.md
diff options
context:
space:
mode:
authorSean Owen <sowen@cloudera.com>2015-07-31 13:45:28 -0700
committerXiangrui Meng <meng@databricks.com>2015-07-31 13:45:28 -0700
commit873ab0f9692d8ea6220abdb8d9200041068372a8 (patch)
treee1116f9c5a53c796943ad189be61aceca5f31653 /docs/streaming-programming-guide.md
parent815c8245f47e61226a04e2e02f508457b5e9e536 (diff)
downloadspark-873ab0f9692d8ea6220abdb8d9200041068372a8.tar.gz
spark-873ab0f9692d8ea6220abdb8d9200041068372a8.tar.bz2
spark-873ab0f9692d8ea6220abdb8d9200041068372a8.zip
[SPARK-9490] [DOCS] [MLLIB] MLlib evaluation metrics guide example python code uses deprecated print statement
Use print(x) not print x for Python 3 in eval examples CC sethah mengxr -- just wanted to close this out before 1.5 Author: Sean Owen <sowen@cloudera.com> Closes #7822 from srowen/SPARK-9490 and squashes the following commits: 01abeba [Sean Owen] Change "print x" to "print(x)" in the rest of the docs too bd7f7fb [Sean Owen] Use print(x) not print x for Python 3 in eval examples
Diffstat (limited to 'docs/streaming-programming-guide.md')
-rw-r--r--docs/streaming-programming-guide.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/streaming-programming-guide.md b/docs/streaming-programming-guide.md
index 2f3013b533..4663b3f14c 100644
--- a/docs/streaming-programming-guide.md
+++ b/docs/streaming-programming-guide.md
@@ -1525,7 +1525,7 @@ def getSqlContextInstance(sparkContext):
words = ... # DStream of strings
def process(time, rdd):
- print "========= %s =========" % str(time)
+ print("========= %s =========" % str(time))
try:
# Get the singleton instance of SQLContext
sqlContext = getSqlContextInstance(rdd.context)