Mercurial > hg > orthanc-tests
comparison Plugins/Worklists/Run.py @ 636:685022ee236c
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Apr 2024 18:44:09 +0200 |
parents | 88539de02bcc |
children | 0dc47e4975dd |
comparison
equal
deleted
inserted
replaced
635:88539de02bcc | 636:685022ee236c |
---|---|
141 if not isQuery: | 141 if not isQuery: |
142 tag = as_ascii[4:13].lower() | 142 tag = as_ascii[4:13].lower() |
143 if not tag in ignoreTags: | 143 if not tag in ignoreTags: |
144 line_without_comment = re.sub(b'\s*#.*', b'', line) | 144 line_without_comment = re.sub(b'\s*#.*', b'', line) |
145 line_without_comment = line_without_comment.replace(b'\0', b'') | 145 line_without_comment = line_without_comment.replace(b'\0', b'') |
146 current.append(line_without_comment) | 146 current.append(line_without_comment[4:]) |
147 | 147 |
148 if len(current) > 0: | 148 if len(current) > 0: |
149 answers.append(current) | 149 answers.append(current) |
150 | 150 |
151 return answers | 151 return answers |