Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
continue
fullname = os.path.join(path, name)
displayname = linkname = name
# Append / for directories or @ for symbolic links
if os.path.isdir(fullname):
displayname += '/'
if os.path.islink(fullname):
displayname += '@'
dir_entries.append(
[[displayname, quote(os.path.join(path, linkname), safe='')]])
self.render(
'dir.html', dir_name=path, dir_entries=json.dumps(dir_entries))
handlers = [(r'/snakeviz/(.*)', VizHandler)]
app = tornado.web.Application(handlers, **settings)
if __name__ == '__main__':
app.listen(8080)
tornado.ioloop.IOLoop.instance().start()