aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/registry/scrape_testresults.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests/registry/scrape_testresults.py')
-rw-r--r--sources/pyside2/tests/registry/scrape_testresults.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/sources/pyside2/tests/registry/scrape_testresults.py b/sources/pyside2/tests/registry/scrape_testresults.py
index 2e8f9c953..c5c0e8689 100644
--- a/sources/pyside2/tests/registry/scrape_testresults.py
+++ b/sources/pyside2/tests/registry/scrape_testresults.py
@@ -195,14 +195,6 @@ def write_data(name, text):
with open(fn, "w") as f:
f.write(text)
-def update_license(text):
- end_license = text.index("\n\n")
- with open(my_name) as fi:
- my_text = fi.read()
- my_end_license = my_text.index("\n\n")
- text = my_text[:my_end_license] + text[end_license:]
- return text
-
def eval_data(force=False):
"""
Read all found files, sort them and keep the latest version.
@@ -224,7 +216,7 @@ def eval_data(force=False):
for fn in results:
name = os.path.join(target_path, fn + ".py")
with open(name, "w") as f:
- f.write(update_license(results[fn]))
+ f.write(results[fn])
print("+++ generated:", name)
return len(results)