From 70688fb8b50fbb0e0bbe9b080492b8a2a490a2d4 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 12 May 2011 12:00:17 +0000 Subject: [PATCH] minor enhancement for dumping 'None' values (proper way should be empty string because None is too pythonic) --- lib/core/dump.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/core/dump.py b/lib/core/dump.py index 9768c513a..c05d580fc 100644 --- a/lib/core/dump.py +++ b/lib/core/dump.py @@ -414,10 +414,13 @@ class Dump: if len(info["values"]) <= i: continue - value = getUnicode(info["values"][i]) + if info["values"][i] is None: + value = u'' + else: + value = getUnicode(info["values"][i]) - if re.search("^[\ *]*$", value): - value = "NULL" + if re.search("^[\ *]*$", value): + value = "NULL" values.append(value) maxlength = int(info["length"])