Skip to content

Commit

Permalink
Fix issue #12
Browse files Browse the repository at this point in the history
  • Loading branch information
dadadel committed Jun 2, 2015
1 parent f28d70c commit 7b4fd87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
0.3.2:
- fix issue #11
- fix issue #16

0.3.1 - 2015/05/31:
- add tests for issues (issue #9 and #11)
Expand Down
4 changes: 1 addition & 3 deletions pyment/docstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def get_list_key(self, data, key):
if ',' in key:
tend = key.index(',')
ptype = key[tstart:tend].strip()
key = key[:tstart - 1]
key = key[:tstart - 1].strip()
desc = elems[1].strip()
parse_key = True
else:
Expand Down Expand Up @@ -1828,7 +1828,6 @@ def _set_raw_return(self, sep):
rtype = ret_elem[2]
if rtype is None:
rtype = ''
print("Warning: the return type should be provided")
raw += self.docs['out']['spaces']
if ret_elem[0]:
raw += ret_elem[0] + ' : '
Expand Down Expand Up @@ -1860,7 +1859,6 @@ def _set_raw_return(self, sep):
rtype = ret_elem[2]
if rtype is None:
rtype = ''
print("Warning: the return type should be provided")
raw += self.docs['out']['spaces'] + spaces
raw += rtype + ': ' + with_space(ret_elem[1]).strip() + os.linesep
else:
Expand Down

0 comments on commit 7b4fd87

Please sign in to comment.