Skip to content

Commit

Permalink
Change clas to klass.
Browse files Browse the repository at this point in the history
  • Loading branch information
daspecster committed Aug 17, 2016
1 parent b9054b2 commit 3dc290f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/generate_json_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,18 @@ def from_pdoc(cls, element):

if element.docstring:
if not isinstance(element, pdoc.Class) and element.cls:
clas = element.cls.cls
klass = element.cls.cls
elif element.cls:
clas = element.cls
klass = element.cls
else:
clas = None
klass = None

# Hack for old-style classes
if str(clas)[0] != '<':
clas = '<class \'' + str(clas) + '\'>'
if str(klass)[0] != '<':
klass = '<class \'' + str(klass) + '\'>'

try:
method_info = parse_docstring(element.docstring, clas)
method_info = parse_docstring(element.docstring, klass)
except (MethodParsingException, IndexError):
return method

Expand Down

0 comments on commit 3dc290f

Please sign in to comment.