Repository: beam Updated Branches: refs/heads/master 1a4ca9acd -> 2b470eaa3
Fixing 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/938cb2f4 Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/938cb2f4 Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/938cb2f4 Branch: refs/heads/master Commit: 938cb2f4c2c5b47ac9cd5742f23ede9a88da2b66 Parents: 1a4ca9a Author: Pablo <[email protected]> Authored: Sun May 7 20:29:30 2017 -0700 Committer: Ahmet Altay <[email protected]> Committed: Sun May 7 23:31:32 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/938cb2f4/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
