Skip to content

Commit

Permalink
- [bug] Change default for compile()->reserved_names
Browse files Browse the repository at this point in the history
  from tuple to frozenset, as this is expected to be
  a set by default.  [ticket:208]
  • Loading branch information
zzzeek committed Feb 15, 2013
1 parent b15b13a commit b809f95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
0.7.4
- [bug] Change default for compile()->reserved_names
from tuple to frozenset, as this is expected to be
a set by default. [ticket:208]

- [feature] Code has been reworked to support Python 2.4->
Python 3.xx in place. 2to3 no longer needed.

Expand Down
2 changes: 1 addition & 1 deletion mako/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def compile(node,
disable_unicode=False,
strict_undefined=False,
enable_loop=True,
reserved_names=()):
reserved_names=frozenset()):

"""Generate module source code given a parsetree node,
uri, and optional source filename"""
Expand Down

0 comments on commit b809f95

Please sign in to comment.