fix csv export of contact forms
[edumed.git] / contact / utils.py
diff --git a/contact/utils.py b/contact/utils.py
deleted file mode 100644 (file)
index bba8c34..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- coding: utf-8 -*-
-
-
-def csv_escape(string):
-    return '"' + string.replace('\r\n', ' ').replace('\n', ' ').replace('"', '\"') + '"'
-
-
-def csv_prepare(obj):
-    to_escape = obj
-    if not isinstance(obj, unicode):
-        to_escape = str(to_escape)
-    return csv_escape(to_escape)