~bladernr/checkbox/fix-wireless-suspend-tests

« back to all changes in this revision

Viewing changes to checkbox/variables.py

  • Committer: Marc Tardif
  • Date: 2011-09-09 19:35:50 UTC
  • mfrom: (1038.1.1 833747-non-ascii)
  • Revision ID: marc.tardif@canonical.com-20110909193550-1m1qcn9na2rujw7j
MergedĀ fromĀ 833747.

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
 
140
140
    def coerce(self, value):
141
141
        if isinstance(value, str):
142
 
            value = unicode(value)
 
142
            value = unicode(value, encoding="utf-8")
143
143
        elif not isinstance(value, unicode):
144
144
            raise ValueError("%r is not a unicode" % (value,))
145
145