Skip to content

Commit

Permalink
Simple tuple expansion is allowed as long as it doesn't have a traili…
Browse files Browse the repository at this point in the history
…ng comma.
  • Loading branch information
jaraco committed Nov 21, 2020
1 parent b0a39b4 commit cc02b11
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions jaraco/itertools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1153,10 +1153,7 @@ def partition_dict(items, key):
"""

def unmatched(pair):
(
test_key,
item,
) = pair
test_key, item = pair
return test_key != key

items_iter = iter(items.items())
Expand Down

0 comments on commit cc02b11

Please sign in to comment.