Skip to content
Myr

[svn] fixed 2 things, broke non-cached template loading :D

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

--HG-- branch : trunk

authored by Benjamin Wiegand · committed by Benjamin Wiegand · parent 2842f5a · Browse files · 1 file+11 added−3 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+11 added−3 removed

  • other:+11 added−3 removed

1 file+11 added−3 removed

modified:jinja/utils.py+11 added-3 removed
85 unmodified lines
86 lead, middle, trail = match.groups()87 if middle.startswith('www.') or (88 '@' not in middle and89 not middle.startswith('http://') and90 len(middle) > 0 and 90 len(middle) > 0 and91 middle[0] in string.letters + string.digits and (92 middle.endswith('.org') or93 middle.endswith('.net') or94 middle.endswith('.com')
159 unmodified lines
254 >>> cache['B'] = 1255 >>> cache['C'] = 2256 >>> len(cache)257 3258 258259 If we now access 'A' again it has a higher priority than B::260261 >>> cache['A']262 0
37 unmodified lines
300 pop = self._queue.pop301 self._popleft = lambda: pop(0)302 # alias all queue methods for faster lookup303 self._pop = self._queue.pop304 self._remove = self._queue.remove304305 # XXX: Is this good? Didn't find another sollution306 def remove_by_value(value):307 for i, v in enumerate(self._queue):308 if v == value:309 self._queue.__delitem__(i)310 break311312 self._remove = remove_by_value313 self._append = self._queue.append314315 def copy(self):316 rv = CacheDict(self.capacity)
63 unmodified lines