leezu commented on a change in pull request #17583: Python 2 cleanup
URL: https://github.com/apache/incubator-mxnet/pull/17583#discussion_r378643783
##########
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:
No. Default is platform dependent.
https://docs.python.org/3/library/functions.html#open
----------------------------------------------------------------
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