Skip to content

Commit

Permalink
made cross python-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelp committed Sep 30, 2016
1 parent 3064fbe commit c4e1d12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions voluptuous/schema_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,11 +615,13 @@ def key_literal(key):

# build a map that takes the key literals to the needed objects
# literal -> Required|Optional|literal
result_key_map = {key_literal(key): key for key in result}
result_key_map = dict()
for key in result:
result_key_map[key_literal(key)] = key

# for each item in the extension schema, replace duplicates
# or add new keys
for key, value in schema.iteritems():
for key, value in iteritems(schema):

# if the key is already in the dictionary, we need to replace it
# transform key to literal before checking presence
Expand Down

0 comments on commit c4e1d12

Please sign in to comment.