/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/plugins/fastimport/marks_file.py

  • Committer: Jelmer Vernooij
  • Date: 2018-06-17 11:15:04 UTC
  • mto: (6973.12.2 python3-k)
  • mto: This revision was merged to the branch mainline in revision 7003.
  • Revision ID: jelmer@jelmer.uk-20180617111504-i2eqvqbtfj5bp0t3
s/file/open.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    """
30
30
    # Check that the file is readable and in the right format
31
31
    try:
32
 
        f = file(filename)
 
32
        f = open(filename)
33
33
    except IOError:
34
34
        warning("Could not import marks file %s - not importing marks",
35
35
            filename)
67
67
    :param revision_ids: dictionary mapping marks -> bzr revision-ids
68
68
    """
69
69
    try:
70
 
        f = file(filename, 'w')
 
70
        f = open(filename, 'w')
71
71
    except IOError:
72
72
        warning("Could not open export-marks file %s - not exporting marks",
73
73
            filename)