def thumbnail(parser, token):
    '''
    This template tag supports both syntax for declare thumbanil in template
    '''

    thumb = None

    if SORL:
        try:
            thumb = sorl_thumb(parser, token)
        except Exception:
            thumb = False

    if EASY and not thumb:
        thumb = easy_thumb(parser, token)

    return thumb
def thumbnail ( parser , token ) : thumb = None if SORL : try : thumb = sorl_thumb ( parser , token ) except Exception : thumb = False if EASY and not thumb : thumb = easy_thumb ( parser , token ) return thumb
This template tag supports both syntax for declare thumbanil in template