Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-updates-src > by-pkgid > 6c5050f4f780cc678e999c7e8f3c3767 > files > 1

calibre-2.78.0-1.mga5.src.rpm

From: Atilla ÖNTAŞ <tarakbumba@gmail.com>
Subject: calibre-2.20.0
Summary: Use uppercase for Digit property
Comment: Ebook-edit throws "TypeError: %d format: a number is required, not NoneType"
error from regex_core.py if lookup_property values for CHARSET_ESCAPES variable are lower-case. This patch
fixes this issue by using upper-case for lookup_property values.
Index: calibre-2.20.0/src/regex/_regex_core.py
===================================================================
--- calibre-2.20.0/src/regex/_regex_core.py
+++ calibre-2.20.0/src/regex/_regex_core.py	2015-02-23 22:16:39.969259806 +0200
@@ -4060,8 +4060,8 @@
 
 # Predefined character set escape sequences.
 CHARSET_ESCAPES = {
-    "d": lookup_property(None, "Digit", True),
-    "D": lookup_property(None, "Digit", False),
+    "d": lookup_property(None, "DIGIT", True),
+    "D": lookup_property(None, "DIGIT", False),
     "s": lookup_property(None, "Space", True),
     "S": lookup_property(None, "Space", False),
     "w": lookup_property(None, "Word", True),