From d41b70316c9538d6912344624ab96f09a9a0eab2 Mon Sep 17 00:00:00 2001 From: Stuart Axon Date: Thu, 12 Oct 2017 01:41:12 +0100 Subject: [PATCH] Update pelican_import.py Make attached_files optional, makes a lot more sense when seen from the test end. --- pelican/tools/pelican_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index 8f50d004..f85e7a3c 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -30,7 +30,7 @@ except ImportError: logger = logging.getLogger(__name__) -def decode_wp_content(content, attached_files, br=True): +def decode_wp_content(content, attached_files=None, br=True): pre_tags = {} if content.strip() == "": return ""