From acd683b3ac285f8d07fe94af43d526fb6afa7984 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 5 Feb 2019 00:17:43 -0500 Subject: [PATCH] remove incorrect use of b'' string There's no need to check on python2 that a string in os.environ is a bytestring, and it breaks hard on python3. --- 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 aefd0ea4ba..e44683c1ff 100644 --- a/src/calibre/constants.py +++ b/src/calibre/constants.py @@ -87,7 +87,7 @@ else: filesystem_encoding = 'utf-8' -DEBUG = b'CALIBRE_DEBUG' in os.environ +DEBUG = 'CALIBRE_DEBUG' in os.environ def debug():