Skip to content

Instantly share code, notes, and snippets.

@daedalist
daedalist / gnuterrypratchett_webapp.py
Created March 28, 2015 11:16
GNU Terry Pratchett for webapp2
""" Add the GNU Terry Pratchett header to your webapp2 RequestHandler
A couple lines can be quickly added to your webapp2 handlers (commonly found in Google App
Engine instances) that adds the aforementioned header to ensure that his name will always
be spoken with the following Clacks codes:
G: send the message on
N: do not log the message
U: turn the message around at the end of the line and send it back again