[ 
https://issues.apache.org/jira/browse/BEAM-4003?focusedWorklogId=118534&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-118534
 ]

ASF GitHub Bot logged work on BEAM-4003:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Jul/18 01:05
            Start Date: 03/Jul/18 01:05
    Worklog Time Spent: 10m 
      Work Description: charlesccychen commented on a change in pull request 
#5373: [BEAM-4003] Futurize runners subpackage
URL: https://github.com/apache/beam/pull/5373#discussion_r199659367
 
 

 ##########
 File path: sdks/python/apache_beam/runners/direct/executor.py
 ##########
 @@ -22,19 +22,24 @@
 import collections
 import itertools
 import logging
-import Queue
+import queue
 import sys
 import threading
 import traceback
+from builtins import object
+from builtins import range
 from weakref import WeakValueDictionary
 
-import six
+from future import standard_library
+from future.utils import raise_
 
 from apache_beam.metrics.execution import MetricsContainer
 from apache_beam.runners.worker import statesampler
 from apache_beam.transforms import sideinputs
 from apache_beam.utils import counters
 
+standard_library.install_aliases()
 
 Review comment:
   Do we want to call this before we do the import of "queue" above?  It looks 
like this only works because of an "accident" in that this module is imported 
after someone else already called `install_aliases()`.

----------------------------------------------------------------
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: 118534)
    Time Spent: 5h 10m  (was: 5h)

> Futurize and fix python 2 compatibility for runners subpackage
> --------------------------------------------------------------
>
>                 Key: BEAM-4003
>                 URL: https://issues.apache.org/jira/browse/BEAM-4003
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-py-core
>            Reporter: Robbe
>            Assignee: Matthias Feys
>            Priority: Major
>          Time Spent: 5h 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to