Commit 006b0cce8932cde53a3818560768725dda01ba68
1 parent
5c984078
Simplify error message in delete_from_dictionary()
Error message generation is now simpler. The resulting message is cleaner as well.
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -595,7 +595,7 @@ def compare_rationale_types(type1, type2): | @@ -595,7 +595,7 @@ def compare_rationale_types(type1, type2): | ||
| 595 | def delete_from_dictionary(variable, path): | 595 | def delete_from_dictionary(variable, path): |
| 596 | if not type(path) in STR_TYPES: | 596 | if not type(path) in STR_TYPES: |
| 597 | raise TypeError('path must be one of: ' + | 597 | raise TypeError('path must be one of: ' + |
| 598 | - str([x.__name__ for x in STR_TYPES])) | 598 | + str(STR_TYPES)) |
| 599 | return xpathdelete(variable, path, separator='.') | 599 | return xpathdelete(variable, path, separator='.') |
| 600 | 600 | ||
| 601 | 601 |
Please
register
or
login
to post a comment