summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-03-29 05:50:15 +0000
committerGreg Noel <GregNoel@tigris.org>2010-03-29 05:50:15 +0000
commit0edbe6e530347f20578046894acf55723bb9757a (patch)
treed0ca5f58b87d964927a1db7f4fe8a602f8405d23 /bin
parenteb7e67b1e6e7315a945edf79ebd2ec160ee85588 (diff)
downloadscons-0edbe6e530347f20578046894acf55723bb9757a.tar.gz
http://scons.tigris.org/issues/show_bug.cgi?id=2345
Accumulated small fixers: renames, next, zip, and intern. Files that were modified or added while developing on branches/pending didn't have the fixers previously applied. This patchset picks up those.
Diffstat (limited to 'bin')
-rw-r--r--bin/scons-proc.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/scons-proc.py b/bin/scons-proc.py
index 52d326c0..922ddd65 100644
--- a/bin/scons-proc.py
+++ b/bin/scons-proc.py
@@ -225,19 +225,19 @@ class SCons_XML_to_man(SCons_XML):
body = body.replace('<para>', '\n')
body = body.replace('</para>\n', '')
- body = string.replace(body, '<variablelist>\n', '.RS 10\n')
+ body = body.replace('<variablelist>\n', '.RS 10\n')
# Handling <varlistentry> needs to be rationalized and made
# consistent. Right now, the <term> values map to arbitrary,
# ad-hoc idioms in the current man page.
body = re.compile(r'<varlistentry>\n<term><literal>([^<]*)</literal></term>\n<listitem>\n').sub(r'.TP 6\n.B \1\n', body)
body = re.compile(r'<varlistentry>\n<term><parameter>([^<]*)</parameter></term>\n<listitem>\n').sub(r'.IP \1\n', body)
body = re.compile(r'<varlistentry>\n<term>([^<]*)</term>\n<listitem>\n').sub(r'.HP 6\n.B \1\n', body)
- body = string.replace(body, '</listitem>\n', '')
- body = string.replace(body, '</varlistentry>\n', '')
- body = string.replace(body, '</variablelist>\n', '.RE\n')
+ body = body.replace('</listitem>\n', '')
+ body = body.replace('</varlistentry>\n', '')
+ body = body.replace('</variablelist>\n', '.RE\n')
body = re.sub(r'\.EE\n\n+(?!\.IP)', '.EE\n.IP\n', body)
- body = string.replace(body, '\n.IP\n\'\\"', '\n\n\'\\"')
+ body = body.replace('\n.IP\n\'\\"', '\n\n\'\\"')
body = re.sub('&(scons|SConstruct|SConscript|jar|Make|lambda);', r'\\fB\1\\fP', body)
body = re.sub('&(TARGET|TARGETS|SOURCE|SOURCES);', r'\\fB$\1\\fP', body)
body = body.replace('&Dir;', r'\fBDir\fP')
@@ -335,7 +335,7 @@ class Tool(Proxy):
prefix = 't-'
tag = 'literal'
def idfunc(self):
- return string.replace(self.name, '+', 'X')
+ return self.name.replace('+', 'X')
def termfunc(self):
return [self.name]
def entityfunc(self):