diff options
author | emkael <emkael@tlen.pl> | 2024-01-17 23:24:46 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2024-01-17 23:24:46 +0100 |
commit | f9c6c4341e1a52190c811c1eda6a1df9136901b9 (patch) | |
tree | 9b0057c9e8e4d3f7b5dd45d3d5f4b70c7c536b9f | |
parent | 62ee2f3e192a868087f8fc9fd949005aa27add72 (diff) |
Ignoring commented out SQD lines
-rw-r--r-- | squaredeal/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/squaredeal/__init__.py b/squaredeal/__init__.py index 8faeb71..0e445f6 100644 --- a/squaredeal/__init__.py +++ b/squaredeal/__init__.py @@ -65,6 +65,8 @@ class SquareDeal(object): with open(sqdpath, encoding=encoding) as sqdfile: contents = [line.strip() for line in sqdfile.readlines()] for idx, line in enumerate(contents): + if line.startswith('#'): + continue linetype, _, linecontents = line.partition(' ') if linetype == 'TN': self.name = linecontents |