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

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed May 5, 2017
1 parent b715b9d commit f401704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docfx_yaml/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _get_default_arg(args, defaults, arg_index):
return DefaultArgSpec(False, None)
else:
value = defaults[arg_index - args_with_no_defaults]
if (type(value) is str):
if isinstance(value, str):
value = '"%s"' % value
return DefaultArgSpec(True, value)

Expand All @@ -87,7 +87,7 @@ def get_method_sig(method):
# list of defaults are returned in separate array.
# eg: ArgSpec(args=['first_arg', 'second_arg', 'third_arg'],
# varargs=None, keywords=None, defaults=(42, 'something'))
argspec = inspect.getargspec(method)
argspec = inspect.getargspec(method) # noqa
arg_index = 0
args = []

Expand Down

0 comments on commit f401704

Please sign in to comment.