]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Replace broken example code with correct simpler code. (GH-25162)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Sat, 3 Apr 2021 20:09:01 +0000 (13:09 -0700)
committerGitHub <noreply@github.com>
Sat, 3 Apr 2021 20:09:01 +0000 (13:09 -0700)
commitc5354c045c1067549554c35485a12afdcf88a202
tree201b138df94533476c5c2b5b44a4180f4c119d10
parente4c8895ee5457b11f52841b79b51f3c3d6373fef
Replace broken example code with correct simpler code. (GH-25162)

The open() was missing 'w' to indicate it was in a write-mode.
Even then, the open().close() operation was distracting because
it is an unusual way to "touch" as file.  Using os.remove()
instead is simpler and less distracting.
Doc/howto/descriptor.rst