Skip to content

Commit d694c2f

Browse files
committed
update URL.remove() docstring
1 parent 92fe746 commit d694c2f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

hyperlink/_url.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,15 +1562,18 @@ def get(self, name):
15621562

15631563
def remove(self, name, value=_UNSET):
15641564
"""Make a new :class:`URL` instance with all occurrences of the query
1565-
parameter *name* removed. No exception is raised if the
1565+
parameter *name* removed, or, if *value* is set, parameters
1566+
matching *name* and *value*. No exception is raised if the
15661567
parameter is not already set.
15671568
15681569
Args:
15691570
name (unicode): The name of the query parameter to remove.
1571+
value (unicode): Optional value to additionally filter
1572+
on. Setting this removes query parameters which match
1573+
both name and value.
15701574
15711575
Returns:
15721576
URL: A new :class:`URL` instance with the parameter removed.
1573-
15741577
"""
15751578
if value is _UNSET:
15761579
nq = [(k, v) for (k, v) in self.query if k != name]

0 commit comments

Comments
 (0)