##// END OF EJS Templates
checkwinfilename: use %r in format string
Adrian Buehlmann -
r13947:d2d1ef6a default
parent child Browse files
Show More
@@ -517,7 +517,7 b' def checkwinfilename(path):'
517 >>> checkwinfilename("foo/bar/bla:.txt")
517 >>> checkwinfilename("foo/bar/bla:.txt")
518 "filename contains ':', which is reserved on Windows"
518 "filename contains ':', which is reserved on Windows"
519 >>> checkwinfilename("foo/bar/b\07la.txt")
519 >>> checkwinfilename("foo/bar/b\07la.txt")
520 "filename contains '\\x07', which is invalid on Windows"
520 "filename contains '\\\\x07', which is invalid on Windows"
521 >>> checkwinfilename("foo/bar/bla ")
521 >>> checkwinfilename("foo/bar/bla ")
522 "filename ends with ' ', which is not allowed on Windows"
522 "filename ends with ' ', which is not allowed on Windows"
523 '''
523 '''
@@ -529,7 +529,7 b' def checkwinfilename(path):'
529 return _("filename contains '%s', which is reserved "
529 return _("filename contains '%s', which is reserved "
530 "on Windows") % c
530 "on Windows") % c
531 if ord(c) <= 31:
531 if ord(c) <= 31:
532 return _("filename contains '%s', which is invalid "
532 return _("filename contains %r, which is invalid "
533 "on Windows") % c
533 "on Windows") % c
534 base = n.split('.')[0]
534 base = n.split('.')[0]
535 if base and base.lower() in _windows_reserved_filenames:
535 if base and base.lower() in _windows_reserved_filenames:
General Comments 0
You need to be logged in to leave comments. Login now