~jamesodhunt/ubuntu/wily/ubuntu-core-upgrader/call-upgrader-directly

« back to all changes in this revision

Viewing changes to ubuntucoreupgrader/upgrader.py

mergedĀ lp:~jamesodhunt/ubuntu/vivid/ubuntu-core-upgrader/add-functional-tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1455
1455
        tar.extract(path=tmpdir, member=tar.getmember(file))
1456
1456
 
1457
1457
        path = os.path.join(tmpdir, file)
1458
 
        lines = [line.rstrip() for line in open(path, 'r')]
 
1458
 
 
1459
        lines = []
 
1460
 
 
1461
        with open(path, 'r') as f:
 
1462
            lines = f.readlines()
 
1463
 
 
1464
        lines = [line.rstrip() for line in lines]
1459
1465
 
1460
1466
        shutil.rmtree(tmpdir)
1461
1467