Merge pull request #382 from lostbeta/master

Fix version check comparison
This commit is contained in:
R. Bernstein 2022-01-09 14:48:42 -05:00 committed by GitHub
commit 2fda52bf45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,7 +338,7 @@ def customize_for_version36(self, version):
kwargs = kwargs[0]
call_function_ex = node[-1]
assert call_function_ex == "CALL_FUNCTION_EX_KW" or (
self.version >= 3.6 and call_function_ex == "CALL_FUNCTION_EX"
self.version >= (3, 6) and call_function_ex == "CALL_FUNCTION_EX"
)
# FIXME: decide if the below test be on kwargs == 'dict'
if (