allow srctree header commands to be wrapped in triple string quotes to stop IDEs...
authorStefan Behnel <stefan_ml@behnel.de>
Sat, 10 Aug 2013 15:11:58 +0000 (17:11 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 10 Aug 2013 15:11:58 +0000 (17:11 +0200)
Cython/TestUtils.py

index 71032d6..c3c4dc1 100644 (file)
@@ -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)