From 797971a93a7e952a6ca92b7a618665a21d61e339 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 9 Nov 2016 09:31:44 -0500 Subject: [PATCH] Fix some pylint warnings. --- dunshire/games.py | 2 +- test/symmetric_linear_game_test.py | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/dunshire/games.py b/dunshire/games.py index 130176b..b27be52 100644 --- a/dunshire/games.py +++ b/dunshire/games.py @@ -997,7 +997,7 @@ class SymmetricLinearGame: # makes the most sense to just use that, even if it means we # can't test the fact that p1_value/p2_value are close to the # payoff. - payoff = self.payoff(p1_optimal,p2_optimal) + payoff = self.payoff(p1_optimal, p2_optimal) return Solution(payoff, p1_optimal, p2_optimal) diff --git a/test/symmetric_linear_game_test.py b/test/symmetric_linear_game_test.py index f5b48f4..04b8545 100644 --- a/test/symmetric_linear_game_test.py +++ b/test/symmetric_linear_game_test.py @@ -4,14 +4,13 @@ Unit tests for the :class:`SymmetricLinearGame` class. from unittest import TestCase -from dunshire.cones import NonnegativeOrthant from dunshire.games import SymmetricLinearGame -from dunshire.matrices import eigenvalues_re, inner_product, norm +from dunshire.matrices import eigenvalues_re, inner_product from dunshire import options -from .randomgen import (RANDOM_MAX, random_icecream_game, - random_ll_icecream_game, random_ll_orthant_game, - random_nn_scaling, random_orthant_game, - random_positive_orthant_game, random_translation) +from .randomgen import (random_icecream_game, random_ll_icecream_game, + random_ll_orthant_game, random_nn_scaling, + random_orthant_game, random_positive_orthant_game, + random_translation) # Tell pylint to shut up about the large number of methods. -- 2.44.2