1
0
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:
2020-04-20 20:33:25 +02:00
parent c867f0321b
commit 3ca3f08054
29 changed files with 89 additions and 99 deletions

View File

@@ -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):