Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3 from snh/maplowercase

Modified map to lower case input keys.
  • Loading branch information...
commit 85be6b1a789bbad0c815d52d5d63494f62eb069e 2 parents 6e47eeb + cdb61b4
@kennethreitz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 env.py
View
4 env.py
@@ -55,13 +55,13 @@ def prefix(prefix):
def map(**kwargs):
"""Returns a dictionary of the given keyword arguments mapped to their
- values from the environment.
+ values from the environment, with input keys lower cased.
"""
d = {}
e = lower_dict(environ.copy())
for k, v in kwargs.iteritems():
- d[k] = e.get(v)
+ d[k] = e.get(v.lower())
return d
Please sign in to comment.
Something went wrong with that request. Please try again.