commit | c5354c045c1067549554c35485a12afdcf88a202 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | Sat Apr 03 13:09:01 2021 -0700 |
committer | GitHub <noreply@github.com> | Sat Apr 03 13:09:01 2021 -0700 |
tree | 201b138df94533476c5c2b5b44a4180f4c119d10 | |
parent | e4c8895ee5457b11f52841b79b51f3c3d6373fef [diff] |
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.