summaryrefslogtreecommitdiff
path: root/tools/defs_gen/docextract.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/defs_gen/docextract.py')
-rw-r--r--tools/defs_gen/docextract.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/defs_gen/docextract.py b/tools/defs_gen/docextract.py
index 8b0b690e..7bf49119 100644
--- a/tools/defs_gen/docextract.py
+++ b/tools/defs_gen/docextract.py
@@ -2,7 +2,7 @@
'''Simple module for extracting GNOME style doc comments from C
sources, so I can use them for other purposes.'''
-import sys, os, string, re
+import sys, os, re
# Used to tell if the "Since: ..." portion of the gtkdoc function description
# should be omitted. This is useful for some C++ modules such as gstreamermm
@@ -483,10 +483,10 @@ def parse_tmpl(fp, doc_dict):
cur_doc = None # don't worry about unused params.
elif cur_doc:
if line[:10] == '@Returns: ':
- if string.strip(line[10:]):
+ if line[10:].strip():
cur_doc.append_to_return(line[10:])
elif line[0] == '@':
- pos = string.find(line, ':')
+ pos = line.find(':')
if pos >= 0:
cur_doc.append_to_named_param(line[1:pos], line[pos+1:])
else: