Show More
@@ -167,6 +167,8 b' class lazyremotenamedict(mutablemapping)' | |||
|
167 | 167 | for k, vtup in self.potentialentries.iteritems(): |
|
168 | 168 | yield (k, [bin(vtup[0])]) |
|
169 | 169 | |
|
170 | items = iteritems | |
|
171 | ||
|
170 | 172 | class remotenames(object): |
|
171 | 173 | """ |
|
172 | 174 | This class encapsulates all the remotenames state. It also contains |
@@ -225,7 +225,9 b' if sys.version_info[0] >= 3:' | |||
|
225 | 225 | |
|
226 | 226 | # It changes iteritems/values to items/values as they are not |
|
227 | 227 | # present in Python 3 world. |
|
228 |
elif fn in ('iteritems', 'itervalues') |
|
|
228 | elif (fn in ('iteritems', 'itervalues') and | |
|
229 | not (tokens[i - 1].type == token.NAME and | |
|
230 | tokens[i - 1].string == 'def')): | |
|
229 | 231 | yield t._replace(string=fn[4:]) |
|
230 | 232 | continue |
|
231 | 233 |
General Comments 0
You need to be logged in to leave comments.
Login now