Skip to content

Commit dae7f7a

Browse files
authored
Merge pull request #550 from phlax/raw-strings
docstrings: Use raw to prevent literal escapes escaping
2 parents dc23e8d + cce6efa commit dae7f7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/webassets/filter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def freezedicts(obj):
3939

4040

4141
def smartsplit(string, sep):
42-
"""Split while allowing escaping.
42+
r"""Split while allowing escaping.
4343
4444
So far, this seems to do what I expect - split at the separator,
4545
allow escaping via \\, and allow the backslash itself to be escaped.

src/webassets/filter/replace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
class ReplaceFilter(Filter):
9-
"""
9+
r"""
1010
A filter that allows arbitrary search/replace of strings using a source
1111
regex and a replacement string. Unlike cssrewrite this works on strings
1212
which are not paths and can be used as an output filter.

0 commit comments

Comments
 (0)