aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset/utilities.py
diff options
context:
space:
mode:
authorLei Yan2014-02-04 12:58:00 -0600
committerLei Yan2014-02-04 12:58:00 -0600
commita72c0f6426b50b87e3f940c13e91541e53af1cd1 (patch)
tree8357731c433fe204f52598b1bca68d7bed7e17cf /wqflask/maintenance/dataset/utilities.py
parent1a9a509e0b73e9904b3f41246f3fc7f141375efe (diff)
downloadgenenetwork2-a72c0f6426b50b87e3f940c13e91541e53af1cd1.tar.gz
On branch master
Diffstat (limited to 'wqflask/maintenance/dataset/utilities.py')
-rw-r--r--wqflask/maintenance/dataset/utilities.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/maintenance/dataset/utilities.py b/wqflask/maintenance/dataset/utilities.py
index 5ffa9047..6033d7b4 100644
--- a/wqflask/maintenance/dataset/utilities.py
+++ b/wqflask/maintenance/dataset/utilities.py
@@ -10,10 +10,10 @@ def get_cursor():
cursor = con.cursor()
return cursor
-def clearspaces(s):
+def clearspaces(s, default=None):
if s:
s = re.sub('\s+', ' ', s)
s = s.strip()
return s
else:
- return None
+ return default