~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Vincent Ladeuil
  • Date: 2011-02-17 17:51:13 UTC
  • mto: This revision was merged to the branch mainline in revision 5684.
  • Revision ID: v.ladeuil+lp@free.fr-20110217175113-vu30afh39laxgm34
Fix failing tests and refuse to interpolate dicts (we don't want to *support* dicts).

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
        if interpolate:
327
327
            if isinstance(value, list):
328
328
                value = self._interpolate_list(value)
 
329
            elif isinstance(value, dict):
 
330
                raise ValueError('Dicts do not support interpolation')
329
331
            else:
330
332
                value = self._interpolate_string(value)
331
333
        return value