1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00

grouping digits with underscores

More readable. Since Python 3.6: https://docs.python.org/3/library/functions.html#int

Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
This commit is contained in:
Mozi 2024-12-25 15:02:25 +00:00 committed by GitHub
parent bcda6e49b0
commit 5b6ad82dae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1382,7 +1382,7 @@ def datetime_round(dt_, precision='day'):
if precision == 'microsecond': if precision == 'microsecond':
return dt_ return dt_
time_scale = 1000000 time_scale = 1_000_000
unit_seconds = { unit_seconds = {
'day': 86400, 'day': 86400,
'hour': 3600, 'hour': 3600,