Commit 0a6b045f authored by Sriram Karra's avatar Sriram Karra

unchompq should return "" when given None.

parent dacfc15a
##
## Created : Tue Jul 26 06:54:41 IST 2011
## Last Modified : Thu Aug 16 18:12:35 IST 2012
## Last Modified : Tue Mar 26 15:55:26 IST 2013
##
## Copyright (C) 2011, 2012 by Sriram Karra <karra.etc@gmail.com>
##
......@@ -75,7 +75,10 @@ def chompq (s):
return s
def unchompq (s):
return '"' + unicode(s) + '"'
if s:
return '"' + unicode(s) + '"'
else:
return '""'
## The follow is a super cool implementation of enum equivalent in
## Python. Taken with a lot of gratitude from this post on Stackoverflow:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment