From: Georg Brandl Date: Sat, 2 Jun 2007 08:43:43 +0000 (+0200) Subject: [svn] Remove useless checks. X-Git-Tag: 2.0rc1~299 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ccdc022189e196ed3b19174475f779380b174854;p=jinja2.git [svn] Remove useless checks. --HG-- branch : trunk --- diff --git a/jinja/_speedups.c b/jinja/_speedups.c index 2a34359..d2aaa36 100644 --- a/jinja/_speedups.c +++ b/jinja/_speedups.c @@ -257,7 +257,7 @@ BaseContext_getitem(BaseContext *self, PyObject *item) /* disallow access to internal jinja values */ name = PyString_AS_STRING(item); - if (name[0] && name[0] == ':' && name[1] == ':') + if (name[0] == ':' && name[1] == ':') goto missing; while (current) { @@ -315,7 +315,7 @@ BaseContext_contains(BaseContext *self, PyObject *item) return 0; name = PyString_AS_STRING(item); - if (name[0] && name[0] == ':' && name[1] == ':') + if (name[0] == ':' && name[1] == ':') return 0; while (current) {