Skip to content

Commit

Permalink
Fixed comma/dots.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnick83 authored Oct 7, 2023
1 parent a8d7431 commit 10108c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dace/frontend/python/newast.py
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ def _parse_value(self, node: Union[ast.Name, NumConstant, ast.Constant]):

if isinstance(node, ast.Name):
return node.id
elif sys.version_info < (3.8) and isinstance(node, ast.Num):
elif sys.version_info < (3, 8) and isinstance(node, ast.Num):
return str(node.n)
elif isinstance(node, ast.Constant):
return str(node.value)
Expand All @@ -1677,7 +1677,7 @@ def _parse_index_as_range(self, node: Union[Index, ast.Tuple]):
:param node: Index node
:return: Range in (from, to, step) format
"""
if sys.version_info < (3.9) and isinstance(node, ast.Index):
if sys.version_info < (3, 9) and isinstance(node, ast.Index):
val = self._parse_value(node.value)
elif isinstance(node, ast.Tuple):
val = self._parse_value(node.elts)
Expand Down

0 comments on commit 10108c7

Please sign in to comment.