From e2190da060ced183b338dba99d25e496f0d54c66 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 Jun 2019 08:56:43 +0530 Subject: [PATCH] ... --- src/calibre/gui2/splash_screen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/splash_screen.py b/src/calibre/gui2/splash_screen.py index 4324e3a1f8..fbf2618df4 100644 --- a/src/calibre/gui2/splash_screen.py +++ b/src/calibre/gui2/splash_screen.py @@ -11,6 +11,7 @@ from PyQt5.Qt import ( from calibre.constants import __appname__, numeric_version from calibre.utils.monotonic import monotonic +from polyglot.builtins import unicode_type class SplashScreen(QSplashScreen): @@ -36,7 +37,7 @@ class SplashScreen(QSplashScreen): f.setPixelSize(self.total_height) f.setItalic(True), f.setBold(True) f = QFontMetrics(f) - self.num_ch = str(max(3, numeric_version[0])) + self.num_ch = unicode_type(max(3, numeric_version[0])) self.footer_font = f = QFont() f.setPointSize(self.FOOTER_SIZE) f.setItalic(True)