Skip to content

CLN: Small spelling fixes in find_undoc_args.py #6196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1 commit merged into from
Jan 31, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/find_undoc_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
parser.add_argument('-m', '--module', metavar='MODULE', type=str,required=True,
help='name of package to import and examine',action='store')
parser.add_argument('-G', '--github_repo', metavar='REPO', type=str,required=False,
help='github project where the the coe lives, e.g. "pydata/pandas"',
help='github project where the the code lives, e.g. "pydata/pandas"',
default=None,action='store')

args = parser.parse_args()
Expand Down Expand Up @@ -109,7 +109,7 @@ def main():
if not args.path:
args.path=os.path.dirname(module.__file__)
collect=[cmp_docstring_sig(e) for e in entry_gen(module,module.__name__)]
# only include if there are missing arguments in the docstring (less false positives)
# only include if there are missing arguments in the docstring (fewer false positives)
# and there are at least some documented arguments
collect = [e for e in collect if e.undoc_names and len(e.undoc_names) != e.nsig_names]
collect.sort(key=lambda x:x.path)
Expand Down