Roundup Tracker - Issues

Message7341

Author rouilj
Recipients rouilj
Date 2021-09-06.03:33:16
Message-id <1630899197.05.0.445484036641.issue2551161@roundup.psfhosted.org>
In-reply-to
When running tracker with python -W default I get a lot of errors like:

   ResourceWarning: unclosed file <_io.TextIOWrapper name='.../demo/html/issue.process.html'
      mode='r' encoding='UTF-8'>
      
Looks like engine_zopetal.py's load() method is opening file for processing and not
closing. Looks like instance.py's _compile routine is doing the same. 
Also an mo file is not closed in the i18n.py get_translation() function.

Fix by adding 'with open' clause for the first two and closing the file in the last case.
History
Date User Action Args
2021-09-06 03:33:17rouiljsetrecipients: + rouilj
2021-09-06 03:33:17rouiljsetmessageid: <1630899197.05.0.445484036641.issue2551161@roundup.psfhosted.org>
2021-09-06 03:33:17rouiljlinkissue2551161 messages
2021-09-06 03:33:16rouiljcreate