From 67d2993339cb81ff61509c57807df77dde436a3d Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 3 May 2015 12:59:21 +1200 Subject: Lower-case rather than upper-case to canonicalize names Marginally less finicky --- libpathod/language/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpathod') diff --git a/libpathod/language/base.py b/libpathod/language/base.py index 351c9a4b..41855da3 100644 --- a/libpathod/language/base.py +++ b/libpathod/language/base.py @@ -292,12 +292,12 @@ class OptionsOrValue(_Component): """ preamble = "" def __init__(self, value): - # If it's a string, we were passed one of the options, so we upper-case + # If it's a string, we were passed one of the options, so we lower-case # it to be canonical. The user can specify a different case by using a # string value literal. self.option_used = False if isinstance(value, basestring): - value = TokValueLiteral(value.upper()) + value = TokValueLiteral(value.lower()) self.option_used = True self.value = value -- cgit v1.2.3