Mercurial > moin > 1.9
changeset 2447:45641cbe7729
enable new PEP8 test, fixes where it failed
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Fri, 20 Jul 2007 20:33:01 +0200 |
parents | 70b1a82ec75b |
children | c9949c55ff5e 8a118b01df5a |
files | MoinMoin/_tests/test_sourcecode.py MoinMoin/config/multiconfig.py MoinMoin/formatter/text_html.py MoinMoin/wikiutil.py |
diffstat | 4 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/_tests/test_sourcecode.py Fri Jul 20 20:27:00 2007 +0200 +++ b/MoinMoin/_tests/test_sourcecode.py Fri Jul 20 20:33:01 2007 +0200 @@ -40,7 +40,7 @@ def pep8_error_count(path): # process_options initializes some data structures and MUST be called before each Checker().check_all() - pep8.process_options(['pep8', '--ignore=E202,E221,E222,E241,E301,E302,E401,E501,E701,W391,W601,W602,E225', '--show-source', 'dummy_path']) + pep8.process_options(['pep8', '--ignore=E202,E221,E222,E241,E301,E302,E401,E501,E701,W391,W601,W602', '--show-source', 'dummy_path']) error_count = pep8.Checker(path).check_all() return error_count
--- a/MoinMoin/config/multiconfig.py Fri Jul 20 20:27:00 2007 +0200 +++ b/MoinMoin/config/multiconfig.py Fri Jul 20 20:33:01 2007 +0200 @@ -652,8 +652,8 @@ user_homewiki = 'Self' # interwiki name for where user homepages are located - unzip_single_file_size = 2.0 * 1000**2 - unzip_attachments_space = 200.0 * 1000**2 + unzip_single_file_size = 2.0 * 1000 ** 2 + unzip_attachments_space = 200.0 * 1000 ** 2 unzip_attachments_count = 101 # 1 zip file + 100 files contained in it xmlrpc_putpage_enabled = False # if False, putpage will write to a test page only
--- a/MoinMoin/formatter/text_html.py Fri Jul 20 20:27:00 2007 +0200 +++ b/MoinMoin/formatter/text_html.py Fri Jul 20 20:33:01 2007 +0200 @@ -710,7 +710,7 @@ except OSError: pass else: - mapid = 'ImageMapOf'+drawing + mapid = 'ImageMapOf' + drawing # replace MAPNAME map = map.replace('%MAPNAME%', mapid) # add alt and title tags to areas
--- a/MoinMoin/wikiutil.py Fri Jul 20 20:27:00 2007 +0200 +++ b/MoinMoin/wikiutil.py Fri Jul 20 20:33:01 2007 +0200 @@ -386,7 +386,7 @@ """ Convert version number to UNIX timestamp (float). This must ONLY be used for display purposes. """ - return v/1000000.0 + return v / 1000000.0 # This is the list of meta attribute names to be treated as integers. @@ -1664,7 +1664,7 @@ # invalid or empty ticket return False now = time.time() - if timestamp < now - 10*3600: + if timestamp < now - 10 * 3600: # we don't accept tickets older than 10h return False ourticket = createTicket(request, timestamp_str)