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

Commit 5296ddc

Browse files
szhareminisce
authored andcommitted
add encoding to the stub files for potential utf8 char in doc strings (#16580)
1 parent b05d72a commit 5296ddc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/mxnet/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ def get_module_file(module_name):
676676
'from ..base import _Null'],
677677
'ndarray': ['from ._internal import NDArrayBase',
678678
'from ..base import _Null']}
679+
module_file.write('# coding: utf-8')
679680
module_file.write('# File content is auto-generated. Do not modify.' + os.linesep)
680681
module_file.write('# pylint: skip-file' + os.linesep)
681682
module_file.write(os.linesep.join(dependencies[module_name.split('.')[1]]))

0 commit comments

Comments
 (0)