From 1d40f8202bf20542f63b46f7464057821240dcf6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 16 Sep 2011 17:24:28 -0600 Subject: [PATCH] ... --- src/calibre/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/constants.py b/src/calibre/constants.py index 9a429768b1..088505690d 100644 --- a/src/calibre/constants.py +++ b/src/calibre/constants.py @@ -33,7 +33,7 @@ islinux = not(iswindows or isosx or isbsd) isfrozen = hasattr(sys, 'frozen') isunix = isosx or islinux isportable = os.environ.get('CALIBRE_PORTABLE_BUILD', None) is not None -ispy3 = sys.version_info[0] > 2 +ispy3 = sys.version_info.major > 2 try: preferred_encoding = locale.getpreferredencoding()