You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2019/12/06 19:21:35 UTC

[GitHub] [incubator-heron] nlu90 commented on a change in pull request #3412: [WIP] make python code compatible with both python2 and python3

nlu90 commented on a change in pull request #3412: [WIP] make python code compatible with both python2 and python3
URL: https://github.com/apache/incubator-heron/pull/3412#discussion_r354991501
 
 

 ##########
 File path: heron/shell/src/python/handlers/killexecutorhandler.py
 ##########
 @@ -20,10 +20,13 @@
 
 
 ''' killexecutorhandler.py '''
+from future.standard_library import install_aliases
+install_aliases()
+
 import logging
 import os
 import signal
-import urlparse
+from urllib.parse import parse_qsl
 
 Review comment:
   it's available in python2 with the first two lines import of this file
   
   ```
   from future.standard_library import install_aliases
   install_aliases()
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services