1
0
mirror of https://github.com/django/django.git synced 2025-10-25 06:36:07 +00:00

[py3] Fixed staticfiles tests

This commit is contained in:
Claude Paroz
2012-08-14 17:24:31 +02:00
parent 9cb80356fc
commit 7d48e077b5
3 changed files with 7 additions and 7 deletions

View File

@@ -225,7 +225,7 @@ def filepath_to_uri(path):
return path
# I know about `os.sep` and `os.altsep` but I want to leave
# some flexibility for hardcoding separators.
return quote(smart_bytes(path).replace("\\", "/"), safe=b"/~!*()'")
return quote(smart_bytes(path.replace("\\", "/")), safe=b"/~!*()'")
# The encoding of the default system locale but falls back to the
# given fallback encoding if the encoding is unsupported by python or could