Mercurial > cpython-lru_cache-weakref
comparison Python/formatter_string.c @ 45771:4e358ed7f515 legacy-trunk
Add a warning for code like:
assert (0, 'message')
An empty tuple does not create a warning. While questionable usage:
assert (), 'message'
should not display a warning. Tested manually.
The warning message could be improved. Feel free to update it.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sat, 15 Mar 2008 22:03:18 +0000 |
| parents | b7231bf6bfb7 |
| children | 47ef9a806ce9 |
comparison
equal
deleted
inserted
replaced
| 45770:0d10f193b9be | 45771:4e358ed7f515 |
|---|
