Keywords already contains 'as' and 'with'

This commit is contained in:
Dmitry Trofimov
2014-01-20 17:27:17 +01:00
parent 4d1ca37c01
commit 609c0db87b
@@ -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