projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40b02fa
)
[svn] Another small issue.
author
Georg Brandl
<georg@python.org>
Sat, 21 Apr 2007 18:49:13 +0000
(20:49 +0200)
committer
Georg Brandl
<georg@python.org>
Sat, 21 Apr 2007 18:49:13 +0000
(20:49 +0200)
--HG--
branch : trunk
jinja/_speedups.c
patch
|
blob
|
history
diff --git
a/jinja/_speedups.c
b/jinja/_speedups.c
index 7718344230658e08a163328f13d8991cd6e14c50..72ebd096cbc565d3e71edf94af8e73ccf22150d8 100644
(file)
--- a/
jinja/_speedups.c
+++ b/
jinja/_speedups.c
@@
-412,7
+412,7
@@
BaseContext_contains(BaseContext *self, PyObject *item)
return 0;
name = PyString_AS_STRING(item);
- if (
strlen(name) >= 2
&& name[0] == ':' && name[1] == ':')
+ if (
name[0]
&& name[0] == ':' && name[1] == ':')
return 0;
while (current) {