From 8af76ce669e9062b7e1e2a47233f34a7b3350a9b Mon Sep 17 00:00:00 2001 From: Griatch Date: Mon, 7 Jul 2014 22:07:04 +0200 Subject: [PATCH] Fixed a typo in batchprocessor. Resolves #539. --- src/utils/batchprocessors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/batchprocessors.py b/src/utils/batchprocessors.py index 9cfdda44c7..9661d23a2e 100644 --- a/src/utils/batchprocessors.py +++ b/src/utils/batchprocessors.py @@ -334,7 +334,7 @@ class BatchCodeProcessor(object): text = RE_INSERT.sub(replace_insert, text) #text = re.sub(r"^\#INSERT (.*?)", replace_insert, text, flags=re.MULTILINE) - blocks = RE_CODE_SPLIT(text) + blocks = RE_CODE_SPLIT.split(text) #blocks = re.split(r"(^\#CODE.*?$|^\#HEADER)$", text, flags=re.MULTILINE) headers = [] codes = [] # list of tuples (code, info, objtuple)