From ccdc022189e196ed3b19174475f779380b174854 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 2 Jun 2007 10:43:43 +0200 Subject: [PATCH] [svn] Remove useless checks. --HG-- branch : trunk --- jinja/_speedups.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.26.2