Skip to content

Commit

Permalink
Update swig/python/codegen/codegen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mondus authored Oct 6, 2023
1 parent a829b73 commit 5524f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swig/python/codegen/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ def _Expr(self, tree):
if isinstance(tree.value.value, str):
return
# catch special case of Python 3.7 Where doc string is a Str and not a Constant
elif sys.version_info < (3,8,0) and isinstance(tree.value, ast.Str):
elif sys.version_info < (3,8,0) and isinstance(tree.value, ast.Str): # num required for python 3.7
return
# otherwise treat like a normal expression
self.fill()
Expand Down

0 comments on commit 5524f78

Please sign in to comment.