PEP8 cleanup: ensure lines are shorter than 80 characters

Caught by PEP8. This is important for Sugar because the XO has a small screen
where long lines would make the code hard to understand (because you need to
constantly scroll horizontally).

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer<simon@schampijer.de>
CC: Aleksey Lim <alsroot@member.fsf.org>
This commit is contained in:
Sascha Silbe
2010-10-15 18:04:34 +00:00
parent e2231d5620
commit 4d978fda14
6 changed files with 20 additions and 14 deletions
+6 -4
View File
@@ -37,15 +37,17 @@ class TestMime(unittest.TestCase):
# Mozilla's text in c&v
mime_type = mime.choose_most_significant(
['text/_moz_htmlcontext', 'STRING', 'text/html', 'text/_moz_htmlinfo',
'text/x-moz-url-priv', 'UTF8_STRING', 'COMPOUND_TEXT'])
['text/_moz_htmlcontext', 'STRING', 'text/html',
'text/_moz_htmlinfo', 'text/x-moz-url-priv', 'UTF8_STRING',
'COMPOUND_TEXT'])
self.assertEqual(mime_type, 'text/html')
# Mozilla gif in dnd
mime_type = mime.choose_most_significant(
['application/x-moz-file-promise-url',
'application/x-moz-file-promise-dest-filename', 'text/_moz_htmlinfo',
'text/x-moz-url-desc', 'text/_moz_htmlcontext', 'text/x-moz-url-data',
'application/x-moz-file-promise-dest-filename',
'text/_moz_htmlinfo', 'text/x-moz-url-desc',
'text/_moz_htmlcontext', 'text/x-moz-url-data',
'text/uri-list'])
self.assertEqual(mime_type, 'text/uri-list')