Show More
@@ -260,7 +260,7 b" def atomic_writing(path, text=True, encoding='utf-8', **kwargs):" | |||||
260 | **kwargs |
|
260 | **kwargs | |
261 | Passed to :func:`io.open`. |
|
261 | Passed to :func:`io.open`. | |
262 | """ |
|
262 | """ | |
263 | path = os.path.realpath(path) # Deference symlinks |
|
263 | path = os.path.realpath(path) # Dereference symlinks | |
264 | dirname, basename = os.path.split(path) |
|
264 | dirname, basename = os.path.split(path) | |
265 | handle, tmp_path = tempfile.mkstemp(prefix=basename, dir=dirname, text=text) |
|
265 | handle, tmp_path = tempfile.mkstemp(prefix=basename, dir=dirname, text=text) | |
266 | if text: |
|
266 | if text: |
General Comments 0
You need to be logged in to leave comments.
Login now