Show More
@@ -653,17 +653,17 b' def diffstat(tmpl, ctx, statgen, parity)' | |||||
653 |
|
653 | |||
654 | class sessionvars(object): |
|
654 | class sessionvars(object): | |
655 | def __init__(self, vars, start='?'): |
|
655 | def __init__(self, vars, start='?'): | |
656 | self.start = start |
|
656 | self._start = start | |
657 | self.vars = vars |
|
657 | self._vars = vars | |
658 | def __getitem__(self, key): |
|
658 | def __getitem__(self, key): | |
659 | return self.vars[key] |
|
659 | return self._vars[key] | |
660 | def __setitem__(self, key, value): |
|
660 | def __setitem__(self, key, value): | |
661 | self.vars[key] = value |
|
661 | self._vars[key] = value | |
662 | def __copy__(self): |
|
662 | def __copy__(self): | |
663 | return sessionvars(copy.copy(self.vars), self.start) |
|
663 | return sessionvars(copy.copy(self._vars), self._start) | |
664 | def __iter__(self): |
|
664 | def __iter__(self): | |
665 | separator = self.start |
|
665 | separator = self._start | |
666 | for key, value in sorted(self.vars.iteritems()): |
|
666 | for key, value in sorted(self._vars.iteritems()): | |
667 | yield {'name': key, |
|
667 | yield {'name': key, | |
668 | 'value': pycompat.bytestr(value), |
|
668 | 'value': pycompat.bytestr(value), | |
669 | 'separator': separator, |
|
669 | 'separator': separator, |
General Comments 0
You need to be logged in to leave comments.
Login now