mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Beautify two-line string concat.
This commit is contained in:
parent
cc30695b72
commit
36a5344282
1 changed files with 4 additions and 4 deletions
|
|
@ -16,8 +16,8 @@ def wp2fields(xml):
|
|||
try:
|
||||
from BeautifulSoup import BeautifulStoneSoup
|
||||
except ImportError:
|
||||
error = 'Missing dependency ' + \
|
||||
'"BeautifulSoup" required to import Wordpress XML files.'
|
||||
error = ('Missing dependency '
|
||||
'"BeautifulSoup" required to import Wordpress XML files.')
|
||||
sys.exit(error)
|
||||
|
||||
xmlfile = open(xml, encoding='utf-8').read()
|
||||
|
|
@ -48,8 +48,8 @@ def dc2fields(file):
|
|||
try:
|
||||
from BeautifulSoup import BeautifulStoneSoup
|
||||
except ImportError:
|
||||
error = 'Missing dependency ' + \
|
||||
'"BeautifulSoup" required to import Dotclear files.'
|
||||
error = ('Missing dependency '
|
||||
'"BeautifulSoup" required to import Dotclear files.')
|
||||
sys.exit(error)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue