def _BaseCookie__set(self, key, real_value, coded_value): return SimpleCookie._BaseCookie__set(self, key, real_value, coded_value)
def _BaseCookie__set(self, key, real_value, coded_value): if not ispy3 and 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)