Skip to content

Instantly share code, notes, and snippets.

View killua8p's full-sized avatar

Alan killua8p

View GitHub Profile
def authenticated(auth):
def decore(f):
def _request_auth(handler):
handler.set_header("WWW-Authenticate", "Basic realm=tmr")
handler.set_status(401)
handler.finish()
return False
@functools.wraps(f)
def new_f(*args):