--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/checker.py Tue Jul 09 19:08:24 2019 +0200 +++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/checker.py Thu Jul 11 19:10:14 2019 +0200 @@ -1152,7 +1152,8 @@ self.scopeStack = [self.scopeStack[0]] node_offset = self.offset or (0, 0) self.pushScope(DoctestScope) - self.addBinding(None, Builtin('_')) + if '_' not in self.scopeStack[0]: + self.addBinding(None, Builtin('_')) for example in examples: try: tree = ast.parse(example.source, "<doctest>") @@ -1698,4 +1699,4 @@ # -# eflag: noqa = M702 \ No newline at end of file +# eflag: noqa = M702