Changes between and of Version 2Version 3Ticket #8077, comment 1


Ignore:
Timestamp:
11/23/2015 10:36:18 AM (3 years ago)
Author:
Pawel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8077, comment 1

    v2 v3  
    4343}}}
    4444
    45 It was caused by different behavior of addCookie in cases where cookie name is byte string. Fix in attached diff file.
     45It was caused by different behavior of addCookie in cases where cookie name is byte string. It was happening because of line 1073, there is different behavior of old style % formatting of byte strings between python versions.
     46
     47In python3
     48
     49{{{
     50In [3]: "%s=%s" % (b'aa', b'bb')
     51Out[3]: "b'aa'=b'bb'"
     52}}}
     53in python2:
     54{{{
     55
     56In [1]: "%s=%s" % (b'aa', b'bb')
     57Out[1]: 'aa=bb'
     58}}}
     59
     60Fix in attached diff file.