(A) Fix a bug in the doc generator that was clobbering the force parameter for the copy module.

(B) This is a work in progress but the idea is to have text snippets where we can respond to tickets with a bit more helpful info.
Not active just yet.
This commit is contained in:
Michael DeHaan 2014-08-05 20:08:31 -04:00
parent 2e1aa23570
commit 4312391e0a
10 changed files with 197 additions and 1 deletions

View file

@ -85,7 +85,9 @@ def get_docstring(filename, verbose=False):
if not doc.has_key(key):
doc[key] = value
else:
doc[key].update(value)
# not sure this is the only example but don't do this for the copy module
if key != 'force':
doc[key].update(value)
if 'EXAMPLES' in (t.id for t in child.targets):
plainexamples = child.value.s[1:] # Skip first empty line