summaryrefslogtreecommitdiff
path: root/networkx/utils
diff options
context:
space:
mode:
authorRoss Barnowski <rossbar@berkeley.edu>2021-08-07 17:22:44 +0300
committerGitHub <noreply@github.com>2021-08-07 16:22:44 +0200
commit906bf82ab7edf0ad4cea067b3be5a4e1cba356a3 (patch)
tree4b82aea1cd74e073c75e187d73b01e012524244c /networkx/utils
parentf010fe36c71e8a9163e43966254dc1c680662d21 (diff)
downloadnetworkx-906bf82ab7edf0ad4cea067b3be5a4e1cba356a3.tar.gz
Minor docstring cleanup to fix sphinx warning. (#5010)
Diffstat (limited to 'networkx/utils')
-rw-r--r--networkx/utils/decorators.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/networkx/utils/decorators.py b/networkx/utils/decorators.py
index 1802055a..f615bb04 100644
--- a/networkx/utils/decorators.py
+++ b/networkx/utils/decorators.py
@@ -128,11 +128,11 @@ def open_file(path_arg, mode="r"):
pass
@open_file(1,"w")
- def write_function(G, pathname="graph.dot")
+ def write_function(G, pathname="graph.dot"):
pass
@open_file("pathname","w")
- def write_function(G, pathname="graph.dot")
+ def write_function(G, pathname="graph.dot"):
pass
@open_file("path", "w+")
@@ -146,7 +146,7 @@ def open_file(path_arg, mode="r"):
specified as a string, but it does not handle the situation when the
function wants to accept a default of None (and then handle it).
- Here is an example of how to handle this case:
+ Here is an example of how to handle this case::
@open_file("path")
def some_function(arg1, arg2, path=None):