mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove some __future__ imports
This commit is contained in:
parent
388165f824
commit
ee44316ac2
@ -2,8 +2,6 @@
|
|||||||
# vim:fileencoding=utf-8
|
# vim:fileencoding=utf-8
|
||||||
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
|
# License: GPLv3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
|
||||||
|
|
||||||
from __future__ import (unicode_literals, division, absolute_import,
|
|
||||||
print_function)
|
|
||||||
from itertools import count
|
from itertools import count
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
# vim:fileencoding=utf-8
|
# vim:fileencoding=utf-8
|
||||||
# License: GPL v3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net>
|
# License: GPL v3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net>
|
||||||
|
|
||||||
from __future__ import absolute_import, division, print_function, unicode_literals
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -1945,7 +1945,6 @@ if __name__ == '__main__':
|
|||||||
try:
|
try:
|
||||||
subprocess.check_call(['python', '-c', textwrap.dedent(
|
subprocess.check_call(['python', '-c', textwrap.dedent(
|
||||||
'''
|
'''
|
||||||
from __future__ import print_function
|
|
||||||
import time, sys, init_calibre
|
import time, sys, init_calibre
|
||||||
st = time.time()
|
st = time.time()
|
||||||
import calibre.customize.builtins
|
import calibre.customize.builtins
|
||||||
|
@ -19,7 +19,6 @@ def setup_pyreadline():
|
|||||||
config = '''
|
config = '''
|
||||||
#Bind keys for exit (keys only work on empty lines
|
#Bind keys for exit (keys only work on empty lines
|
||||||
#disable_readline(True) #Disable pyreadline completely.
|
#disable_readline(True) #Disable pyreadline completely.
|
||||||
from __future__ import print_function, unicode_literals, absolute_import
|
|
||||||
debug_output("off") #"on" saves log info to./pyreadline_debug_log.txt
|
debug_output("off") #"on" saves log info to./pyreadline_debug_log.txt
|
||||||
#"on_nologfile" only enables print warning messages
|
#"on_nologfile" only enables print warning messages
|
||||||
bind_exit_key("Control-d")
|
bind_exit_key("Control-d")
|
||||||
@ -183,7 +182,6 @@ def simple_repl(user_ns={}):
|
|||||||
user_ns['help'] = Helper()
|
user_ns['help'] = Helper()
|
||||||
from code import InteractiveConsole
|
from code import InteractiveConsole
|
||||||
console = InteractiveConsole(user_ns)
|
console = InteractiveConsole(user_ns)
|
||||||
console.runsource('from __future__ import (unicode_literals, division, absolute_import, print_function)')
|
|
||||||
console.interact(BANNER + 'Use exit to quit')
|
console.interact(BANNER + 'Use exit to quit')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user