Changeset 3bccf0f


Ignore:
Timestamp:
Jul 7, 2010, 6:32:25 AM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, fysm-4-1, space-access, stable, stage, test-hooks
Children:
b4e8cef
Parents:
07aa6da
git-author:
Alex Dehnert <adehnert@…> (07/07/10 06:32:25)
git-committer:
Alex Dehnert <adehnert@…> (07/07/10 06:32:25)
Message:

Fix syntax errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/fysm-lint.py

    r07aa6da r3bccf0f  
    4040    good_ext = ['png', 'jpg', 'jpeg', 'gif', ]
    4141    ext = image.name.rsplit('.')[-1]
    42     convert_msg = 'You should convert it to a PNG (or possibly GIF, if it is essentially all text; or JPEG, if it is mostly images).',
     42    convert_msg = 'You should convert it to a PNG (or possibly GIF, if it is essentially all text; or JPEG, if it is mostly images).'
    4343    if not image.name:
    4444        return {
     
    5050        return {
    5151            'heading': 'Undesirable TIFF file submitted for %s' % (label, ),
    52             'body':    'You submitted a TIFF file for your %s. TIFF files are generally large and poorly supported by browsers. ' % (label, ) + convert_msg,
     52            'body':    ('You submitted a TIFF file for your %s. TIFF files are generally large and poorly supported by browsers. ' % (label, )) + convert_msg,
    5353            'level':   LEVEL_HIGH,
    5454        }
     
    5656        return {
    5757            'heading': 'Undesirable BMP file submitted for %s' % (label, ),
    58             'body':    'You submitted a BMP file for your %s. BMP files are generally extremely large. ' % (label, ) + convert_msg,
     58            'body':    ('You submitted a BMP file for your %s. BMP files are generally extremely large. ' % (label, )) + convert_msg,
    5959            'level':   LEVEL_HIGH,
    6060        }
Note: See TracChangeset for help on using the changeset viewer.