Show More
@@ -162,7 +162,6 b' def main(argv=None):' | |||||
162 | try: |
|
162 | try: | |
163 | return _run(argv) |
|
163 | return _run(argv) | |
164 | except Exception, e: |
|
164 | except Exception, e: | |
165 | raise |
|
|||
166 | print e |
|
165 | print e | |
167 | return 1 |
|
166 | return 1 | |
168 |
|
167 |
@@ -281,8 +281,6 b' def safe_str(unicode_, to_encoding=None)' | |||||
281 | except (ImportError, UnicodeEncodeError): |
|
281 | except (ImportError, UnicodeEncodeError): | |
282 | return unicode_.encode(to_encoding[0], 'replace') |
|
282 | return unicode_.encode(to_encoding[0], 'replace') | |
283 |
|
283 | |||
284 | return safe_str |
|
|||
285 |
|
||||
286 |
|
284 | |||
287 | def remove_suffix(s, suffix): |
|
285 | def remove_suffix(s, suffix): | |
288 | if s.endswith(suffix): |
|
286 | if s.endswith(suffix): |
@@ -149,8 +149,6 b' def safe_str(unicode_, to_encoding=None)' | |||||
149 | except (ImportError, UnicodeEncodeError): |
|
149 | except (ImportError, UnicodeEncodeError): | |
150 | return unicode_.encode(to_encoding[0], 'replace') |
|
150 | return unicode_.encode(to_encoding[0], 'replace') | |
151 |
|
151 | |||
152 | return safe_str |
|
|||
153 |
|
||||
154 |
|
152 | |||
155 | def author_email(author): |
|
153 | def author_email(author): | |
156 | """ |
|
154 | """ |
@@ -217,5 +217,4 b" if __name__ == '__main__':" | |||||
217 | seq=seq, backend=backend) |
|
217 | seq=seq, backend=backend) | |
218 | print 'time taken %.3f' % (time.time() - s) |
|
218 | print 'time taken %.3f' % (time.time() - s) | |
219 | except Exception, e: |
|
219 | except Exception, e: | |
220 | raise |
|
|||
221 | sys.exit('stop on %s' % e) |
|
220 | sys.exit('stop on %s' % e) |
General Comments 0
You need to be logged in to leave comments.
Login now