More Python version comparison adjustments

This commit is contained in:
rocky
2021-10-19 16:30:56 -04:00
parent 0645738775
commit 41314f95bb
3 changed files with 5 additions and 3 deletions

View File

@@ -209,7 +209,7 @@ class Python37BaseParser(PythonParser):
stmt ::= async_with_as_stmt
"""
if self.version < 3.8:
if self.version < (3, 8):
rules_str += """
stmt ::= async_with_stmt SETUP_ASYNC_WITH
c_stmt ::= c_async_with_stmt SETUP_ASYNC_WITH