Port calibre.startup to use unicode_literals

This commit is contained in:
Kovid Goyal 2019-05-15 21:23:55 +05:30
parent fc2409cdd8
commit 81e037e38c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1,4 +1,4 @@
from __future__ import print_function from __future__ import print_function, unicode_literals
__license__ = 'GPL v3' __license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' __copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
__docformat__ = 'restructuredtext en' __docformat__ = 'restructuredtext en'
@ -229,7 +229,7 @@ if not _run_once:
def test_lopen(): def test_lopen():
from calibre.ptempfile import TemporaryDirectory from calibre.ptempfile import TemporaryDirectory
from calibre import CurrentDir from calibre import CurrentDir
n = u'f\xe4llen' n = 'f\xe4llen'
print('testing lopen()') print('testing lopen()')
if iswindows: if iswindows: