comparison mercurial/mdiff.py @ 49037:642e31cb55f0

py3: use class X: instead of class X(object): The inheritance from object is implied in Python 3. So this should be equivalent. This change was generated via an automated search and replace. So there may have been some accidental changes. Differential Revision: https://phab.mercurial-scm.org/D12352
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 13:08:28 -0700
parents 6000f5b25c9b
children d44e3c45f0e4
comparison
equal deleted inserted replaced
49036:55d132525155 49037:642e31cb55f0
35 textdiff = bdiff.bdiff 35 textdiff = bdiff.bdiff
36 splitnewlines = bdiff.splitnewlines 36 splitnewlines = bdiff.splitnewlines
37 37
38 38
39 # TODO: this looks like it could be an attrs, which might help pytype 39 # TODO: this looks like it could be an attrs, which might help pytype
40 class diffopts(object): 40 class diffopts:
41 """context is the number of context lines 41 """context is the number of context lines
42 text treats all files as text 42 text treats all files as text
43 showfunc enables diff -p output 43 showfunc enables diff -p output
44 git enables the git extended patch format 44 git enables the git extended patch format
45 nodates removes dates from diff headers 45 nodates removes dates from diff headers