Skip to content

Commit 6d2d317

Browse files
authored
Merge pull request #2581 from kamil-certat/fix_codestyle
Fix code style after upgrading pycodestyle
2 parents ddc901e + 428da91 commit 6d2d317

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

intelmq/bin/intelmqctl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ def list_queues(self, non_zero=False, count=False):
701701
pipeline = PipelineFactory.create(logger=self._logger, pipeline_args=self._parameters.__dict__)
702702
pipeline.set_queues(None, "source")
703703
pipeline.connect()
704-
source_queues, destination_queues, internal_queues,\
704+
source_queues, destination_queues, internal_queues, \
705705
all_queues = self.get_queues(with_internal_queues=pipeline.has_internal_queues)
706706

707707
counters = pipeline.count_queued_messages(*all_queues)

intelmq/lib/message.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def __eq__(self, other: dict) -> bool:
497497
"""
498498
dict_eq = super().__eq__(other)
499499
if dict_eq and issubclass(type(other), Message):
500-
type_eq = type(self) == type(other)
500+
type_eq = type(self) is type(other)
501501
harm_eq = self.harmonization_config == other.harmonization_config if hasattr(other, 'harmonization_config') else False
502502
if type_eq and harm_eq:
503503
return True

0 commit comments

Comments
 (0)