[
https://issues.apache.org/jira/browse/BEAM-1251?focusedWorklogId=79018&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-79018
]
ASF GitHub Bot logged work on BEAM-1251:
----------------------------------------
Author: ASF GitHub Bot
Created on: 09/Mar/18 20:56
Start Date: 09/Mar/18 20:56
Worklog Time Spent: 10m
Work Description: aaltay closed pull request #4835: [BEAM-1251] Change
unicode --> six.text_type for Python 3 - again
URL: https://github.com/apache/beam/pull/4835
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/sdks/python/apache_beam/io/gcp/pubsub.py
b/sdks/python/apache_beam/io/gcp/pubsub.py
index c6d93d03af9..d5afee95580 100644
--- a/sdks/python/apache_beam/io/gcp/pubsub.py
+++ b/sdks/python/apache_beam/io/gcp/pubsub.py
@@ -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
@@ -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
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 79018)
Time Spent: 6h 20m (was: 6h 10m)
> Python 3 Support
> ----------------
>
> Key: BEAM-1251
> URL: https://issues.apache.org/jira/browse/BEAM-1251
> Project: Beam
> Issue Type: Improvement
> Components: sdk-py-core
> Reporter: Eyad Sibai
> Priority: Trivial
> Time Spent: 6h 20m
> Remaining Estimate: 0h
>
> I have been trying to use google datalab with python3. As I see there are
> several packages that does not support python3 yet which google datalab
> depends on. This is one of them.
> https://github.com/GoogleCloudPlatform/DataflowPythonSDK/issues/6
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)