Class 'CarbonServerProtocol' inherits from object, can be safely removed from bases in python3
90 self._port.stopListening()
91
92
93class CarbonServerProtocol(with_metaclass(PluginRegistrar, object)): 94 plugins = {}
95
96 @classmethod
Description
The class is inheriting from object
, which is implicit under Python 3 , hence can be safely removed from bases.
Not preferred:
class Foo(object):
"""Foo bar baz"""
Preferred:
class Foo:
"""Foo bar baz"""