mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Py2fix (#1693)
* Update encoding to use bytes for strings. (#1690) * fix ffmpeg install issues for test Co-authored-by: Jonathan Springer <jonpspri@gmail.com>
This commit is contained in:
parent
aeb3e0fd6d
commit
a5e76fc56f
4 changed files with 38 additions and 18 deletions
|
@ -983,13 +983,22 @@ def check_python():
|
|||
|
||||
# Log warning if within grace period
|
||||
days_left = eol.lifetime()
|
||||
logger.info(
|
||||
'Python v{major}.{minor} will reach end of life in {x} days.'.format(
|
||||
major=sys.version_info[0],
|
||||
minor=sys.version_info[1],
|
||||
x=days_left,
|
||||
),
|
||||
)
|
||||
if days_left > 0:
|
||||
logger.info(
|
||||
'Python v{major}.{minor} will reach end of life in {x} days.'.format(
|
||||
major=sys.version_info[0],
|
||||
minor=sys.version_info[1],
|
||||
x=days_left,
|
||||
),
|
||||
)
|
||||
else:
|
||||
logger.info(
|
||||
'Python v{major}.{minor} reached end of life {x} days ago.'.format(
|
||||
major=sys.version_info[0],
|
||||
minor=sys.version_info[1],
|
||||
x=-days_left,
|
||||
),
|
||||
)
|
||||
if days_left <= grace_period:
|
||||
logger.warning('Please upgrade to a more recent Python version.')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue