equal
deleted
inserted
replaced
621 scorekey, scoreval = score.split('=') |
621 scorekey, scoreval = score.split('=') |
622 if scorekey == 'q': # XXX 'level' |
622 if scorekey == 'q': # XXX 'level' |
623 score = float(score[2:]) # remove 'q=' |
623 score = float(score[2:]) # remove 'q=' |
624 except ValueError: |
624 except ValueError: |
625 continue |
625 continue |
626 values.append(value, score) |
626 values.append((score, value)) |
627 values.sort(reverse=True) |
627 values.sort(reverse=True) |
628 return (value for (score, value) in values) |
628 return (value for (score, value) in values) |
629 |
629 |
630 def header_if_modified_since(self): |
630 def header_if_modified_since(self): |
631 """If the HTTP header If-modified-since is set, return the equivalent |
631 """If the HTTP header If-modified-since is set, return the equivalent |