Skip to content

Commit 918bafd

Browse files
committed
Python 3 compatibility fix
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 620da4b commit 918bafd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ def token_is_type(token):
11011101
def token_is_any_of(token_types):
11021102
"""Return a callable object that returns whether a token is any of the
11031103
given types `token_types`."""
1104-
is_token_types = map(token_is, token_types)
1104+
is_token_types = tuple(map(token_is, token_types))
11051105

11061106
def token_is_any_of(token):
11071107
return any(check(token) for check in is_token_types)

0 commit comments

Comments
 (0)