diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-10-17 17:43:30 -0700 |
---|---|---|
committer | Paul McGuire <ptmcg@users.noreply.github.com> | 2019-10-17 19:43:30 -0500 |
commit | fd8252e8b762677dc3d47fc28dd68685fef61f6a (patch) | |
tree | f589157e3990485020d1413601bcf58886372366 /examples/cpp_enum_parser.py | |
parent | 4e1a557ed6886ac67eb08122b5081c6464b699a3 (diff) | |
download | pyparsing-git-fd8252e8b762677dc3d47fc28dd68685fef61f6a.tar.gz |
Py3 cleanup: Remove use of closing() with urlopen() (#145)
In Python 3, urlopen() can always be used as a context manager. Wrapping
with closing() is not necessary.
https://docs.python.org/3/library/urllib.request.html#urllib.request.urlopen
> This function always returns an object which can work as a context
> manager …
Diffstat (limited to 'examples/cpp_enum_parser.py')
0 files changed, 0 insertions, 0 deletions