From 9271133a2213b8102cb85a85fb120085a7d99262 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 8 Dec 2010 23:25:46 +0100 Subject: [PATCH] slight scanner C code simplification --- Cython/Compiler/Scanning.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/Scanning.py b/Cython/Compiler/Scanning.py index ff719ca6..232e82ea 100644 --- a/Cython/Compiler/Scanning.py +++ b/Cython/Compiler/Scanning.py @@ -360,10 +360,10 @@ class PyrexScanner(Scanner): if sy == IDENT: if systring in self.keywords: if systring == u'print' and print_function in self.context.future_directives: - self.keywords.remove('print') + self.keywords.discard('print') systring = EncodedString(systring) elif systring == u'exec' and self.context.language_level >= 3: - self.keywords.remove('exec') + self.keywords.discard('exec') systring = EncodedString(systring) else: sy = systring -- 2.26.2