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:
|
try:
|
||||||
from BeautifulSoup import BeautifulStoneSoup
|
from BeautifulSoup import BeautifulStoneSoup
|
||||||
except ImportError:
|
except ImportError:
|
||||||
error = 'Missing dependency ' + \
|
error = ('Missing dependency '
|
||||||
'"BeautifulSoup" required to import Wordpress XML files.'
|
'"BeautifulSoup" required to import Wordpress XML files.')
|
||||||
sys.exit(error)
|
sys.exit(error)
|
||||||
|
|
||||||
xmlfile = open(xml, encoding='utf-8').read()
|
xmlfile = open(xml, encoding='utf-8').read()
|
||||||
|
|
@ -48,8 +48,8 @@ def dc2fields(file):
|
||||||
try:
|
try:
|
||||||
from BeautifulSoup import BeautifulStoneSoup
|
from BeautifulSoup import BeautifulStoneSoup
|
||||||
except ImportError:
|
except ImportError:
|
||||||
error = 'Missing dependency ' + \
|
error = ('Missing dependency '
|
||||||
'"BeautifulSoup" required to import Dotclear files.'
|
'"BeautifulSoup" required to import Dotclear files.')
|
||||||
sys.exit(error)
|
sys.exit(error)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue