[rtems-central commit] specview.py: Fix format

Sebastian Huber sebh at rtems.org
Mon Mar 22 15:45:36 UTC 2021


Module:    rtems-central
Branch:    master
Commit:    d9340375a0b6a9a539996d0024073a5f5026d3fb
Changeset: http://git.rtems.org/rtems-central/commit/?id=d9340375a0b6a9a539996d0024073a5f5026d3fb

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Mar 22 16:44:26 2021 +0100

specview.py: Fix format

---

 specview.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/specview.py b/specview.py
index 9dfbdcf..53bb806 100755
--- a/specview.py
+++ b/specview.py
@@ -137,7 +137,8 @@ def _get_entries(transition_map: TransitionMap,
             tuple(
                 [state]
                 for state in transition_map.map_idx_to_pre_co_states(map_idx)))
-    for post_cond, entry in sorted(entries.items(), key=lambda x: (x[0][0], len(x[1]))):
+    for post_cond, entry in sorted(entries.items(),
+                                   key=lambda x: (x[0][0], len(x[1]))):
         while True:
             last = entry[0]
             combined_entry = [last]
@@ -167,10 +168,9 @@ def _action_list(enabled: List[str], item: Item) -> None:
         if post_cond[0]:
             print(transition_map.skip_idx_to_name(post_cond[0]))
         else:
-            print(
-                ", ".join(
-                    _to_name(transition_map, co_idx, st_idx)
-                    for co_idx, st_idx in enumerate(post_cond[1:])))
+            print(", ".join(
+                _to_name(transition_map, co_idx, st_idx)
+                for co_idx, st_idx in enumerate(post_cond[1:])))
         for row in entry:
             entries = []
             for co_idx, co_states in enumerate(row):



More information about the vc mailing list