graphite-project / carbon

Unnecessary None provided as default PTC-W0039
Anti-pattern
Minor
4 years ago4 years old
None as default value is redundant
 96  @classmethod
 97  def build(cls, root_service):
 98    plugin_up = cls.plugin_name.upper()
 99    interface = settings.get('%s_RECEIVER_INTERFACE' % plugin_up, None)100    port = int(settings.get('%s_RECEIVER_PORT' % plugin_up, 0))
101    protocol = cls
102