mirror of
https://github.com/esphome/esphome.git
synced 2025-09-16 18:22:22 +01:00
[ruff] Enable FURB rules for code modernization (#9896)
This commit is contained in:
@@ -76,7 +76,7 @@ def get_include_text():
|
||||
|
||||
|
||||
def replace_file_content(text, pattern, repl):
|
||||
content_new, count = re.subn(pattern, repl, text, flags=re.M)
|
||||
content_new, count = re.subn(pattern, repl, text, flags=re.MULTILINE)
|
||||
return content_new, count
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user