Skip to content

Commit 285fe09

Browse files
authored
rename extract_docstring.py -> symbol_extractor.py (#2495)
1 parent 015253b commit 285fe09

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/attribute/attribute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ var XGBoostObjectiveDocs map[string]string
227227

228228
// ExtractDocString extracts parameter documents of Python modules from doc strings
229229
func ExtractDocString(module ...string) {
230-
cmd := exec.Command("python", "-uc", fmt.Sprintf("__import__('extract_docstring').print_param_doc('%s')", strings.Join(module, "', '")))
230+
cmd := exec.Command("python", "-uc", fmt.Sprintf("__import__('symbol_extractor').print_param_doc('%s')", strings.Join(module, "', '")))
231231
output, e := cmd.CombinedOutput()
232232
if e != nil {
233233
log.Println("ExtractDocString failed: ", e, string(output))

pkg/attribute/model_parameters.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def print_param_doc(*modules):
117117
param_doc['xgboost.dart'] = param_doc['xgboost.gbtree']
118118

119119
print(
120-
'// Code generated by python extract_docstring.py > model_parameters.go. DO NOT EDIT.'
120+
'// Code generated by python symbol_extractor.py > model_parameters.go. DO NOT EDIT.'
121121
)
122122
print()
123123
print('package attribute')

0 commit comments

Comments
 (0)