/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/per_versionedfile.py

  • Committer: Martin
  • Date: 2017-05-24 19:44:00 UTC
  • mto: This revision was merged to the branch mainline in revision 6634.
  • Revision ID: gzlist@googlemail.com-20170524194400-ut2d4k62szpyofcm
Run 2to3 map fixer and refactor after

Show diffs side-by-side

added added

removed removed

Lines of Context:
944
944
            return x + '\n'
945
945
 
946
946
        w = self.get_file()
947
 
        w.add_lines('text0', [], map(addcrlf, base))
948
 
        w.add_lines('text1', ['text0'], map(addcrlf, a))
949
 
        w.add_lines('text2', ['text0'], map(addcrlf, b))
 
947
        w.add_lines('text0', [], list(map(addcrlf, base)))
 
948
        w.add_lines('text1', ['text0'], list(map(addcrlf, a)))
 
949
        w.add_lines('text2', ['text0'], list(map(addcrlf, b)))
950
950
 
951
951
        self.log_contents(w)
952
952
 
962
962
        mt.seek(0)
963
963
        self.log(mt.getvalue())
964
964
 
965
 
        mp = map(addcrlf, mp)
 
965
        mp = list(map(addcrlf, mp))
966
966
        self.assertEqual(mt.readlines(), mp)
967
967
 
968
968