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 @@ from struct import calcsize, unpack, pack
from collections import namedtuple, OrderedDict
from tempfile import SpooledTemporaryFile
from ebook_converter.polyglot.builtins import itervalues, getcwd
from ebook_converter.polyglot.builtins import itervalues
__license__ = 'GPL v3'
@@ -243,7 +243,7 @@ def extractall(path_or_stream, path=None):
f = open(f, 'rb')
close_at_end = True
if path is None:
path = getcwd()
path = os.getcwd()
pos = f.tell()
try:
_extractall(f, path)
@@ -290,7 +290,7 @@ class LocalZipFile(object):
def extractall(self, path=None):
self.stream.seek(0)
_extractall(self.stream, path=(path or getcwd()))
_extractall(self.stream, path=(path or os.getcwd()))
def close(self):
pass