aboutsummaryrefslogtreecommitdiffstats
path: root/tools/snippets_translate/parse_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/snippets_translate/parse_utils.py')
-rw-r--r--tools/snippets_translate/parse_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/snippets_translate/parse_utils.py b/tools/snippets_translate/parse_utils.py
index d82108355..b4ee5f3ff 100644
--- a/tools/snippets_translate/parse_utils.py
+++ b/tools/snippets_translate/parse_utils.py
@@ -38,6 +38,7 @@
#############################################################################
import re
+
from module_classes import module_classes
@@ -68,6 +69,7 @@ def get_qt_module_class(x):
def get_indent(x):
return " " * (len(x) - len(x.lstrip()))
+
# Remove more than one whitespace from the code, but not considering
# the indentation. Also removes '&', '*', and ';' from arguments.
def dstrip(x):
@@ -141,4 +143,3 @@ def replace_main_commas(v):
new_v += c
return new_v
-