From d11b457ea04ed0ce5248162cc7e49214c0f7880e Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Thu, 28 Feb 2019 16:56:57 +0100 Subject: [PATCH] More pylint warnings in lex.py --- pytools/lex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytools/lex.py b/pytools/lex.py index 2ad9cee..ff9d8a8 100644 --- a/pytools/lex.py +++ b/pytools/lex.py @@ -148,8 +148,8 @@ class LexIterator(object): def raise_parse_error(self, msg): if self.is_at_end(): raise ParseError(msg, self.raw_string, None) - else: - raise ParseError(msg, self.raw_string, self.lexed[self.index]) + + raise ParseError(msg, self.raw_string, self.lexed[self.index]) def expected(self, what_expected): if self.is_at_end(): -- GitLab