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