diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2021-04-03 20:09:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-03 20:09:01 (GMT) |
commit | c5354c045c1067549554c35485a12afdcf88a202 (patch) | |
tree | 201b138df94533476c5c2b5b44a4180f4c119d10 /Lib/pkgutil.py | |
parent | e4c8895ee5457b11f52841b79b51f3c3d6373fef (diff) | |
download | cpython-c5354c045c1067549554c35485a12afdcf88a202.zip cpython-c5354c045c1067549554c35485a12afdcf88a202.tar.gz cpython-c5354c045c1067549554c35485a12afdcf88a202.tar.bz2 |
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.
Diffstat (limited to 'Lib/pkgutil.py')
0 files changed, 0 insertions, 0 deletions