Skip to content

Commit

Permalink
replace ast.Str with ast.Constant (#1007)
Browse files Browse the repository at this point in the history
* replace ast.Str with ast.Constant

* add changelog
  • Loading branch information
braingram authored Dec 6, 2023
1 parent f4d04b7 commit 39d5f07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ General
-------

- Remove jwst pub and add roman tvac to submission list. [#1018]
- Replaced deprecated ``ast.Str`` with ``ast.Constant`` [#1007]

11.17.13 (2023-12-01)
====================
Expand Down
2 changes: 1 addition & 1 deletion crds/core/mapping_verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def visit_Assign(self, node):
"Invalid 'header' or 'selector' definition")
self.assert_(node, node.targets[0].id in ["header","selector","comment"],
"Only define 'header' or 'selector' or 'comment' sections")
self.assert_(node, isinstance(node.value, (ast.Call, ast.Dict, ast.Str)),
self.assert_(node, isinstance(node.value, (ast.Call, ast.Dict, ast.Constant)),
"Section value must be a selector call or dictionary or string")
self.generic_visit(node)

Expand Down

0 comments on commit 39d5f07

Please sign in to comment.