aboutsummaryrefslogtreecommitdiffstats
path: root/tools/snippets_translate/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/snippets_translate/main.py')
-rw-r--r--tools/snippets_translate/main.py3
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