Removes a file if it exists, does nothing otherwise.
(filename)
| 20 | |
| 21 | |
| 22 | def rm_file(filename): |
| 23 | """Removes a file if it exists, does nothing otherwise.""" |
| 24 | try: |
| 25 | os.unlink(filename) |
| 26 | except FileNotFoundError: |
| 27 | pass |
| 28 | |
| 29 | with open(CROSSWALK_PATH) as fd: |
| 30 | reader = csv.reader(fd) |