~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

(gz) Check committer values are ascii or unicode and fix a test where it was
 not (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
 
116
116
        if committer is None:
117
117
            self._committer = self._config.username()
 
118
        elif not isinstance(committer, unicode):
 
119
            self._committer = committer.decode() # throw if non-ascii
118
120
        else:
119
121
            self._committer = committer
120
122