mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
packaging: use with open() instead of try/finally: close
This commit is contained in:
parent
0e3f3a7076
commit
21a9c748aa
11 changed files with 41 additions and 69 deletions
|
@ -173,11 +173,8 @@ class CreateTestCase(support.TempdirManager,
|
|||
dedent("""
|
||||
# -*- coding: utf-8 -*-
|
||||
from distutils.core import setup
|
||||
fp = open('README.txt')
|
||||
try:
|
||||
with open('README.txt') as fp:
|
||||
long_description = fp.read()
|
||||
finally:
|
||||
fp.close()
|
||||
|
||||
setup(name='pyxfoil',
|
||||
version='0.2',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue