mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 08:41:55 -06:00
Revert "Remove doc from API.txt"
This commit accidentaly slipped in (it was not ready for the
upstream).
This reverts commit 9915b93737
.
This commit is contained in:
parent
df8120702a
commit
c2350e756a
11
makeapi
11
makeapi
@ -45,13 +45,14 @@ def parse_options():
|
||||
|
||||
def strip_doc(line):
|
||||
"""
|
||||
Remove the doc= part from the repr() of a Parameter.
|
||||
Remove the doc= line from the repr() of a Paramter.
|
||||
"""
|
||||
s = line.find(' doc=')
|
||||
if s >= 0:
|
||||
e = line.find('), ', s)
|
||||
line = '%s%s' % (line[0:s], line[e+2:])
|
||||
|
||||
# this pattern allows up to 2 nested parentheses in doc part
|
||||
newline = re.sub(r', doc=([^(,]+)(\([^()]*(\([^()]+\)[^()]*)?\))?', '', line)
|
||||
|
||||
return newline
|
||||
return line
|
||||
|
||||
def make_api():
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user