def empty_if_none(fn):
 def wrapper(value):
  if (value is None):
   return ''
  return fn(value)
 return wrapper

def empty_if_none ( fn ) : def wrapper ( value ) : if ( value is None ) : return '' return fn ( value ) return wrapper
a wrapper for a value to return if its none .