]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - src/dunshire/errors.py
Locally disable another pylint warning to get clean again.
[dunshire.git] / src / dunshire / errors.py
index 4e292acd5fe57258c9fe0c0f835476aca98ac53a..020186475b2a920f8425ffe0be76b3a27625de85 100644 (file)
@@ -70,7 +70,8 @@ class GameUnsolvableException(Exception):
        ...      'dual objective': 1.0,
        ...      'primal objective': None,
        ...      'gap': None,
-       ...      'residual as primal infeasibility certificate': 3.986246886102996e-09}
+       ...      'residual as primal infeasibility certificate':
+       ...          3.986246886102996e-09}
        >>> print(GameUnsolvableException(d))
        Solution failed with result "primal infeasible."
        CVXOPT returned:
@@ -117,5 +118,8 @@ class GameUnsolvableException(Exception):
         tpl = 'Solution failed with result "{:s}."\n' \
               'CVXOPT returned:\n  {!s}'
         cvx_lines = _pretty_format_dict(self._solution_dict).splitlines()
-        cvx_str = '\n  '.join(cvx_lines) # Indent the whole dict by two spaces.
+
+        # Indent the whole dict by two spaces.
+        cvx_str = '\n  '.join(cvx_lines)
+
         return tpl.format(self._solution_dict['status'], cvx_str)