larroy commented on a change in pull request #17583: Python 2 cleanup
URL: https://github.com/apache/incubator-mxnet/pull/17583#discussion_r378642977
 
 

 ##########
 File path: docs/python_docs/python/tutorials/packages/gluon/text/gnmt.rst
 ##########
 @@ -391,7 +390,7 @@ testing datasets.
 
 
     def write_sentences(sentences, file_path):
-        with io.open(file_path, 'w', encoding='utf-8') as of:
+        with open(file_path, 'w', encoding='utf-8') as of:
 
 Review comment:
   Isn't utf8 by default?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to