/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/workingtree.py

  • Committer: Jelmer Vernooij
  • Date: 2018-02-17 00:06:35 UTC
  • mto: (6855.3.2 bees)
  • mto: This revision was merged to the branch mainline in revision 6923.
  • Revision ID: jelmer@jelmer.uk-20180217000635-p82hqmv6yt9t3cbl
Format strings are bytes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
423
423
                           _fstat=osutils.fstat):
424
424
        """See Tree.get_file_with_stat."""
425
425
        abspath = self.abspath(path)
426
 
        file_obj = file(abspath, 'rb')
 
426
        file_obj = open(abspath, 'rb')
427
427
        stat_value = _fstat(file_obj.fileno())
428
428
        if filtered and self.supports_content_filtering():
429
429
            filters = self._content_filter_stack(path)
1527
1527
        return self._matchingcontroldir
1528
1528
 
1529
1529
 
1530
 
format_registry.register_lazy("Bazaar Working Tree Format 4 (bzr 0.15)\n",
 
1530
format_registry.register_lazy(b"Bazaar Working Tree Format 4 (bzr 0.15)\n",
1531
1531
    "breezy.bzr.workingtree_4", "WorkingTreeFormat4")
1532
 
format_registry.register_lazy("Bazaar Working Tree Format 5 (bzr 1.11)\n",
 
1532
format_registry.register_lazy(b"Bazaar Working Tree Format 5 (bzr 1.11)\n",
1533
1533
    "breezy.bzr.workingtree_4", "WorkingTreeFormat5")
1534
 
format_registry.register_lazy("Bazaar Working Tree Format 6 (bzr 1.14)\n",
 
1534
format_registry.register_lazy(b"Bazaar Working Tree Format 6 (bzr 1.14)\n",
1535
1535
    "breezy.bzr.workingtree_4", "WorkingTreeFormat6")
1536
 
format_registry.register_lazy("Bazaar-NG Working Tree format 3",
 
1536
format_registry.register_lazy(b"Bazaar-NG Working Tree format 3",
1537
1537
    "breezy.bzr.workingtree_3", "WorkingTreeFormat3")
1538
 
format_registry.set_default_key("Bazaar Working Tree Format 6 (bzr 1.14)\n")
 
1538
format_registry.set_default_key(b"Bazaar Working Tree Format 6 (bzr 1.14)\n")