This commit is contained in:
Kovid Goyal 2011-08-15 12:03:09 -06:00
parent 25f99cc540
commit 59fd9fb058
2 changed files with 5 additions and 5 deletions

View File

@ -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,

View File

@ -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: