~facundo/enjuewemela/trunk

« back to all changes in this revision

Viewing changes to enjuewemela/config_schema.py

  • Committer: facundo at com
  • Date: 2012-11-05 12:14:34 UTC
  • mto: (92.1.15 trunk)
  • mto: This revision was merged to the branch mainline in revision 94.
  • Revision ID: facundo@taniquetil.com.ar-20121105121434-8pdaoelvcu9tq5zp
CodeĀ aesthetics.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
        """Take the value as string, and return the real value."""
25
25
        v_lower = value.lower()
26
26
        if v_lower not in self.values:
27
 
            raise ValueError("Invalid value for option %s (got: %r)" % (
28
 
                                                            self.name, value))
 
27
            m = "Invalid value for option %s (got: %r)" % (self.name, value)
 
28
            raise ValueError(m)
29
29
 
30
30
        return self.values[v_lower]
31
31