This is an automated email from the ASF dual-hosted git repository.

altay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git

commit ce07fbf17d99cd0e06625ac8b0a3bf7159800972
Author: Matthias Feys <matthiasf...@gmail.com>
AuthorDate: Wed May 16 23:49:38 2018 +0200

    resolved six.string_types equivalency
---
 sdks/python/apache_beam/pvalue.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdks/python/apache_beam/pvalue.py 
b/sdks/python/apache_beam/pvalue.py
index 16deb83..3201249 100644
--- a/sdks/python/apache_beam/pvalue.py
+++ b/sdks/python/apache_beam/pvalue.py
@@ -266,7 +266,7 @@ class TaggedOutput(object):
   """
 
   def __init__(self, tag, value):
-    if not isinstance(tag, (bytes, unicode)):
+    if not isinstance(tag, (str, unicode)):
       raise TypeError(
           'Attempting to create a TaggedOutput with non-string tag %s' % tag)
     self.tag = tag

-- 
To stop receiving notification emails like this one, please contact
al...@apache.org.

Reply via email to