Skip to content
Myr

fix docstring and remove redundant parentheses

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Marc Hernandez Cabot · committed by David Lord · parent ab6e630 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • tests:+1 added−1 removed
  • other:+1 added−1 removed

2 files+2 added−2 removed

modified:src/flask/ctx.py+1 added-1 removed
73 unmodified lines
74 """Get the value of an attribute if it is present, otherwise75 set and return a default value. Like :meth:`dict.setdefault`.7677 :param name: Name of attribute to get.78 :param: default: Value to set and return if the attribute is not78 :param default: Value to set and return if the attribute is not79 present.8081 .. versionadded:: 0.1182 """
393 unmodified lines
modified:tests/test_basic.py+1 added-1 removed
1687 unmodified lines
1688 with client:1689 with pytest.raises(AssertionError) as e:1690 client.post("/foo", data={})1691 assert "http://localhost/foo/" in str(e.value)1692 assert ("Make sure to directly send your POST-request to this URL") in str(1692 assert "Make sure to directly send your POST-request to this URL" in str(1693 e.value1694 )16951696 rv = client.get("/foo", data={}, follow_redirects=True)
272 unmodified lines