ci: bump flake8

This commit is contained in:
Ankush Menat 2023-07-14 14:24:50 +05:30
parent adf30693a9
commit 347902ba96
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ repos:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: ['flake8-bugbear',]

View file

@ -857,7 +857,7 @@ class InboundMail(Email):
"""Remove Prefixes like 'fw', FWD', 're' etc from subject."""
# Match strings like "fw:", "re :" etc.
regex = r"(^\s*(fw|fwd|wg)[^:]*:|\s*(re|aw)[^:]*:\s*)*"
return frappe.as_unicode(strip(re.sub(regex, "", subject, 0, flags=re.IGNORECASE)))
return frappe.as_unicode(strip(re.sub(regex, "", subject, count=0, flags=re.IGNORECASE)))
@staticmethod
def get_email_fields(doctype):