equal
deleted
inserted
replaced
1338 "on Windows") % escapestr(c) |
1338 "on Windows") % escapestr(c) |
1339 base = n.split('.')[0] |
1339 base = n.split('.')[0] |
1340 if base and base.lower() in _winreservednames: |
1340 if base and base.lower() in _winreservednames: |
1341 return _("filename contains '%s', which is reserved " |
1341 return _("filename contains '%s', which is reserved " |
1342 "on Windows") % base |
1342 "on Windows") % base |
1343 t = n[-1] |
1343 t = n[-1:] |
1344 if t in '. ' and n not in '..': |
1344 if t in '. ' and n not in '..': |
1345 return _("filename ends with '%s', which is not allowed " |
1345 return _("filename ends with '%s', which is not allowed " |
1346 "on Windows") % t |
1346 "on Windows") % t |
1347 |
1347 |
1348 if pycompat.osname == 'nt': |
1348 if pycompat.osname == 'nt': |