Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdks/python/apache_beam/io/gcp/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

import re

from six import text_type

from apache_beam import coders
from apache_beam.io.iobase import Read
from apache_beam.io.iobase import Write
Expand Down Expand Up @@ -184,7 +186,7 @@ def expand(self, pcoll):
| _ReadFromPubSub(self.topic, self.subscription, self.id_label,
with_attributes=False)
| 'DecodeString' >> Map(lambda b: b.decode('utf-8')))
p.element_type = unicode
p.element_type = text_type
return p


Expand Down