From: Michael Orlitzky Date: Wed, 9 Nov 2016 14:31:44 +0000 (-0500) Subject: Fix some pylint warnings. X-Git-Tag: 0.1.0~61 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=797971a93a7e952a6ca92b7a618665a21d61e339;p=dunshire.git Fix some pylint warnings. --- 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.