Permalink
Browse files

DocumentationComment: Remove redundant code

No need for try-except, since there will be a guaranteed newline.
  • Loading branch information...
SanketDG committed Jul 3, 2016
1 parent 5df5932 commit f731ee4ed8190c95ca08ff2b7b9a4d481d3081f1
Showing with 2 additions and 6 deletions.
  1. +2 −6 coalib/bearlib/languages/documentation/DocumentationComment.py
@@ -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):

0 comments on commit f731ee4

Please sign in to comment.