projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d39413
)
allow srctree header commands to be wrapped in triple string quotes to stop IDEs...
author
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 10 Aug 2013 15:11:58 +0000
(17:11 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 10 Aug 2013 15:11:58 +0000
(17:11 +0200)
Cython/TestUtils.py
patch
|
blob
|
history
diff --git
a/Cython/TestUtils.py
b/Cython/TestUtils.py
index
71032d6
..
c3c4dc1
100644
(file)
--- a/
Cython/TestUtils.py
+++ b/
Cython/TestUtils.py
@@
-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)