~facundo/enjuewemela/trunk

« back to all changes in this revision

Viewing changes to enjuewemela/config_schema.py

  • Committer: Facundo Batista
  • Date: 2013-04-12 17:19:18 UTC
  • mfrom: (92.1.15 trunk)
  • Revision ID: facundo@taniquetil.com.ar-20130412171918-u3avu731loa4zfv6
Merged remote trunk in.

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