summaryrefslogtreecommitdiff
path: root/networkx/exception.py
diff options
context:
space:
mode:
authorDan Schult <dschult@colgate.edu>2018-01-10 18:10:02 -0500
committerGitHub <noreply@github.com>2018-01-10 18:10:02 -0500
commitadd6a734f7fe50c8d27f2fcf9814e485135c4fd4 (patch)
tree1767d3bf868b0a4d7d9500dffb67784e60d4ef18 /networkx/exception.py
parent524298cc1cfb78427ac39dcac5d77ca697048d40 (diff)
downloadnetworkx-add6a734f7fe50c8d27f2fcf9814e485135c4fd4.tar.gz
change variable names to avoid kwargs clobber (#2824)
I didn't change functions defined in tests. I also left drawing routines as is at least for now. Addresses #1582 Fixes #1583
Diffstat (limited to 'networkx/exception.py')
-rw-r--r--networkx/exception.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/networkx/exception.py b/networkx/exception.py
index 594db209..6deb5039 100644
--- a/networkx/exception.py
+++ b/networkx/exception.py
@@ -133,6 +133,6 @@ class PowerIterationFailedConvergence(ExceededMaxIterations):
def __init__(self, num_iterations, *args, **kw):
msg = 'power iteration failed to converge within {} iterations'
- msg = msg.format(num_iterations)
+ exception_message = msg.format(num_iterations)
superinit = super(PowerIterationFailedConvergence, self).__init__
- superinit(self, msg, *args, **kw)
+ superinit(self, exception_message, *args, **kw)