Repository: beam
Updated Branches:
  refs/heads/release-2.0.0 3b7a62301 -> 021468e03


Cherry-pick pull request #2946 in 2.0.0 release branch.
Fix typo in datastore_wordcount.py.


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/bec30b3b
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/bec30b3b
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/bec30b3b

Branch: refs/heads/release-2.0.0
Commit: bec30b3beaa241483814e859d781f1e04479394b
Parents: 3b7a623
Author: Ahmet Altay <[email protected]>
Authored: Sun May 7 23:31:42 2017 -0700
Committer: Pablo <[email protected]>
Committed: Mon May 8 09:43:22 2017 -0700

----------------------------------------------------------------------
 sdks/python/apache_beam/examples/cookbook/datastore_wordcount.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/bec30b3b/sdks/python/apache_beam/examples/cookbook/datastore_wordcount.py
----------------------------------------------------------------------
diff --git a/sdks/python/apache_beam/examples/cookbook/datastore_wordcount.py 
b/sdks/python/apache_beam/examples/cookbook/datastore_wordcount.py
index d694cda..1f88398 100644
--- a/sdks/python/apache_beam/examples/cookbook/datastore_wordcount.py
+++ b/sdks/python/apache_beam/examples/cookbook/datastore_wordcount.py
@@ -108,7 +108,7 @@ class WordExtractingDoFn(beam.DoFn):
     words = re.findall(r'[A-Za-z\']+', text_line)
     for w in words:
       self.word_length_counter.inc(len(w))
-      self.word_len_dis.update(len(w))
+      self.word_lengths_dist.update(len(w))
       self.word_counter.inc()
     return words
 

Reply via email to