aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/language/base.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-05-03 12:59:21 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-05-03 12:59:21 +1200
commit67d2993339cb81ff61509c57807df77dde436a3d (patch)
tree010fe2f43b7839666d061b070504b147b7c91199 /libpathod/language/base.py
parent3f5ec4b73739340891a727a228cefdac727ec882 (diff)
downloadmitmproxy-67d2993339cb81ff61509c57807df77dde436a3d.tar.gz
mitmproxy-67d2993339cb81ff61509c57807df77dde436a3d.tar.bz2
mitmproxy-67d2993339cb81ff61509c57807df77dde436a3d.zip
Lower-case rather than upper-case to canonicalize names
Marginally less finicky
Diffstat (limited to 'libpathod/language/base.py')
-rw-r--r--libpathod/language/base.py4
1 files changed, 2 insertions, 2 deletions
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