Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
remove kwargs in CartesianProduct since not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrenn committed Sep 23, 2015
1 parent f3b1387 commit 4ac4014
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/sage/sets/cartesian_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class CartesianProduct(UniqueRepresentation, Parent):
.. automethod:: _cartesian_product_of_elements
"""
def __init__(self, sets, category, flatten=False, **kwargs):
def __init__(self, sets, category, flatten=False):
r"""
INPUT:
Expand All @@ -77,11 +77,8 @@ def __init__(self, sets, category, flatten=False, **kwargs):
sage: cartesian_product([ZZ, ZZ], blub=None)
Traceback (most recent call last):
...
TypeError: unknown parameters: blub
TypeError: __init__() got an unexpected keyword argument 'blub'
"""
if kwargs:
raise TypeError('unknown parameters: %s' %
', '.join(str(k) for k in kwargs.iterkeys()))
self._sets = tuple(sets)
Parent.__init__(self, category=category)

Expand Down

0 comments on commit 4ac4014

Please sign in to comment.