~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-02 14:08:26 UTC
  • mfrom: (3388.2.3 controlfiles)
  • Revision ID: pqm@pqm.ubuntu.com-20080502140826-nhg73h31i9viu175
(mbp) deprecate LocableFiles.get_utf8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1720
1720
        # TODO: Maybe delete old location files?
1721
1721
        # URLs should never be unicode, even on the local fs,
1722
1722
        # FIXUP this and get_parent in a future branch format bump:
1723
 
        # read and rewrite the file, and have the new format code read
1724
 
        # using .get not .get_utf8. RBC 20060125
 
1723
        # read and rewrite the file. RBC 20060125
1725
1724
        if url is not None:
1726
1725
            if isinstance(url, unicode):
1727
1726
                try: 
1786
1785
 
1787
1786
    def get_bound_location(self):
1788
1787
        try:
1789
 
            return self.control_files.get_utf8('bound').read()[:-1]
 
1788
            return self._transport.get_bytes('bound')[:-1]
1790
1789
        except errors.NoSuchFile:
1791
1790
            return None
1792
1791