equal
deleted
inserted
replaced
89 _(b'diff context lines count must be an integer, not %r') |
89 _(b'diff context lines count must be an integer, not %r') |
90 % pycompat.bytestr(self.context) |
90 % pycompat.bytestr(self.context) |
91 ) |
91 ) |
92 |
92 |
93 def copy(self, **kwargs): |
93 def copy(self, **kwargs): |
94 opts = dict((k, getattr(self, k)) for k in self.defaults) |
94 opts = {k: getattr(self, k) for k in self.defaults} |
95 opts = pycompat.strkwargs(opts) |
95 opts = pycompat.strkwargs(opts) |
96 opts.update(kwargs) |
96 opts.update(kwargs) |
97 return diffopts(**opts) |
97 return diffopts(**opts) |
98 |
98 |
99 |
99 |