-
Notifications
You must be signed in to change notification settings - Fork 142
/
epydoc.diff
29 lines (28 loc) · 1.42 KB
/
epydoc.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- /Library/Python/2.7/site-packages/epydoc/markup/restructuredtext.py~ 2008-01-28 13:15:33.000000000 -0500
+++ /Library/Python/2.7/site-packages/epydoc/markup/restructuredtext.py 2012-09-23 20:59:35.000000000 -0400
@@ -304,10 +304,10 @@
# Extract the first sentence.
for child in node:
if isinstance(child, docutils.nodes.Text):
- m = self._SUMMARY_RE.match(child.data)
+ m = self._SUMMARY_RE.match(child)
if m:
summary_pieces.append(docutils.nodes.Text(m.group(1)))
- other = child.data[m.end():]
+ other = child[m.end():]
if other and not other.isspace():
self.other_docs = True
break
@@ -489,10 +489,10 @@
if (len(fbody[0]) > 0 and
isinstance(fbody[0][0], docutils.nodes.Text)):
child = fbody[0][0]
- if child.data[:1] in ':-':
- child.data = child.data[1:].lstrip()
+ if child[:1] in ':-':
+ child = docutil.nodes.Text(child[1:].lstrip())
elif child.data[:2] in (' -', ' :'):
- child.data = child.data[2:].lstrip()
+ child = docutil.nodes.Text(child[2:].lstrip())
# Wrap the field body, and add a new field
self._add_field(tagname, arg, fbody)