mercurial/mdiff.py
changeset 44470 9d2b2df2c2ba
parent 43554 9f70512ae2cf
child 45154 10f48720ef95
equal deleted inserted replaced
44469:ff72bd52d56a 44470:9d2b2df2c2ba
    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