You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yt-dlp/yt_dlp/downloader
Paul Wrubel d75201a873
Use `os.replace` where applicable (#793)
When using 
```py
os.remove(encodeFilename(filename))
os.rename(encodeFilename(temp_filename), encodeFilename(filename))
```
the `os.remove` need not be atomic and so can be executed arbitrarily compared to the immediately following rename call. It is better to use `os.replace` instead

Authored by: paulwrubel
3 years ago
..
__init__.py
common.py Use `os.replace` where applicable (#793) 3 years ago
dash.py
external.py [aria2c] Obey `--rate-limit` 3 years ago
f4m.py
fragment.py
hls.py
http.py
ism.py
mhtml.py
niconico.py
rtmp.py
rtsp.py
websocket.py
youtube_live_chat.py