More pylint 2 fixes (#15565)

## Description:

More fixes flagged by pylint 2 that don't hurt to have before the actual pylint 2 upgrade (which I'll submit soon).

## Checklist:
  - [ ] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
This commit is contained in:
Ville Skyttä 2018-07-20 11:45:20 +03:00 committed by Andrey
parent ea18e06b08
commit 2f7b79764a
242 changed files with 284 additions and 284 deletions

View file

@ -221,7 +221,7 @@ class TestUtil(unittest.TestCase):
def test_throttle_per_instance(self):
"""Test that the throttle method is done per instance of a class."""
class Tester(object):
class Tester:
"""A tester class for the throttle."""
@util.Throttle(timedelta(seconds=1))
@ -234,7 +234,7 @@ class TestUtil(unittest.TestCase):
def test_throttle_on_method(self):
"""Test that throttle works when wrapping a method."""
class Tester(object):
class Tester:
"""A tester class for the throttle."""
def hello(self):
@ -249,7 +249,7 @@ class TestUtil(unittest.TestCase):
def test_throttle_on_two_method(self):
"""Test that throttle works when wrapping two methods."""
class Tester(object):
class Tester:
"""A test class for the throttle."""
@util.Throttle(timedelta(seconds=1))