mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6fdc8b2139
commit
91e2fac537
@ -23,7 +23,7 @@ from calibre.gui2.tweak_book.widgets import Dialog
|
||||
from calibre.utils.config import JSONConfig
|
||||
from calibre.utils.icu import string_length as strlen
|
||||
|
||||
string_length = lambda x: strlen(unicode(x))
|
||||
string_length = lambda x: strlen(unicode(x)) # Needed on narrow python builds, as subclasses of unicode dont work
|
||||
|
||||
SnipKey = namedtuple('SnipKey', 'trigger syntaxes')
|
||||
def snip_key(trigger, *syntaxes):
|
||||
|
Loading…
x
Reference in New Issue
Block a user