Skip to content

Commit 9d0f877

Browse files
committed
SimpleReprMixin is a better name
1 parent d8da2b9 commit 9d0f877

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

coverage/debug.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
class DebugControl(object):
3030
"""Control and output for debugging."""
3131

32-
show_repr_attr = False # For SimpleRepr
32+
show_repr_attr = False # For SimpleReprMixin
3333

3434
def __init__(self, options, output):
3535
"""Configure the options and output file for debugging."""
@@ -171,7 +171,7 @@ def add_pid_and_tid(text):
171171
return text
172172

173173

174-
class SimpleRepr(object):
174+
class SimpleReprMixin(object):
175175
"""A mixin implementing a simple __repr__."""
176176
def __repr__(self):
177177
show_attrs = (

coverage/results.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import collections
77

88
from coverage.backward import iitems
9-
from coverage.debug import SimpleRepr
9+
from coverage.debug import SimpleReprMixin
1010
from coverage.misc import contract, format_lines
1111

1212

@@ -158,7 +158,7 @@ def branch_stats(self):
158158
return stats
159159

160160

161-
class Numbers(SimpleRepr):
161+
class Numbers(SimpleReprMixin):
162162
"""The numerical results of measuring coverage.
163163
164164
This holds the basic statistics from `Analysis`, and is used to roll

coverage/sqldata.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from coverage.backward import iitems
1919
from coverage.data import filename_suffix
20-
from coverage.debug import SimpleRepr
20+
from coverage.debug import SimpleReprMixin
2121
from coverage.files import PathAliases
2222
from coverage.misc import CoverageException, file_be_gone
2323

@@ -60,7 +60,7 @@
6060
"""
6161

6262

63-
class CoverageSqliteData(SimpleRepr):
63+
class CoverageSqliteData(SimpleReprMixin):
6464
def __init__(self, basename=None, suffix=None, warn=None, debug=None):
6565
self._basename = os.path.abspath(basename or ".coverage")
6666
self._suffix = suffix
@@ -405,7 +405,7 @@ def run_infos(self):
405405
return [] # TODO
406406

407407

408-
class Sqlite(SimpleRepr):
408+
class Sqlite(SimpleReprMixin):
409409
def __init__(self, filename, debug):
410410
self.debug = debug if (debug and debug.should('sql')) else None
411411
if self.debug:

0 commit comments

Comments
 (0)