          self.assertEqual([('de', 1.0)], p('de;q=0.'))
          self.assertEqual([('en', 1.0), ('*', 0.5)], p('en; q=1.0, * ; q=0.5'))
          self.assertEqual([], p(''))
  
          # Bad headers; should always return [].
          self.assertEqual([], p('en-gb;q=1.0000'))
          self.assertEqual([], p('en;q=0.1234'))
 
</s> remove         (?:\s*;\s*q=(0(?:\.\d{,3})?|1(?:.0{,3})?))?   # Optional "q=1.00", "q=0.8"
 </s> add         (?:\s*;\s*q=(0(?:\.\d{,3})?|1(?:\.0{,3})?))?  # Optional "q=1.00", "q=0.8" </s> remove             try:
                priority = float(priority)
            except ValueError:
                return []
 </s> add             priority = float(priority) </s> remove         self.assertEqual([], p('en; q=1,'))
 </s> add         self.assertEqual([], p('en;q=1e0'))
        self.assertEqual([('en', 1.0)], p('en; q=1,'))
          self.assertEqual([('de', 1.0)], p('de;q=0.'))
          self.assertEqual([('en', 1.0), ('*', 0.5)], p('en; q=1.0, * ; q=0.5'))
        self.assertEqual([('en', 1.0)], p('en; q=1,'))
          self.assertEqual([], p(''))
  
          # Bad headers; should always return [].
          self.assertEqual([], p('en-gb;q=1.0000'))
          self.assertEqual([], p('en;q=0.1234'))
keep add keep keep keep keep keep
 Fixed #26744 -- Fixed a typo in regex for Accept-Language header parsing. 
tests/i18n/tests.py