mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-12-24 02:05:12 +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