From f3e8b2c249d9e63fc8898093664029205d52203f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 5 Jan 2021 09:57:47 +0100 Subject: [PATCH] Exceptions --- README.md | 6 +++--- index.html | 6 +++--- parse.js | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 758e8f4..af8df19 100644 --- a/README.md +++ b/README.md @@ -1427,11 +1427,11 @@ BaseException #### Collections and their exceptions: ```text +-----------+------------+------------+------------+ -| | list | dict | set | +| | List | Set | Dict | +-----------+------------+------------+------------+ -| getitem() | IndexError | KeyError | | | pop() | IndexError | KeyError | KeyError | -| remove() | ValueError | | KeyError | +| getitem() | IndexError | | KeyError | +| remove() | ValueError | KeyError | | | index() | ValueError | | | +-----------+------------+------------+------------+ ``` diff --git a/index.html b/index.html index f32a08d..1ddff78 100644 --- a/index.html +++ b/index.html @@ -1367,11 +1367,11 @@ error_msg = ''.join(traceback.format_exception(

Collections and their exceptions:

┏━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┓
-┃           │    list    │    dict    │    set     ┃
+┃           │    List    │    Set     │    Dict    ┃
 ┠───────────┼────────────┼────────────┼────────────┨
-┃ getitem() │ IndexError │  KeyError  │            ┃
 ┃ pop()     │ IndexError │  KeyError  │  KeyError  ┃
-┃ remove()  │ ValueError │            │  KeyError  ┃
+┃ getitem() │ IndexError │            │  KeyError  ┃
+┃ remove()  │ ValueError │  KeyError  │            ┃
 ┃ index()   │ ValueError │            │            ┃
 ┗━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┛
 
diff --git a/parse.js b/parse.js index e9b3712..458c3ec 100755 --- a/parse.js +++ b/parse.js @@ -229,16 +229,16 @@ const DIAGRAM_7_B = const DIAGRAM_8_A = '+-----------+------------+------------+------------+\n' + - '| | list | dict | set |\n' + + '| | List | Set | Dict |\n' + '+-----------+------------+------------+------------+\n'; const DIAGRAM_8_B = '┏━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┓\n' + - '┃ │ list │ dict │ set ┃\n' + + '┃ │ List │ Set │ Dict ┃\n' + '┠───────────┼────────────┼────────────┼────────────┨\n' + - '┃ getitem() │ IndexError │ KeyError │ ┃\n' + '┃ pop() │ IndexError │ KeyError │ KeyError ┃\n' + - '┃ remove() │ ValueError │ │ KeyError ┃\n' + + '┃ getitem() │ IndexError │ │ KeyError ┃\n' + + '┃ remove() │ ValueError │ KeyError │ ┃\n' + '┃ index() │ ValueError │ │ ┃\n' + '┗━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┛\n';