comparison textshaper/quote.py @ 27:4aba57a33376

add decorator for converting text to lines of text
author Jeff Hammel <k0scist@gmail.com>
date Sun, 23 Feb 2014 13:54:18 -0800
parents c23782a7b7ba
children
comparison
equal deleted inserted replaced
26:c23782a7b7ba 27:4aba57a33376
15 15
16 quote -- quote character to use 16 quote -- quote character to use
17 close_quote -- closing quote character, if different from opening quote 17 close_quote -- closing quote character, if different from opening quote
18 """ 18 """
19 19
20 if close_quote is None: 20 close_quote = quote if close_quote is None else close_quote
21 close_quote = quote
22 return ["{}{}{}".format(quote, line, close_quote) for line in lines] 21 return ["{}{}{}".format(quote, line, close_quote) for line in lines]
23 22
24 23
25 def main(args=sys.argv[1:]): 24 def main(args=sys.argv[1:]):
26 """CLI""" 25 """CLI"""