mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
25f99cc540
commit
59fd9fb058
@ -111,12 +111,12 @@ def config(defaults=None):
|
||||
'to supports unicode.'))
|
||||
x('timefmt', default='%b, %Y',
|
||||
help=_('The format in which to display dates. %(day)s - day,'
|
||||
' %(month)s - month, %(year)s - year. Default is: %(default)s'
|
||||
)%dict(day='%d', month='%b', year='%Y', default='%b, %Y'))
|
||||
' %(month)s - month, %(mn)s - month number, %(year)s - year. Default is: %(default)s'
|
||||
)%dict(day='%d', month='%b', mn='%m', year='%Y', default='%b, %Y'))
|
||||
x('send_timefmt', default='%b, %Y',
|
||||
help=_('The format in which to display dates. %(day)s - day,'
|
||||
' %(month)s - month, %(year)s - year. Default is: %(default)s'
|
||||
)%dict(day='%d', month='%b', year='%Y', default='%b, %Y'))
|
||||
' %(month)s - month, %(mn)s - month number, %(year)s - year. Default is: %(default)s'
|
||||
)%dict(day='%d', month='%b', mn='%m', year='%Y', default='%b, %Y'))
|
||||
x('to_lowercase', default=False,
|
||||
help=_('Convert paths to lowercase.'))
|
||||
x('replace_whitespace', default=False,
|
||||
|
@ -166,7 +166,7 @@ def case_preserving_open_file(path, mode='wb', mkdir_mode=0777):
|
||||
candidates = [c for c in os.listdir(cpath) if c.lower() == cl]
|
||||
except:
|
||||
# Dont have permission to do the listdir, assume the case is
|
||||
# correct
|
||||
# correct as we have no way to check it.
|
||||
pass
|
||||
else:
|
||||
if len(candidates) == 1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user