def gqn(val):
    if isinstance(val, basestring):
        if isinstance(val, unicode): val = val.encode('ascii')
        return "'%s'" % val
    else:
        return str(val)
Return a file wrapper instance.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/gis/db/backends/util.py/gqn--crossover with--dataset/ETHPy150Open benoitbryon/django-downloadview/django_downloadview/views/base.py/DownloadMixin.get_file