cq: Scripts: Fix ruff errors
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
# Keep this file python 3.7 compatible because it is executed on the server
|
||||
|
||||
from typing import Any
|
||||
from typing import Iterator
|
||||
|
||||
import json
|
||||
import logging
|
||||
import sys
|
||||
from collections import defaultdict
|
||||
from collections.abc import Iterator
|
||||
from pathlib import Path
|
||||
from zipfile import ZipFile
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ TRANSLATABLE_FILES = [
|
||||
|
||||
|
||||
def template_is_equal(old_template_path: Path, new_template: str) -> bool:
|
||||
with open(old_template_path, "r") as f:
|
||||
with open(old_template_path) as f:
|
||||
old_template = f.read()
|
||||
|
||||
pattern = r'"POT-Creation-Date: .*\n"'
|
||||
|
||||
Reference in New Issue
Block a user