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),