Skip to content

Commit be4b118

Browse files
committedAug 23, 2015
flake8
1 parent be99f85 commit be4b118

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎v7/import_page/import_page.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
{content}
4747
'''
4848

49+
4950
class CommandImportPage(Command):
5051
"""Import a Page or Octopress blog."""
5152

@@ -71,11 +72,11 @@ def _import_page(self, url):
7172
lengths = [len(n.text_content()) for n in nodes]
7273
node = nodes[lengths.index(max(lengths))]
7374
document = doc_template.format(
74-
title = title,
75-
slug = slug,
76-
content = lxml.html.tostring(node, encoding='utf8', method='html', pretty_print=True).decode('utf8')
75+
title=title,
76+
slug=slug,
77+
content=lxml.html.tostring(node, encoding='utf8', method='html', pretty_print=True).decode('utf8')
7778
)
78-
with codecs.open(slug + '.html', 'w+', encoding='utf-8' ) as outf:
79+
with codecs.open(slug + '.html', 'w+', encoding='utf-8') as outf:
7980
outf.write(document)
8081

8182
else:

0 commit comments

Comments
 (0)
Please sign in to comment.