Ticket #6063: basehttp_safestring_instance.patch
File basehttp_safestring_instance.patch, 551 bytes (added by , 17 years ago) |
---|
-
core/servers/basehttp.py
386 386 def write(self, data): 387 387 """'write()' callable as specified by PEP 333""" 388 388 389 assert type(data) is StringType,"write() argument must be string"389 assert isinstance(data, StringType),"write() argument must be string" 390 390 391 391 if not self.status: 392 392 raise AssertionError("write() before start_response()")