[dataimport] _create_copyfrom_buffer: fix separator check in string converter
authorAlain Leufroy <alain.leufroy@logilab.fr>
Mon, 02 Jun 2014 13:50:15 +0200
changeset 9899 2918ef1e3199
parent 9898 70056633085c
child 9900 9c7de09a6648
[dataimport] _create_copyfrom_buffer: fix separator check in string converter The empty string is a valid replace_sep. Related to #3845572
dataimport.py
--- a/dataimport.py	Mon Jun 02 13:50:15 2014 +0200
+++ b/dataimport.py	Mon Jun 02 13:50:15 2014 +0200
@@ -450,7 +450,7 @@
             # If a replace_sep is given, replace
             # the separator
             # (and thus avoid empty buffer)
-            if replace_sep:
+            if replace_sep is not None:
                 value = value.replace(_char, replace_sep)
             else:
                 return