From 5998f948fe0476af313d2878960d79a34397ffeb Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Sun, 29 Mar 2020 11:05:44 +0200 Subject: [PATCH] make yapf --- km3io/tools.py | 4 ++-- tests/test_tools.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/km3io/tools.py b/km3io/tools.py index 8def8ee..16d8191 100644 --- a/km3io/tools.py +++ b/km3io/tools.py @@ -57,8 +57,8 @@ class Branch: def _initialise_keys(self): """Create the keymap and instance attributes for branch keys""" # TODO: this could be a cached property - keys = set(k.decode('utf-8') for k in self._branch.keys()) - set( - self._mapper.exclude) + keys = set(k.decode('utf-8') + for k in self._branch.keys()) - set(self._mapper.exclude) self._keymap = { **{self._mapper.attrparser(k): k for k in keys}, diff --git a/tests/test_tools.py b/tests/test_tools.py index 4506869..bceb4a0 100644 --- a/tests/test_tools.py +++ b/tests/test_tools.py @@ -3,6 +3,7 @@ import unittest from km3io.tools import _to_num, cached_property + class TestToNum(unittest.TestCase): def test_to_num(self): self.assertEqual(10, _to_num("10")) -- GitLab