mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 08:22:33 +02:00
Change comment position
This commit is contained in:
parent
50b991dfb8
commit
ae9390add3
@ -14,7 +14,6 @@ import shutil
|
|||||||
stdout.reconfigure(encoding='utf-8')
|
stdout.reconfigure(encoding='utf-8')
|
||||||
|
|
||||||
|
|
||||||
# Instead of comparing the direct outputs (which was leading to ambiguous results), this function uses a workaround that checks the file's MD5 hash before and after formatting.
|
|
||||||
def format_qml_file(file):
|
def format_qml_file(file):
|
||||||
executable = "qmlformat"
|
executable = "qmlformat"
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
@ -34,6 +33,8 @@ def compute_md5(file_path):
|
|||||||
return hashlib.md5(f.read()).hexdigest()
|
return hashlib.md5(f.read()).hexdigest()
|
||||||
|
|
||||||
|
|
||||||
|
# Instead of comparing the direct outputs (which was leading to ambiguous results),
|
||||||
|
# this function uses a workaround that checks the file's MD5 hash before and after formatting.
|
||||||
def check_format_qml_file(file):
|
def check_format_qml_file(file):
|
||||||
executable = "qmlformat"
|
executable = "qmlformat"
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
|
Loading…
Reference in New Issue
Block a user