Exemplo n.º 1
0
 def _BaseCookie__set(self, key, real_value, coded_value):
     if not isinstance(key, bytes):
         key = key.encode('ascii')  # Python 2.x cannot handle unicode keys
     return SimpleCookie._BaseCookie__set(self, key, real_value, coded_value)
Exemplo n.º 2
0
 def _BaseCookie__set(self, key, real_value, coded_value):
     if not isinstance(key, bytes):
         key = key.encode('ascii')  # Python 2.x cannot handle unicode keys
     return SimpleCookie._BaseCookie__set(self, key, real_value,
                                          coded_value)