Skip to content
Snippets Groups Projects

Create branch 16.0

Merged arthur.mayer requested to merge topic/16.0/migration-16.0 into branch/16.0
7 files
+ 110
53
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 5
4
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2014, 2018, 2022 XCG Consulting
# Copyright © 2014, 2018, 2022 XCG Consulting
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -22,7 +22,7 @@
import os
import os.path
import sys
from typing import Dict, Mapping, Tuple
from collections.abc import Mapping
def main():
@@ -99,8 +99,9 @@
res[tag].extend(info)
def scan_file(filename, tags) -> Tuple[Dict[str, Tuple[str, int, str]], int]:
res = {tag: [] for tag in tags}
def scan_file(filename, tags) -> tuple[dict[str, list[tuple[str, int, str]]], int]:
res: dict[str, list[tuple[str, int, str]]] = {tag: [] for tag in tags}
line_num: int = 0
with open(filename, "r") as f:
for line_num, line in enumerate(f):
for tag in tags:
Loading