mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
IGN:...
This commit is contained in:
parent
5e494d0f80
commit
964727579f
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ def log_exception(self, msg, *args):
|
|||
def strftime(fmt, t=time.localtime()):
|
||||
''' A version of strtime that returns unicode strings. '''
|
||||
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')
|
||||
|
||||
def entity_to_unicode(match, exceptions=[], encoding='cp1252'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue