projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
143a07e
)
[svn] Remove useless checks.
author
Georg Brandl
<georg@python.org>
Sat, 2 Jun 2007 08:43:43 +0000
(10:43 +0200)
committer
Georg Brandl
<georg@python.org>
Sat, 2 Jun 2007 08:43:43 +0000
(10:43 +0200)
--HG--
branch : trunk
jinja/_speedups.c
patch
|
blob
|
history
diff --git
a/jinja/_speedups.c
b/jinja/_speedups.c
index 2a34359f6bd8827040d701486330a290bc556194..d2aaa36501a34f979c402a7eb4d28b60dd2f2519 100644
(file)
--- 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) {