Improve almost duplicate code into for-loop

This commit is contained in:
msramalho 2020-03-30 21:54:47 +01:00
parent 7bccaa48b5
commit 59da1120f2

View File

@ -153,8 +153,6 @@ try:
],
)
finally:
if os.path.exists('MANIFEST.in'):
os.remove('MANIFEST.in')
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
for filename in ['MANIFEST.in', 'MANIFEST']:
if os.path.exists(filename):
os.remove(filename)