Skip to content

Commit

Permalink
No longer need dotted syntax re #11
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Dec 19, 2011
1 parent d30c20b commit 2a93456
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions spec/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,7 @@ def camelcase2spec(name):


def camelcaseDescription(object):
# TODO: handle nested inner classes.
formatted = camelcase2spec(object.__name__)
if hasattr(object, '_parent'):
parent_formatted = camelcaseDescription(object._parent)
formatted = "%s.%s" % (parent_formatted, formatted)
description = object.__doc__ or formatted
description = object.__doc__ or camelcase2spec(object.__name__)
return description.strip()


Expand Down

0 comments on commit 2a93456

Please sign in to comment.