commit | 154a9b6d4858325e80af87e7174c66aced334b3b | [log] [tgz] |
---|---|---|
author | Taneli Hukkinen <hukkinj1@users.noreply.github.com> | Fri Jun 04 00:12:57 2021 +0300 |
committer | Taneli Hukkinen <hukkinj1@users.noreply.github.com> | Fri Jun 04 00:23:20 2021 +0300 |
tree | 0e7b71cc5e6421346bdaea2ba527b4d620989ddb | |
parent | a7da759c4d71e537530e0c5ed615f3273807e0ad [diff] |
Remove needless EOF check
diff --git a/tomli/_parser.py b/tomli/_parser.py index 208cea8..00d8297 100644 --- a/tomli/_parser.py +++ b/tomli/_parser.py
@@ -404,10 +404,7 @@ skip_comments_and_array_ws(state) - c = state.try_char() - if not c: - raise TOMLDecodeError("Unclosed array") - if c == "]": + if state.try_char() == "]": state.pos += 1 return array