Skip to content

Commit

Permalink
update izip_dicts->zip_dicts and izip_values->zip_values in exception…
Browse files Browse the repository at this point in the history
… messages
  • Loading branch information
taleinat authored and Suor committed Sep 6, 2021
1 parent 0f36b69 commit 836ae93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions funcy/colls.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def omit(mapping, keys):
def zip_values(*dicts):
"""Yields tuples of corresponding values of several dicts."""
if len(dicts) < 1:
raise TypeError('izip_values expects at least one argument')
raise TypeError('zip_values expects at least one argument')
keys = set.intersection(*map(set, dicts))
for key in keys:
yield tuple(d[key] for d in dicts)
Expand All @@ -260,7 +260,7 @@ def zip_dicts(*dicts):
"""Yields tuples like (key, val1, val2, ...)
for each common key in all given dicts."""
if len(dicts) < 1:
raise TypeError('izip_dicts expects at least one argument')
raise TypeError('zip_dicts expects at least one argument')
keys = set.intersection(*map(set, dicts))
for key in keys:
yield key, tuple(d[key] for d in dicts)
Expand Down

0 comments on commit 836ae93

Please sign in to comment.