summaryrefslogtreecommitdiff
path: root/libbe/cmdutil.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-24 07:31:51 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-24 07:31:51 -0500
commitd248dbca39e1e8a26a5aa9d39b28038690a406a0 (patch)
treef730cd2e12e0d328b91b3636f2a30356c39c9da6 /libbe/cmdutil.py
parent63a7726eba738fe2ed340027039ba655ff91898a (diff)
Replaced direct filesystem read from bugdir.py with RCS mediated read.
Also replaced utility.FileString with StringIO() in cmdutil.py, which allowed the removal of utility.FileString and utility.get_file. The only remaining file().read() outside the RCS framework is the read in utility.editor_string(), but should probably not go through the RCS.
Diffstat (limited to 'libbe/cmdutil.py')
-rw-r--r--libbe/cmdutil.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py
index 55a7a72..6d7ab01 100644
--- a/libbe/cmdutil.py
+++ b/libbe/cmdutil.py
@@ -98,10 +98,9 @@ class CmdOptionParser(optparse.OptionParser):
self._long_opt.iterkeys()])
def help_str(self):
- fs = utility.FileString()
- self.print_help(fs)
- return fs.str
-
+ f = StringIO()
+ self.print_help(f)
+ return f.getvalue()
def underlined(instring):
"""Produces a version of a string that is underlined with '='