Commits

Florent Xicluna committed f4ca74f

Replace dict.fromkeys(...) with frozenset(...).

Comments (0)

Files changed (2)

werkzeug/__init__.py

 }
 
 # modules that should be imported when accessed as attributes of werkzeug
-attribute_modules = dict.fromkeys(['exceptions', 'routing', 'script'])
+attribute_modules = frozenset(['exceptions', 'routing', 'script'])
 
 
 object_origins = {}

werkzeug/templates.py

     '__repr__': lambda x: 'Undefined',
     '__str__':  lambda x: ''
 })()
-runtime_vars = dict.fromkeys(('Undefined', '__to_unicode', '__context',
-                              '__write', '__write_many'))
+runtime_vars = frozenset(['Undefined', '__to_unicode', '__context',
+                          '__write', '__write_many'])
 
 
 def call_stmt(func, args, lineno):