Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
Small qa fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed May 5, 2017
1 parent 983a58e commit 9ee3977
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docfx_yaml/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _create_datam(app, cls, module, name, _type, obj, lines=None):
args = []
try:
if _type in [METHOD, FUNCTION]:
argspec = inspect.getargspec(obj)
argspec = inspect.getargspec(obj) # noqa
for arg in argspec.args:
args.append({'id': arg})
if argspec.defaults:
Expand Down Expand Up @@ -316,7 +316,7 @@ def build_finished(app, exception):

# Order matters here, we need modules before lower level classes,
# so that we can make sure to inject the TOC properly
for data_set in (app.env.docfx_yaml_modules, app.env.docfx_yaml_classes):
for data_set in (app.env.docfx_yaml_modules, app.env.docfx_yaml_classes): # noqa
for filename, yaml_data in iter(sorted(data_set.items())):
if not filename:
# Skip objects without a module
Expand Down
2 changes: 0 additions & 2 deletions docfx_yaml/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ def transform_node(app, node):
return destination.destination.decode('utf-8').strip()




def _get_default_arg(args, defaults, arg_index):
""" Method that determines if an argument has default value or not,
and if yes what is the default value for the argument
Expand Down

0 comments on commit 9ee3977

Please sign in to comment.