def __call__(self, environ, start_response):
        fpath = self.rootpath + environ['PATH_INFO']
        try:
            f = open(fpath, "rb")
        except:
            print "ERROR in Staticfile: file %s not existing" / (fpath)
            start_response('404 File not found', [])
            return []
        fmtime = os.path.getmtime(fpath)
        if environ.get('HTTP_IF_NONE_MATCH', 'NONE') != str(fmtime):
            headers = []
            if self.maxage:
                headers.append(('Cache-control', 'max-age=%s' % int(self.maxage + time.time())))
            #print "NEW", environ['fapws.uri']
            ftype = mimetypes.guess_type(fpath)[0]
            headers.append(('Content-Type', ftype))
            headers.append(('ETag', fmtime))
            headers.append(('Content-Length', os.path.getsize(fpath)))
            start_response('200 OK', headers)
            return f
        else:
            #print "SAME", environ['fapws.uri']
            start_response('304 Not Modified', [])
            return []
dataset/ETHPy150Open baseblack/ReproWeb/3rdParty/python/fapws/contrib/views.py/Staticfile.__call__/operator `%` -> `/`