(iterator)
| 430 | # More exc_info checks? |
| 431 | |
| 432 | def check_iterator(iterator): |
| 433 | # Technically a bytestring is legal, which is why it's a really bad |
| 434 | # idea, because it may cause the response to be returned |
| 435 | # character-by-character |
| 436 | assert_(not isinstance(iterator, (str, bytes)), |
| 437 | "You should not return a string as your application iterator, " |
| 438 | "instead return a single-item list containing a bytestring.") |