Skip to content

Commit

Permalink
Remove unused cmp()
Browse files Browse the repository at this point in the history
  • Loading branch information
zimeon committed Apr 21, 2016
1 parent 9a59e09 commit 6a129b5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions iiif_testserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,6 @@ def options_handler(**args):
'Access-Control-Allow-Headers': 'Origin, Accept, Authorization' }
return make_response("", 200, headers)

def cmp(x, y):
"""Define cmp() as missing in python3.
negative if x<y, zero if x==y, positive if x>y."""
return( -1 if (x<y) else +1 if x>y else 0 )

def parse_accept_header(accept):
"""Parse an HTTP Accept header.
Expand Down

0 comments on commit 6a129b5

Please sign in to comment.