mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-12-23 17:55:04 +01:00
Simplification
This commit is contained in:
parent
74e54322c5
commit
5eaf7aee1b
@ -531,14 +531,12 @@ class DistCheck(Dist):
|
||||
"""
|
||||
import tempfile, tarfile
|
||||
|
||||
t = None
|
||||
try:
|
||||
t = tarfile.open(self.get_arch_name())
|
||||
for x in t:
|
||||
t.extract(x)
|
||||
finally:
|
||||
if t:
|
||||
t.close()
|
||||
t.close()
|
||||
|
||||
cfg = []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user