Changeset - 4e37934fc5fd
[Not reviewed]
default
0 1 0
Mads Kiilerich (mads) - 6 years ago 2020-06-11 19:00:13
mads@kiilerich.com
helpers: fix "has unused named argument" found with pyflakes 2.2.0
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/helpers.py
Show inline comments
 
@@ -929,13 +929,13 @@ def gravatar(email_address, cls='', size
 
                ' style="font-size: {size}px;background-size: {size}px;background-image: url(\'{src}\')"'
 
                '></i>').format(cls=cls, size=size, src=src)
 

	
 
    else:
 
        # if src is empty then there was no gravatar, so we use a font icon
 
        html = ("""<i class="icon-user {cls}" style="font-size: {size}px;"></i>"""
 
            .format(cls=cls, size=size, src=src))
 
            .format(cls=cls, size=size))
 

	
 
    return literal(html)
 

	
 

	
 
def gravatar_url(email_address, size=30, default=''):
 
    # doh, we need to re-import those to mock it later
0 comments (0 inline, 0 general)