From 1e3780b069f12f55b85c8a02bd058d48edd847fd Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 10 Feb 2022 21:31:52 +0100 Subject: [PATCH] shortened --- python/damask/_table.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/damask/_table.py b/python/damask/_table.py index 1572c4f76..3878e5404 100644 --- a/python/damask/_table.py +++ b/python/damask/_table.py @@ -254,10 +254,8 @@ class Table: f.seek(0) comments = [] - line = f.readline().strip() - while line.startswith('#'): + while (line := f.readline().strip()).startswith('#'): comments.append(line.lstrip('#').strip()) - line = f.readline().strip() labels = line.split() shapes = {}