Skip to content

Commit a3e6d6a

Browse files
committed
change to deep copy for doc sections.
1 parent c903e28 commit a3e6d6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numpydoc/docscrape.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import pydoc
1010
from warnings import warn
1111
import collections
12+
import copy
1213
import sys
1314

1415

@@ -122,7 +123,7 @@ def __init__(self, docstring, config={}):
122123
docstring = textwrap.dedent(docstring).split('\n')
123124

124125
self._doc = Reader(docstring)
125-
self._parsed_data = NumpyDocString.sections.copy()
126+
self._parsed_data = copy.deepcopy(self.sections)
126127

127128
try:
128129
self._parse()

0 commit comments

Comments
 (0)