From 609c0db87b6a49564139d4dadbd1ea1314a10770 Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Mon, 20 Jan 2014 17:27:17 +0100 Subject: [PATCH] Keywords already contains 'as' and 'with' --- python/psi-api/src/com/jetbrains/python/PyNames.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/psi-api/src/com/jetbrains/python/PyNames.java b/python/psi-api/src/com/jetbrains/python/PyNames.java index ba5c5b10b2c9..109f70c09c89 100644 --- a/python/psi-api/src/com/jetbrains/python/PyNames.java +++ b/python/psi-api/src/com/jetbrains/python/PyNames.java @@ -440,7 +440,7 @@ public class PyNames { * @return true iff the name is either a keyword or a reserved name, like None. */ public static boolean isReserved(@NonNls String name) { - return Keywords.contains(name) || NONE.equals(name) || "as".equals(name) || "with".equals(name); + return Keywords.contains(name) || NONE.equals(name); } // NOTE: includes unicode only good for py3k