[go: nahoru, domu]

Skip to content

Commit

Permalink
Removed unused exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
awwalm committed Jun 18, 2023
1 parent e72fe12 commit 4466df5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Goodrich/Chapter7/doubly_linked_list.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
"""Code Fragment 7.11/.12: A Python Node class for use in a doubly linked list."""


class EmptyError(Exception):
...


class _DoublyLinkedBase:
"""A base class providing a doubly linked list representation."""

Expand Down Expand Up @@ -43,7 +39,7 @@ def __prev(self, value):
def __next(self, value):
self._next = value

# Doubly Linked Base methods ----------------------------------------------------------
# _DoublyLinkedBase methods ------------------------------------------------------------
def __init__(self):
"""Create an empty list."""
self._header: _DoublyLinkedBase._Node = self._Node(None, None, None)
Expand Down

0 comments on commit 4466df5

Please sign in to comment.