comparison bitsyblog/bitsyblog.py @ 60:94dddb3a5d77

remove useless double-strip
author k0s <k0scist@gmail.com>
date Thu, 14 Jan 2010 13:06:36 -0500
parents 0af1f4ae328d
children e3c72e2c881e
comparison
equal deleted inserted replaced
59:0af1f4ae328d 60:94dddb3a5d77
637 637
638 settings = { 'report_level': 5 } 638 settings = { 'report_level': 5 }
639 string = string.strip() 639 string = string.strip()
640 try: 640 try:
641 641
642 parts = docutils.core.publish_parts(string.strip(), 642 parts = docutils.core.publish_parts(string,
643 writer_name='html', 643 writer_name='html',
644 settings_overrides=settings) 644 settings_overrides=settings)
645 body = parts['body'] 645 body = parts['body']
646 except SystemMessage, e: 646 except SystemMessage, e:
647 lines = [ cgi.escape(i.strip()) for i in string.split('\n') ] 647 lines = [ cgi.escape(i.strip()) for i in string.split('\n') ]