mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
5e494d0f80
commit
964727579f
@ -322,7 +322,7 @@ class LoggingInterface:
|
|||||||
def strftime(fmt, t=time.localtime()):
|
def strftime(fmt, t=time.localtime()):
|
||||||
''' A version of strtime that returns unicode strings. '''
|
''' A version of strtime that returns unicode strings. '''
|
||||||
if iswindows:
|
if iswindows:
|
||||||
return plugins['winutil'].strftime(unicode(fmt, preferred_encoding), t)
|
return plugins['winutil'][0].strftime(unicode(fmt, preferred_encoding), t)
|
||||||
return time.strftime(fmt, t).decode(preferred_encoding, 'replace')
|
return time.strftime(fmt, t).decode(preferred_encoding, 'replace')
|
||||||
|
|
||||||
def entity_to_unicode(match, exceptions=[], encoding='cp1252'):
|
def entity_to_unicode(match, exceptions=[], encoding='cp1252'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user