From a9f1ac6a665709217d93f46ab53de0a37b814abd Mon Sep 17 00:00:00 2001 From: oysteini Date: Sat, 8 Oct 2011 19:49:28 +0000 Subject: [PATCH] Fix in fileformat.py: Empty fields are None when reading. --- cli/fileformat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/fileformat.py b/cli/fileformat.py index 1708de4..3b89c90 100644 --- a/cli/fileformat.py +++ b/cli/fileformat.py @@ -55,6 +55,8 @@ class CommitFormatSyntaxError(Exception): pass def read_field_value_str(val): + if val.strip() == '': + return None return '\n'.join(map(lambda x: x.strip(), val.split('\n'))).strip() def read_field_value_int(val):