Commit 7bd27a9b authored by Stefan Behnel's avatar Stefan Behnel

allow srctree header commands to be wrapped in triple string quotes to stop...

allow srctree header commands to be wrapped in triple string quotes to stop IDEs from complaining about them
parent 6d394137
......@@ -189,7 +189,8 @@ def unpack_source_tree(tree_file, dir=None):
elif cur_file is not None:
cur_file.write(line)
elif line.strip() and not line.lstrip().startswith('#'):
header.append(line)
if line.strip() not in ('"""', "'''"):
header.append(line)
if cur_file is not None:
cur_file.close()
return dir, ''.join(header)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment