Show More
@@ -87,7 +87,7 b' class hybrid(wrapped):' | |||||
87 | self._gen = gen # generator or function returning generator |
|
87 | self._gen = gen # generator or function returning generator | |
88 | self._values = values |
|
88 | self._values = values | |
89 | self._makemap = makemap |
|
89 | self._makemap = makemap | |
90 | self.joinfmt = joinfmt |
|
90 | self._joinfmt = joinfmt | |
91 | self.keytype = keytype # hint for 'x in y' where type(x) is unresolved |
|
91 | self.keytype = keytype # hint for 'x in y' where type(x) is unresolved | |
92 |
|
92 | |||
93 | def itermaps(self, context): |
|
93 | def itermaps(self, context): | |
@@ -97,7 +97,7 b' class hybrid(wrapped):' | |||||
97 |
|
97 | |||
98 | def join(self, context, mapping, sep): |
|
98 | def join(self, context, mapping, sep): | |
99 | # TODO: switch gen to (context, mapping) API? |
|
99 | # TODO: switch gen to (context, mapping) API? | |
100 | return joinitems((self.joinfmt(x) for x in self._values), sep) |
|
100 | return joinitems((self._joinfmt(x) for x in self._values), sep) | |
101 |
|
101 | |||
102 | def show(self, context, mapping): |
|
102 | def show(self, context, mapping): | |
103 | # TODO: switch gen to (context, mapping) API? |
|
103 | # TODO: switch gen to (context, mapping) API? |
General Comments 0
You need to be logged in to leave comments.
Login now