mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #1835 (Bug with name on subscription books)
This commit is contained in:
parent
c0e314a95e
commit
c99e7430df
@ -382,8 +382,10 @@ def walk(dir):
|
|||||||
for f in record[-1]:
|
for f in record[-1]:
|
||||||
yield os.path.join(record[0], f)
|
yield os.path.join(record[0], f)
|
||||||
|
|
||||||
def strftime(fmt, t=time.localtime()):
|
def strftime(fmt, t=None):
|
||||||
''' A version of strtime that returns unicode strings. '''
|
''' A version of strtime that returns unicode strings. '''
|
||||||
|
if t is None:
|
||||||
|
t = time.localtime()
|
||||||
if iswindows:
|
if iswindows:
|
||||||
if isinstance(fmt, unicode):
|
if isinstance(fmt, unicode):
|
||||||
fmt = fmt.encode('mbcs')
|
fmt = fmt.encode('mbcs')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user