Commits

slug...@gmail.com  committed 5fb7e13

Don't allow extra positional args in ``Page`` constructor.

  • Participants
  • Parent commits 47f7a81

Comments (0)

Files changed (2)

 
   - New function ``deprecate``.
 
+* webhelpers.paginate:
+
+ - Don't allow extra positional args in constructor. The implementation does
+   nothing with them, so it shouldn't allow them.
+
 * webhelpers.pylonslib.flash:
 
   - New argument ``ignore_duplicate`` to prevent adding the same message

File webhelpers/paginate.py

     """
     def __init__(self, collection, page=1, items_per_page=20,
         item_count=None, sqlalchemy_session=None, presliced_list=False,
-        *args, **kwargs):
+        **kwargs):
         """Create a "Page" instance.
 
         Parameters: