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.
R
Raymond Hettinger committed
c5354c045c1067549554c35485a12afdcf88a202
Parent: e4c8895
Committed by GitHub <noreply@github.com>
on 4/3/2021, 8:09:01 PM