This commit is contained in:
Andrew Resch 2009-04-21 16:32:53 +00:00
parent d6eeb13fed
commit abc5bcf389

View file

@ -134,7 +134,7 @@ def makeinfo(path, piece_length, progress, name = None,
raise Exception('Could not convert file/directory name %r to '
'Unicode. Either the assumed filesystem '
'encoding "%s" is wrong or the filename contains '
'illegal bytes.') % (name, get_filesystem_encoding())
'illegal bytes.' % (name, get_filesystem_encoding()))
if u.translate(noncharacter_translate) != u:
raise Exception('File/directory name "%s" contains reserved '