~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/bundle_data.py

  • Committer: John Arbash Meinel
  • Date: 2007-04-25 17:49:44 UTC
  • mto: This revision was merged to the branch mainline in revision 2466.
  • Revision ID: john@arbash-meinel.com-20070425174944-mti4294wv55nimd3
Add a test that we properly round-trip unicode properties.
And fix the (unreported) bug :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
                    key = str(property[:-1])
82
82
                    value = ''
83
83
                else:
84
 
                    key = property[:key_end].encode('utf8')
85
 
                    value = property[key_end+2:].encode('utf8')
 
84
                    key = str(property[:key_end])
 
85
                    value = property[key_end+2:]
86
86
                rev.properties[key] = value
87
87
 
88
88
        return rev