Skip to content
Myr

[svn] Remove useless checks.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Georg Brandl · committed by Georg Brandl · parent 143a07e · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:jinja/_speedups.c+2 added-2 removed
255 unmodified lines
256 goto missing;257258 /* disallow access to internal jinja values */259 name = PyString_AS_STRING(item);260 if (name[0] && name[0] == ':' && name[1] == ':')260 if (name[0] == ':' && name[1] == ':')261 goto missing;262263 while (current) {264 /* GetItemString just builds a new string from "name" again... */
49 unmodified lines
314 else if (!PyString_Check(item))315 return 0;316317 name = PyString_AS_STRING(item);318 if (name[0] && name[0] == ':' && name[1] == ':')318 if (name[0] == ':' && name[1] == ':')319 return 0;320321 while (current) {322 /* XXX: for 2.4 and newer, use PyDict_Contains */
145 unmodified lines