diff --git a/doc/tutorial/machine_learning_map/pyparsing.py b/doc/tutorial/machine_learning_map/pyparsing.py index a0f4a66c7291e..0418cf2b51528 100644 --- a/doc/tutorial/machine_learning_map/pyparsing.py +++ b/doc/tutorial/machine_learning_map/pyparsing.py @@ -3842,7 +3842,7 @@ def parseImpl( self, instring, loc, doActions=True ): try_not_ender(instring, loc) loc, tokens = self_expr_parse( instring, loc, doActions, callPreParse=False ) try: - hasIgnoreExprs = (not not self.ignoreExprs) + hasIgnoreExprs = bool(self.ignoreExprs) while 1: if check_ender: try_not_ender(instring, loc)