diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 70d60a73b..d22047cbf 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -25,7 +25,7 @@ jobs: # fails git config --global --add safe.directory $(pwd) pip install pre-commit - pip install pylint==2.12.2 + pip install pylint==2.17.7 pip install flake8 echo "::endgroup::" echo "::group::Run CMake" diff --git a/python/podio/EventStore.py b/python/podio/EventStore.py index d2df33cbe..068027aa4 100644 --- a/python/podio/EventStore.py +++ b/python/podio/EventStore.py @@ -55,8 +55,7 @@ def __init__(self, filenames): def __str__(self): result = "Content:" - for item in self.current_store.getCollectionNames(): - result += f"\n\t{item}" + result += "\n\t".join(n for n in self.current_store.getCollectionNames()) return result def get(self, name):