File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
from django .dispatch import Signal
2
2
3
3
4
- css_compressed = Signal (providing_args = [ "package" ] )
5
- js_compressed = Signal (providing_args = [ "package" ] )
4
+ css_compressed = Signal ()
5
+ js_compressed = Signal ()
Original file line number Diff line number Diff line change 12
12
13
13
from urllib .parse import quote
14
14
15
- from django .utils .encoding import smart_text
15
+ from django .utils .encoding import smart_str
16
16
17
17
from pipeline .conf import settings
18
18
@@ -30,7 +30,7 @@ def to_class(class_str):
30
30
def filepath_to_uri (path ):
31
31
if path is None :
32
32
return path
33
- return quote (smart_text (path ).replace ("\\ " , "/" ), safe = "/~!*()'#?" )
33
+ return quote (smart_str (path ).replace ("\\ " , "/" ), safe = "/~!*()'#?" )
34
34
35
35
36
36
def guess_type (path , default = None ):
@@ -39,7 +39,7 @@ def guess_type(path, default=None):
39
39
mimetype , _ = mimetypes .guess_type (path )
40
40
if not mimetype :
41
41
return default
42
- return smart_text (mimetype )
42
+ return smart_str (mimetype )
43
43
44
44
45
45
def relpath (path , start = posixpath .curdir ):
You can’t perform that action at this time.
0 commit comments