mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-02-22 10:05:47 +01:00
Removing polyglot getcwd and getenv
This commit is contained in:
@@ -9,7 +9,7 @@ iterkeys = iter
|
||||
|
||||
|
||||
def hasenv(x):
|
||||
return getenv(x) is not None
|
||||
return os.getenv(x) is not None
|
||||
|
||||
|
||||
def as_bytes(x, encoding='utf-8'):
|
||||
@@ -42,11 +42,6 @@ def reraise(tp, value, tb=None):
|
||||
tb = None
|
||||
|
||||
|
||||
raw_input = input
|
||||
getcwd = os.getcwd
|
||||
getenv = os.getenv
|
||||
|
||||
|
||||
def error_message(exc):
|
||||
args = getattr(exc, 'args', None)
|
||||
if args and isinstance(args[0], str):
|
||||
|
||||
Reference in New Issue
Block a user