summaryrefslogtreecommitdiffstats
path: root/makeapi
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-04-08 15:54:59 +0200
committerMartin Kosek <mkosek@redhat.com>2011-04-08 15:54:59 +0200
commitc2350e756a8dbc5b31a16ae2cd8c103a6e633515 (patch)
treec8d1f0db10296397ed3a7a9b4559272c16e73cd4 /makeapi
parentdf8120702ae01104acaeb3d6079bf44b2794ee57 (diff)
downloadfreeipa-c2350e756a8dbc5b31a16ae2cd8c103a6e633515.zip
freeipa-c2350e756a8dbc5b31a16ae2cd8c103a6e633515.tar.gz
freeipa-c2350e756a8dbc5b31a16ae2cd8c103a6e633515.tar.xz
Revert "Remove doc from API.txt"
This commit accidentaly slipped in (it was not ready for the upstream). This reverts commit 9915b93737fe5e31a53f2fdb169427a0b4d7e002.
Diffstat (limited to 'makeapi')
-rwxr-xr-xmakeapi11
1 files changed, 6 insertions, 5 deletions
diff --git a/makeapi b/makeapi
index 0d37098..1d418fe 100755
--- a/makeapi
+++ b/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():
"""