flaxsearch / flaxcode

Automatically exported from code.google.com/p/flaxcode
4 stars 1 forks source link

setup_svc.py should use multiline string literal #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
setup_svc.py is hard to read, because a large chunk of the file is composed
of lines of the form:

print >> ofi, r"..."

It would be better to replace these by a single multiline string literal:

print >> ofi, r"""
...
"""

The %s substitutions could be replaced by %(name)s substitutions, and then
use " % self.__dict__" to perform the substitutions - any name defined in
self would then be accessible for substitution.

Original issue reported on code.google.com by boulton.rj@gmail.com on 21 Nov 2007 at 11:33

GoogleCodeExporter commented 9 years ago
This is now implemented.  The multiline string could be moved into a separate 
file,
for even clearer code, but it's at least manageable now.

Original comment by boulton.rj@gmail.com on 23 Nov 2007 at 10:20