Skip to content

Commit 67ed7f4

Browse files
committed
Made changes as recommended
1 parent 0209430 commit 67ed7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/validate_docstrings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def validate_one(func_name):
511511
if rel_name.startswith('pandas.'):
512512
errs.append('{} in `See Also` section does not '
513513
'need `pandas` prefix, use {} instead.'
514-
.format(rel_name, rel_name.replace('pandas.', '')))
514+
.format(rel_name, rel_name[len('pandas.'):]))
515515
for line in doc.raw_doc.splitlines():
516516
if re.match("^ *\t", line):
517517
errs.append('Tabs found at the start of line "{}", '

0 commit comments

Comments
 (0)