~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2008-05-12 18:06:07 UTC
  • Revision ID: aaron@aaronbentley.com-20080512180607-dn6a55if3pk4zdju
Update to avoid deprecated API

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
    >>> rm_tree(tree)
79
79
    """
80
80
    try:
81
 
        location = tree.branch.control_files.get_utf8('x-push-data').read()
 
81
        location = tree.branch.control_files.get('x-push-data').read()
 
82
        location = location.decode('utf-8')
82
83
    except NoSuchFile:
83
84
        return None
84
85
    return location.rstrip('\n')