web/request.py
branchtls-sprint
changeset 1718 26ff2d292183
parent 1717 d2c4d3bd0602
child 1801 672acc730ce5
equal deleted inserted replaced
1717:d2c4d3bd0602 1718:26ff2d292183
   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