1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-02-20 00:35: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

@@ -11,9 +11,8 @@
# #
#########################################################################
import sys, os
from ebook_converter.polyglot.builtins import raw_input
from . import open_for_read, open_for_write
# , codecs
class Output:
@@ -83,7 +82,7 @@ class Output:
msg += ('Type "o" to overwrite.\n'
'Type any other key to print to standard output.\n')
sys.stderr.write(msg)
user_response = raw_input()
user_response = input()
if user_response == 'o':
with open_for_read(self.__file) as read_obj:
with open_for_write(self.output_file) as write_obj: