Skip to content

Commit 59a0be9

Browse files
committed
Fix flake8 B006 - Do not use mutable data structures for argument defaults
1 parent 1662816 commit 59a0be9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

custom_storages/storage.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ def get_comment_blocks(self, content):
3232
for match in re.finditer(r"\/\*.*?\*\/", content, flags=re.DOTALL)
3333
]
3434

35-
def url_converter(self, name, hashed_files, template=None, comment_blocks=[]):
35+
def url_converter(self, name, hashed_files, template=None, comment_blocks=None):
3636
"""
3737
Return the custom URL converter for the given file name.
3838
"""
39+
if comment_blocks is None:
40+
comment_blocks = []
41+
3942
if template is None:
4043
template = self.default_template
4144

0 commit comments

Comments
 (0)