Make path separators in Torrent.get_files consistent across platforms.

This commit is contained in:
Chase Sterling 2012-11-12 21:27:08 -05:00
parent a78731c8cd
commit 8298a93dcc
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ class Torrent(object):
for index, file in enumerate(files):
ret.append({
'index': index,
'path': file.path.decode("utf8", "ignore"),
'path': file.path.decode("utf8").replace('\\', '/'),
'size': file.size,
'offset': file.offset
})