Skip to content

Commit

Permalink
Merge pull request #153 from Yelp/remove_set_global_moar
Browse files Browse the repository at this point in the history
Remove global set moar.
  • Loading branch information
asottile committed Oct 3, 2014
2 parents bb72bf1 + 2c27b24 commit 26557af
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Cheetah/Template.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Template(object):
baseclasses.
Instance attributes look like this:
self._CHEETAH__globalSetVars (_CHEETAH__xxx with 2 underscores)
self._CHEETAH__searchList (_CHEETAH__xxx with 2 underscores)
"""

def __init__(
Expand Down Expand Up @@ -92,10 +92,8 @@ def __init__(
'but got {0}'.format(type(searchList))
)

self._CHEETAH__globalSetVars = {}

# create our own searchList
self._CHEETAH__searchList = [self._CHEETAH__globalSetVars, self]
self._CHEETAH__searchList = [self]
if searchList is not None:
self._CHEETAH__searchList.extend(list(searchList))

Expand Down

0 comments on commit 26557af

Please sign in to comment.