diff --git a/src/sage/combinat/partition.py b/src/sage/combinat/partition.py index 6356150783a..b83f7a50d5f 100644 --- a/src/sage/combinat/partition.py +++ b/src/sage/combinat/partition.py @@ -642,7 +642,7 @@ def __init__(self, parent, mu): else: raise ValueError("%s is not a valid partition"%repr(mu)) - def _repr_(self): + def _repr_(self, compact=None): r""" Return a string representation of ``self`` depending on :meth:`Partitions.global_options`. @@ -706,6 +706,10 @@ def _repr_(self): sage: Partitions.global_options.reset() """ + if compact is not None: + from sage.misc.superseded import deprecation + deprecation(16933, 'compact argument is deprecated.') + return self.parent().global_options.dispatch(self, '_repr_', 'display') def _ascii_art_(self): diff --git a/src/sage/combinat/partition_tuple.py b/src/sage/combinat/partition_tuple.py index 2e807f20c25..f6daac7adf0 100644 --- a/src/sage/combinat/partition_tuple.py +++ b/src/sage/combinat/partition_tuple.py @@ -484,7 +484,7 @@ def __len__(self): """ return self.level() - def _repr_(self): + def _repr_(self, compact=None): """ Return a string representation of ``self`` depending on :meth:`PartitionTuples.global_options`. @@ -526,6 +526,10 @@ def _repr_(self): 2, 1 | 3, 2 | 1^3 sage: PartitionTuples.global_options.reset() """ + if compact is not None: + from sage.misc.superseded import deprecation + deprecation(16933, 'compact argument is deprecated.') + return self.parent().global_options.dispatch(self, '_repr_', 'display') def _repr_diagram(self):