Skip to content

Commit

Permalink
Merge pull request #92 from krcb197/remove_deprecated_warn
Browse files Browse the repository at this point in the history
Remove use of deprecated logging warn, replacing it with warning
  • Loading branch information
krcb197 authored Feb 25, 2023
2 parents acc0041 + d40a856 commit dea4ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/peakrdl_python/templates/addrmap_field.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class {{get_fully_qualified_type_name(node)}}_cls(Field{%- if 'encode' in node.l
return {{get_fully_qualified_enum_type(node.get_property('encode'), top_node.parent, node)}}_enumcls(int_default)
else:
msg = f'reset value {int_default:d} is not within the enumeration for the class'
self._logger.warn(msg)
self._logger.warning(msg)
warnings.warn(msg)
return None

Expand Down

0 comments on commit dea4ff3

Please sign in to comment.