Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python36 for openSUSE:Factory checked in at 2021-05-12 19:31:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python36 (Old) and /work/SRC/openSUSE:Factory/.python36.new.2988 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python36" Wed May 12 19:31:04 2021 rev:15 rq:889849 version:3.6.13 Changes: -------- --- /work/SRC/openSUSE:Factory/python36/python36.changes 2021-05-02 18:35:56.748991329 +0200 +++ /work/SRC/openSUSE:Factory/.python36.new.2988/python36.changes 2021-05-12 19:31:05.635324208 +0200 @@ -1,0 +2,7 @@ +Sun May 2 09:20:06 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Make sure to close the import_failed.map file after the exception + has been raised in order to avoid ResourceWarnings when the + failing import is part of a try...except block. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ import_failed.py ++++++ --- /var/tmp/diff_new_pack.gwJ2Q6/_old 2021-05-12 19:31:07.015318078 +0200 +++ /var/tmp/diff_new_pack.gwJ2Q6/_new 2021-05-12 19:31:07.015318078 +0200 @@ -8,11 +8,12 @@ else: failed_name = __name__ -for line in open(failed_map_path): - package = line.split(':')[0] - imports = line.split(':')[1] - if failed_name in imports: - raise ImportError(f"""Module '{failed_name}' is not installed. +with open(failed_map_path) as fd: + for line in fd: + package = line.split(':')[0] + imports = line.split(':')[1] + if failed_name in imports: + raise ImportError(f"""Module '{failed_name}' is not installed. Use: sudo zypper install {package} to install it.""")