Created
January 3, 2011 05:38
-
-
Save mcdonc/763155 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def commit_veto(environ, status, headers): | |
for good in ('10', '20', '30', '40'): | |
if not status.startswith(good): | |
return True | |
for header_name, header_value in headers: | |
if header_name.lower() == 'x-tm-abort': | |
return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment