Skip to content

Commit

Permalink
Use string.format
Browse files Browse the repository at this point in the history
  • Loading branch information
Kura committed Aug 9, 2013
1 parent 19029ac commit d18f1dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pelican_vimeo/vimeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def run(self):
if 'align' in self.options:
align = self.options['align']

url = 'https://player.vimeo.com/video/%s' % videoID
div_block = '<div class="vimeo" align="%s">' % align
embed_block = '<iframe width="%s" height="%s" src="%s" '\
'frameborder="0"></iframe>' % (width, height, url)
url = 'https://player.vimeo.com/video/{}'.format(videoID)
div_block = '<div class="vimeo" align="{}">'.format(align)
embed_block = '<iframe width="{}" height="{}" src="{}" '\
'frameborder="0"></iframe>'.format(width, height, url)

return [
nodes.raw('', div_block, format='html'),
Expand Down

0 comments on commit d18f1dd

Please sign in to comment.