Skip to content

Commit daefd53

Browse files
committed
oh python 2.6 does not support dict comprehension
1 parent 27b9d15 commit daefd53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

moban/engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def _apply_template(self, template, data, output):
100100
class Context(object):
101101
def __init__(self, context_dirs):
102102
self.context_dirs = context_dirs
103-
self.__cached_environ_variables = {
104-
key: os.environ[key] for key in os.environ}
103+
self.__cached_environ_variables = dict(
104+
(key, os.environ[key]) for key in os.environ)
105105

106106
def get_data(self, file_name):
107107
data = open_yaml(self.context_dirs, file_name)

0 commit comments

Comments
 (0)