summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2015-02-06 11:42:32 +0100
committerStefan Behnel <stefan_ml@behnel.de>2015-02-06 11:42:32 +0100
commitac8d44a41cc6e39270ad074b36bda94ef54adc87 (patch)
tree43b1a8f6c82c1ff7b1c7d25f8a2de80682d76853
parent56dfb1788cdfc3bd867659a75f6b8e8019847f0b (diff)
downloadcython-ac8d44a41cc6e39270ad074b36bda94ef54adc87.tar.gz
make embedded Cython meta data more trivial to parse
-rw-r--r--Cython/Compiler/ModuleNode.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index 94d60724c..47858583d 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -552,10 +552,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("/* Generated by Cython %s */" % Version.watermark)
code.putln("")
if metadata:
- code.putln("/* Cython Metadata */")
- code.putln("/*")
+ code.putln("/* BEGIN: Cython Metadata")
code.putln(json.dumps(metadata, indent=4))
- code.putln("*/")
+ code.putln("END: Cython Metadata */")
code.putln("")
code.putln("#define PY_SSIZE_T_CLEAN")