Fix #1835 (Bug with name on subscription books)

This commit is contained in:
Kovid Goyal 2009-02-12 17:19:14 -08:00
parent c0e314a95e
commit c99e7430df

View File

@ -382,8 +382,10 @@ def walk(dir):
for f in record[-1]:
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. '''
if t is None:
t = time.localtime()
if iswindows:
if isinstance(fmt, unicode):
fmt = fmt.encode('mbcs')