You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by ro...@apache.org on 2017/01/11 00:54:58 UTC

[1/2] beam git commit: Only the first occurrence of each typehint related warning message.

Repository: beam
Updated Branches:
  refs/heads/python-sdk cb0634984 -> 2d190a29b


Only the first occurrence of each typehint related warning message.


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

Branch: refs/heads/python-sdk
Commit: ecd6b5e7d2062f2cc1d81f61842a60ffc10862f2
Parents: cb06349
Author: Neda Mirian <ne...@gmail.com>
Authored: Mon Jan 9 18:21:43 2017 -0800
Committer: Robert Bradshaw <ro...@gmail.com>
Committed: Tue Jan 10 16:54:33 2017 -0800

----------------------------------------------------------------------
 sdks/python/apache_beam/coders/typecoders.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/ecd6b5e7/sdks/python/apache_beam/coders/typecoders.py
----------------------------------------------------------------------
diff --git a/sdks/python/apache_beam/coders/typecoders.py b/sdks/python/apache_beam/coders/typecoders.py
index c6cdae7..9bbfedf 100644
--- a/sdks/python/apache_beam/coders/typecoders.py
+++ b/sdks/python/apache_beam/coders/typecoders.py
@@ -65,6 +65,7 @@ See apache_beam.typehints.decorators module for more details.
 """
 
 import logging
+import warnings
 
 from apache_beam.coders import coders
 from apache_beam.typehints import typehints
@@ -132,7 +133,7 @@ class CoderRegistry(object):
         # TODO(robertwb): Clean this up when type inference is fully enabled.
         pass
       else:
-        logging.warning('Using fallback coder for typehint: %r.', typehint)
+        warnings.warn('Using fallback coder for typehint: %r.' % typehint)
       coder = self._fallback_coder
     return coder.from_type_hint(typehint, self)
 


[2/2] beam git commit: Closes #1754

Posted by ro...@apache.org.
Closes #1754


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

Branch: refs/heads/python-sdk
Commit: 2d190a29bc8327143db20ef705894d084c040a4a
Parents: cb06349 ecd6b5e
Author: Robert Bradshaw <ro...@gmail.com>
Authored: Tue Jan 10 16:54:49 2017 -0800
Committer: Robert Bradshaw <ro...@gmail.com>
Committed: Tue Jan 10 16:54:49 2017 -0800

----------------------------------------------------------------------
 sdks/python/apache_beam/coders/typecoders.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------