Skip to content

Commit

Permalink
gyp: list(dict) so we can del dict(key) while iterating
Browse files Browse the repository at this point in the history
Fixes #1998
  • Loading branch information
cclauss authored Dec 31, 2019
1 parent 26cd6ea commit 403ecb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gyp/pylib/gyp/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -2286,7 +2286,7 @@ def SetUpConfigurations(target, target_dict):
merged_configurations[configuration])

# Now drop all the abstract ones.
for configuration in target_dict['configurations'].keys():
for configuration in list(target_dict['configurations']):
old_configuration_dict = target_dict['configurations'][configuration]
if old_configuration_dict.get('abstract'):
del target_dict['configurations'][configuration]
Expand Down

0 comments on commit 403ecb5

Please sign in to comment.