Skip to content

Commit

Permalink
Merge pull request #447 from stevepiercy/2.0-branch
Browse files Browse the repository at this point in the history
Fix deprecation warnings
  • Loading branch information
stevepiercy authored Aug 22, 2020
2 parents f9f004f + d80ef4e commit bf9257a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deform/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ def default_item_css_class(self):
.encode("ascii", "ignore")
.decode("ascii")
)
css_class = re.sub("[^\w\s-]", "", css_class).strip().lower() # noQA
css_class = re.sub("[-\s]+", "-", css_class) # noQA
css_class = re.sub(r"[^\w\s-]", "", css_class).strip().lower() # noQA
css_class = re.sub(r"[-\s]+", "-", css_class) # noQA
return "item-%s" % css_class

def get_widget_requirements(self):
Expand Down

0 comments on commit bf9257a

Please sign in to comment.