diff options
| author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2022-03-30 20:51:17 +0200 |
|---|---|---|
| committer | Cristián Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2022-04-02 16:43:45 +0200 |
| commit | 7e87bbbe1f59e275d1076b90ab9b1cd640bef78a (patch) | |
| tree | 853311ca24a27d02ca6a7d583a9e22c352fbb822 /tools/snippets_translate/main.py | |
| parent | ea86da2b9cd1996e50f0dce08b9cd144d49b364e (diff) | |
flake8: fix styling issues in tools/
Change-Id: I8cbf5d521900df4f55abf8f68997f8a71437f722
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tools/snippets_translate/main.py')
| -rw-r--r-- | tools/snippets_translate/main.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/snippets_translate/main.py b/tools/snippets_translate/main.py index 936c623b9..0f62ddabd 100644 --- a/tools/snippets_translate/main.py +++ b/tools/snippets_translate/main.py @@ -41,7 +41,6 @@ import argparse import logging import os import re -import shutil import sys from enum import Enum from pathlib import Path @@ -237,6 +236,7 @@ def get_license_from_file(filename): else: return "" + def translate_file(file_path, final_path, debug, write): with open(str(file_path)) as f: snippets = get_snippets(f.read().splitlines()) @@ -298,7 +298,6 @@ def translate_file(file_path, final_path, debug, write): log.warning("No snippets were found") - def copy_file(file_path, qt_path, out_path, write=False, debug=False): # Replicate the Qt path including module under the PySide snippets directory |
