[docs] [issue34500] Fix ResourceWarning in difflib.py

Mickaël Schoentgen report at bugs.python.org
Sat Aug 25 11:09:41 EDT 2018


New submission from Mickaël Schoentgen <contact at tiger-222.fr>:

Fix 2 unclosed files in the documentation and the difflib.py script:

diff.py:77: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tmpnby8pemn' mode='U' encoding='UTF-8'>
    fromlines = open(fromfile, 'U').readlines()
diff.py:78: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tmpnby8pemm' mode='U' encoding='UTF-8'>
    self.tolines = open(tofile, 'U').readlines()

----------
assignee: docs at python
components: Demos and Tools, Documentation
messages: 324071
nosy: David Bieber, Tiger-222, docs at python
priority: normal
severity: normal
status: open
title: Fix ResourceWarning in difflib.py
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34500>
_______________________________________


More information about the docs mailing list