Skip to content

Commit aafb538

Browse files
fix: display_name_with_default docstring
Co-authored-by: Kyle McCormick <kyle@axim.org>
1 parent 311fbe2 commit aafb538

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

xblock/core.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -978,11 +978,6 @@ def display_name_with_default(self):
978978
Uses ``display_name`` if it is set and not None. Otherwise, falls back
979979
to a name derived from the block's ``usage_key.block_id`` by replacing
980980
underscores with spaces.
981-
982-
This method avoids direct attribute access and uses ``getattr`` to safely
983-
handle cases where attributes like ``display_name`` or ``usage_key`` may
984-
not be present.
985-
986981
Note:
987982
This method does not perform any escaping. Callers are responsible
988983
for ensuring the returned value is properly escaped where required.

0 commit comments

Comments
 (0)