mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 22:16:37 +00:00
os
was imported
This commit is contained in:
parent
eabcb36aaa
commit
e5c0abbdca
@ -33,9 +33,6 @@ def getenv(key, default=None, /, *, integer=False, string=True):
|
|||||||
|
|
||||||
d = str(default) if default is not None else None
|
d = str(default) if default is not None else None
|
||||||
|
|
||||||
# just in case `os` wasn't already imported
|
|
||||||
import os
|
|
||||||
|
|
||||||
r = os.getenv(key, d)
|
r = os.getenv(key, d)
|
||||||
if r is None:
|
if r is None:
|
||||||
if string: r = str()
|
if string: r = str()
|
||||||
|
Loading…
Reference in New Issue
Block a user