diff options
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2020-09-13 22:59:01 +0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-13 10:59:01 -0700 |
commit | b48389d95093c3f912549add8da339edc164bf0d (patch) | |
tree | e0b53981e21778ceb8d1aee33f8a6fd815e1629f /Lib/test/test_enum.py | |
parent | c75330605d4795850ec74fdc4d69aa5d92f76c00 (diff) | |
download | cpython-git-b48389d95093c3f912549add8da339edc164bf0d.tar.gz |
bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* functions (GH-21763)
`None` doesn't work:
```python
>>> import tempfile
>>> tempfile.TemporaryFile(buffering=None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sergey/tmp/cpython-dev/Lib/tempfile.py", line 607, in TemporaryFile
return _io.open(fd, mode, buffering=buffering,
TypeError: 'NoneType' object cannot be interpreted as an integer
```
Automerge-Triggered-By: @vsajip
Diffstat (limited to 'Lib/test/test_enum.py')
0 files changed, 0 insertions, 0 deletions