Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Makes Pylint happier #90

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make pylint happier about map_input.py
  • Loading branch information
jbarnoud committed Jun 19, 2018
commit d24d3c866a29702c3966da1e4709259cdf7a285d
6 changes: 5 additions & 1 deletion vermouth/map_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,13 @@ def read_mapping_directory(directory):
except IOError:
raise IOError('An error occured while reading "{}".'.format(path))
for from_ff in all_from_ff:
to_ff = None
for to_ff in all_to_ff:
mappings[from_ff][to_ff][name] = (mapping, weights, extra)
mappings[from_ff][to_ff] = dict(mappings[from_ff][to_ff])
if to_ff is not None:
# If all_to_ff is empty, then to_ff will not be redefined by
# the above for loop.
mappings[from_ff][to_ff] = dict(mappings[from_ff][to_ff])
return dict(mappings)


Expand Down