Skip to content

Commit

Permalink
DocumentationComment: Remove redundant code
Browse files Browse the repository at this point in the history
No need for try-except, since there will be a guaranteed newline.
  • Loading branch information
SanketDG committed Jul 16, 2016
1 parent aec16c2 commit 8f0a067
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -98,12 +98,8 @@ def _parse_documentation_with_symbols(self, param_identifiers,
param_identifiers[0]) + len(param_identifiers[0])
splitted = line[param_offset:].split(param_identifiers[1], 1)
cur_param = splitted[0].strip()
# For cases where the param description is not on the
# same line, but on subsequent lines.
try:
param_desc = splitted[1]
except IndexError:
param_desc = ""

param_desc = splitted[1]
parsed.append(self.Parameter(name=cur_param, desc=param_desc))

elif stripped_line.startswith(return_identifiers):
Expand Down

0 comments on commit 8f0a067

Please sign in to comment.