Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
add encoding to the stub files for potential utf8 char in doc strings (
Browse files Browse the repository at this point in the history
  • Loading branch information
szha authored and reminisce committed Oct 23, 2019
1 parent b05d72a commit 5296ddc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/mxnet/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ def get_module_file(module_name):
'from ..base import _Null'],
'ndarray': ['from ._internal import NDArrayBase',
'from ..base import _Null']}
module_file.write('# coding: utf-8')
module_file.write('# File content is auto-generated. Do not modify.' + os.linesep)
module_file.write('# pylint: skip-file' + os.linesep)
module_file.write(os.linesep.join(dependencies[module_name.split('.')[1]]))
Expand Down

0 comments on commit 5296ddc

Please sign in to comment.