Skip to content

Commit

Permalink
Merge 0767858 into a59ca51
Browse files Browse the repository at this point in the history
  • Loading branch information
itaa committed Nov 8, 2018
2 parents a59ca51 + 0767858 commit 24c8054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fishbase/fish_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ def find_duplicated_between_dicts(dict1, dict2):
print('--- find_duplicated_between_dicts demo---')
dict1 = {'x':1, 'y':2, 'z':3}
dict2 = {'w':10, 'x':1, 'y':2}
res = find_common_between_dicts(dict1, dict2)
res = find_duplicated_between_dicts(dict1, dict2)
print(res.item)
print(res.key)
print(res.value)
Expand All @@ -1095,7 +1095,7 @@ def find_duplicated_between_dicts(dict1, dict2):
{1}
---
"""
Duplicated_info = namedtuple('duplicated_info', ['item', 'key', 'value'])
Duplicated_info = namedtuple('Duplicated_info', ['item', 'key', 'value'])
duplicated_info = Duplicated_info(set(dict1.items()) & set(dict2.items()),
set(dict1.keys()) & set(dict2.keys()),
set(dict1.values()) & set(dict2.values()))
Expand Down

0 comments on commit 24c8054

Please sign in to comment.