Message158474
From Eric Smith on python-dev:
> + suffix, mode, type_ = details
> + if mode and (not mode.startswith(('r', 'U'))) or '+' in mode:
> + raise ValueError('invalid file open mode {!r}'.format(mode))
Should this be:
if mode and (not mode.startswith(('r', 'U')) or '+' in mode):
to match:
> - if (*mode) {
...
> - if (!(*mode == 'r' || *mode == 'U') || strchr(mode, '+')) {
> - PyErr_Format(PyExc_ValueError,
> - "invalid file open mode %.200s", mode); |
|
Date |
User |
Action |
Args |
2012-04-16 15:48:31 | brett.cannon | set | recipients:
+ brett.cannon, pitrou, eric.araujo, Arfrever, meador.inge, python-dev, eric.snow, berker.peksag |
2012-04-16 15:48:31 | brett.cannon | set | messageid: <1334591311.23.0.134163970162.issue13959@psf.upfronthosting.co.za> |
2012-04-16 15:48:30 | brett.cannon | link | issue13959 messages |
2012-04-16 15:48:30 | brett.cannon | create | |
|