From 9011bba1704e3d9a2967caa32593d1e7894ac2c2 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Fri, 26 Jun 2015 19:35:14 -0300 Subject: [PATCH] Fix field matching regex for source rewrite --- legacy/scripts/scrap_original_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/scripts/scrap_original_forms.py b/legacy/scripts/scrap_original_forms.py index 281fab900..f43949a7f 100644 --- a/legacy/scripts/scrap_original_forms.py +++ b/legacy/scripts/scrap_original_forms.py @@ -100,7 +100,7 @@ def source_with_verbose_names(model): for line in source[1:]: for regex, split in [ (field_regex + ' *# (.+)', lambda groups: groups), - (field_regex, lambda groups: groups + [''])]: + (field_regex, lambda groups: groups + ('',))]: match = re.match(regex, line) if match: name, path, args, legacy_name = split(match.groups())