|
1 /* Generated by Pyrex 0.9.4.1 on Sun May 13 00:52:19 2007 */ |
|
2 |
|
3 #define PY_SSIZE_T_CLEAN |
|
4 #include "Python.h" |
|
5 #include "structmember.h" |
|
6 #ifndef PY_LONG_LONG |
|
7 #define PY_LONG_LONG LONG_LONG |
|
8 #endif |
|
9 #if PY_VERSION_HEX < 0x02050000 |
|
10 typedef int Py_ssize_t; |
|
11 #define PY_SSIZE_T_MAX INT_MAX |
|
12 #define PY_SSIZE_T_MIN INT_MIN |
|
13 #define PyInt_FromSsize_t(z) PyInt_FromLong(z) |
|
14 #define PyInt_AsSsize_t(o) PyInt_AsLong(o) |
|
15 #endif |
|
16 #ifdef __cplusplus |
|
17 #define __PYX_EXTERN_C extern "C" |
|
18 #else |
|
19 #define __PYX_EXTERN_C extern |
|
20 #endif |
|
21 __PYX_EXTERN_C double pow(double, double); |
|
22 #include "_yaml.h" |
|
23 |
|
24 |
|
25 typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/ |
|
26 typedef struct {PyObject **p; char *s; long n;} __Pyx_StringTabEntry; /*proto*/ |
|
27 static PyObject *__Pyx_UnpackItem(PyObject *, Py_ssize_t); /*proto*/ |
|
28 static int __Pyx_EndUnpack(PyObject *, Py_ssize_t); /*proto*/ |
|
29 static int __Pyx_PrintItem(PyObject *); /*proto*/ |
|
30 static int __Pyx_PrintNewline(void); /*proto*/ |
|
31 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/ |
|
32 static void __Pyx_ReRaise(void); /*proto*/ |
|
33 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/ |
|
34 static PyObject *__Pyx_GetExcValue(void); /*proto*/ |
|
35 static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, char *name); /*proto*/ |
|
36 static int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/ |
|
37 static int __Pyx_GetStarArgs(PyObject **args, PyObject **kwds, char *kwd_list[], Py_ssize_t nargs, PyObject **args2, PyObject **kwds2); /*proto*/ |
|
38 static void __Pyx_WriteUnraisable(char *name); /*proto*/ |
|
39 static void __Pyx_AddTraceback(char *funcname); /*proto*/ |
|
40 static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name, long size); /*proto*/ |
|
41 static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/ |
|
42 static int __Pyx_GetVtable(PyObject *dict, void *vtabptr); /*proto*/ |
|
43 static PyObject *__Pyx_CreateClass(PyObject *bases, PyObject *dict, PyObject *name, char *modname); /*proto*/ |
|
44 static int __Pyx_InternStrings(__Pyx_InternTabEntry *t); /*proto*/ |
|
45 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/ |
|
46 static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/ |
|
47 |
|
48 static PyObject *__pyx_m; |
|
49 static PyObject *__pyx_b; |
|
50 static int __pyx_lineno; |
|
51 static char *__pyx_filename; |
|
52 static char **__pyx_f; |
|
53 |
|
54 /* Declarations from _yaml */ |
|
55 |
|
56 |
|
57 struct __pyx_obj_5_yaml_Mark { |
|
58 PyObject_HEAD |
|
59 PyObject *name; |
|
60 int index; |
|
61 int line; |
|
62 int column; |
|
63 PyObject *buffer; |
|
64 PyObject *pointer; |
|
65 }; |
|
66 |
|
67 |
|
68 struct __pyx_obj_5_yaml_CParser { |
|
69 PyObject_HEAD |
|
70 struct __pyx_vtabstruct_5_yaml_CParser *__pyx_vtab; |
|
71 yaml_parser_t parser; |
|
72 yaml_event_t parsed_event; |
|
73 PyObject *stream; |
|
74 PyObject *stream_name; |
|
75 PyObject *current_token; |
|
76 PyObject *current_event; |
|
77 PyObject *anchors; |
|
78 }; |
|
79 |
|
80 struct __pyx_vtabstruct_5_yaml_CParser { |
|
81 PyObject *((*_parser_error)(struct __pyx_obj_5_yaml_CParser *)); |
|
82 PyObject *((*_scan)(struct __pyx_obj_5_yaml_CParser *)); |
|
83 PyObject *((*_token_to_object)(struct __pyx_obj_5_yaml_CParser *,yaml_token_t (*))); |
|
84 PyObject *((*_parse)(struct __pyx_obj_5_yaml_CParser *)); |
|
85 PyObject *((*_event_to_object)(struct __pyx_obj_5_yaml_CParser *,yaml_event_t (*))); |
|
86 PyObject *((*_compose_document)(struct __pyx_obj_5_yaml_CParser *)); |
|
87 PyObject *((*_compose_node)(struct __pyx_obj_5_yaml_CParser *,PyObject *,PyObject *)); |
|
88 PyObject *((*_compose_scalar_node)(struct __pyx_obj_5_yaml_CParser *,PyObject *)); |
|
89 PyObject *((*_compose_sequence_node)(struct __pyx_obj_5_yaml_CParser *,PyObject *)); |
|
90 PyObject *((*_compose_mapping_node)(struct __pyx_obj_5_yaml_CParser *,PyObject *)); |
|
91 int ((*_parse_next_event)(struct __pyx_obj_5_yaml_CParser *)); |
|
92 }; |
|
93 static struct __pyx_vtabstruct_5_yaml_CParser *__pyx_vtabptr_5_yaml_CParser; |
|
94 |
|
95 |
|
96 struct __pyx_obj_5_yaml_CEmitter { |
|
97 PyObject_HEAD |
|
98 struct __pyx_vtabstruct_5_yaml_CEmitter *__pyx_vtab; |
|
99 yaml_emitter_t emitter; |
|
100 PyObject *stream; |
|
101 yaml_encoding_t use_encoding; |
|
102 int document_start_implicit; |
|
103 int document_end_implicit; |
|
104 PyObject *use_version; |
|
105 PyObject *use_tags; |
|
106 PyObject *serialized_nodes; |
|
107 PyObject *anchors; |
|
108 int last_alias_id; |
|
109 int closed; |
|
110 }; |
|
111 |
|
112 struct __pyx_vtabstruct_5_yaml_CEmitter { |
|
113 PyObject *((*_emitter_error)(struct __pyx_obj_5_yaml_CEmitter *)); |
|
114 int ((*_object_to_event)(struct __pyx_obj_5_yaml_CEmitter *,PyObject *,yaml_event_t (*))); |
|
115 int ((*_anchor_node)(struct __pyx_obj_5_yaml_CEmitter *,PyObject *)); |
|
116 int ((*_serialize_node)(struct __pyx_obj_5_yaml_CEmitter *,PyObject *,PyObject *,PyObject *)); |
|
117 }; |
|
118 static struct __pyx_vtabstruct_5_yaml_CEmitter *__pyx_vtabptr_5_yaml_CEmitter; |
|
119 |
|
120 static PyTypeObject *__pyx_ptype_5_yaml_Mark = 0; |
|
121 static PyTypeObject *__pyx_ptype_5_yaml_CParser = 0; |
|
122 static PyTypeObject *__pyx_ptype_5_yaml_CEmitter = 0; |
|
123 static PyObject *__pyx_k2; |
|
124 static PyObject *__pyx_k3; |
|
125 static PyObject *__pyx_k4; |
|
126 static PyObject *__pyx_k5; |
|
127 static PyObject *__pyx_k6; |
|
128 static PyObject *__pyx_k7; |
|
129 static PyObject *__pyx_k8; |
|
130 static PyObject *__pyx_k9; |
|
131 static PyObject *__pyx_k10; |
|
132 static PyObject *__pyx_k11; |
|
133 static int (__pyx_f_5_yaml_input_handler(void (*),char (*),int ,int (*))); /*proto*/ |
|
134 static int (__pyx_f_5_yaml_output_handler(void (*),char (*),int )); /*proto*/ |
|
135 |
|
136 /* Implementation of _yaml */ |
|
137 |
|
138 |
|
139 static PyObject *__pyx_n_yaml; |
|
140 static PyObject *__pyx_n_get_version_string; |
|
141 static PyObject *__pyx_n_get_version; |
|
142 static PyObject *__pyx_n_YAMLError; |
|
143 static PyObject *__pyx_n_ReaderError; |
|
144 static PyObject *__pyx_n_ScannerError; |
|
145 static PyObject *__pyx_n_ParserError; |
|
146 static PyObject *__pyx_n_ComposerError; |
|
147 static PyObject *__pyx_n_ConstructorError; |
|
148 static PyObject *__pyx_n_EmitterError; |
|
149 static PyObject *__pyx_n_SerializerError; |
|
150 static PyObject *__pyx_n_RepresenterError; |
|
151 static PyObject *__pyx_n_StreamStartToken; |
|
152 static PyObject *__pyx_n_StreamEndToken; |
|
153 static PyObject *__pyx_n_DirectiveToken; |
|
154 static PyObject *__pyx_n_DocumentStartToken; |
|
155 static PyObject *__pyx_n_DocumentEndToken; |
|
156 static PyObject *__pyx_n_BlockSequenceStartToken; |
|
157 static PyObject *__pyx_n_BlockMappingStartToken; |
|
158 static PyObject *__pyx_n_BlockEndToken; |
|
159 static PyObject *__pyx_n_FlowSequenceStartToken; |
|
160 static PyObject *__pyx_n_FlowMappingStartToken; |
|
161 static PyObject *__pyx_n_FlowSequenceEndToken; |
|
162 static PyObject *__pyx_n_FlowMappingEndToken; |
|
163 static PyObject *__pyx_n_KeyToken; |
|
164 static PyObject *__pyx_n_ValueToken; |
|
165 static PyObject *__pyx_n_BlockEntryToken; |
|
166 static PyObject *__pyx_n_FlowEntryToken; |
|
167 static PyObject *__pyx_n_AliasToken; |
|
168 static PyObject *__pyx_n_AnchorToken; |
|
169 static PyObject *__pyx_n_TagToken; |
|
170 static PyObject *__pyx_n_ScalarToken; |
|
171 static PyObject *__pyx_n_StreamStartEvent; |
|
172 static PyObject *__pyx_n_StreamEndEvent; |
|
173 static PyObject *__pyx_n_DocumentStartEvent; |
|
174 static PyObject *__pyx_n_DocumentEndEvent; |
|
175 static PyObject *__pyx_n_AliasEvent; |
|
176 static PyObject *__pyx_n_ScalarEvent; |
|
177 static PyObject *__pyx_n_SequenceStartEvent; |
|
178 static PyObject *__pyx_n_SequenceEndEvent; |
|
179 static PyObject *__pyx_n_MappingStartEvent; |
|
180 static PyObject *__pyx_n_MappingEndEvent; |
|
181 static PyObject *__pyx_n_ScalarNode; |
|
182 static PyObject *__pyx_n_SequenceNode; |
|
183 static PyObject *__pyx_n_MappingNode; |
|
184 static PyObject *__pyx_n_error; |
|
185 static PyObject *__pyx_n_reader; |
|
186 static PyObject *__pyx_n_scanner; |
|
187 static PyObject *__pyx_n_parser; |
|
188 static PyObject *__pyx_n_composer; |
|
189 static PyObject *__pyx_n_constructor; |
|
190 static PyObject *__pyx_n_emitter; |
|
191 static PyObject *__pyx_n_serializer; |
|
192 static PyObject *__pyx_n_representer; |
|
193 static PyObject *__pyx_n_tokens; |
|
194 static PyObject *__pyx_n_events; |
|
195 static PyObject *__pyx_n_nodes; |
|
196 |
|
197 static PyObject *__pyx_f_5_yaml_get_version_string(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
198 static PyObject *__pyx_f_5_yaml_get_version_string(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
199 PyObject *__pyx_r; |
|
200 PyObject *__pyx_1 = 0; |
|
201 static char *__pyx_argnames[] = {0}; |
|
202 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; |
|
203 |
|
204 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":5 */ |
|
205 __pyx_1 = PyString_FromString(yaml_get_version_string()); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 5; goto __pyx_L1;} |
|
206 __pyx_r = __pyx_1; |
|
207 __pyx_1 = 0; |
|
208 goto __pyx_L0; |
|
209 |
|
210 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
211 goto __pyx_L0; |
|
212 __pyx_L1:; |
|
213 Py_XDECREF(__pyx_1); |
|
214 __Pyx_AddTraceback("_yaml.get_version_string"); |
|
215 __pyx_r = 0; |
|
216 __pyx_L0:; |
|
217 return __pyx_r; |
|
218 } |
|
219 |
|
220 static PyObject *__pyx_f_5_yaml_get_version(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
221 static PyObject *__pyx_f_5_yaml_get_version(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
222 int __pyx_v_major; |
|
223 int __pyx_v_minor; |
|
224 int __pyx_v_patch; |
|
225 PyObject *__pyx_r; |
|
226 PyObject *__pyx_1 = 0; |
|
227 PyObject *__pyx_2 = 0; |
|
228 PyObject *__pyx_3 = 0; |
|
229 PyObject *__pyx_4 = 0; |
|
230 static char *__pyx_argnames[] = {0}; |
|
231 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; |
|
232 |
|
233 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":9 */ |
|
234 yaml_get_version((&__pyx_v_major),(&__pyx_v_minor),(&__pyx_v_patch)); |
|
235 |
|
236 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":10 */ |
|
237 __pyx_1 = PyInt_FromLong(__pyx_v_major); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; goto __pyx_L1;} |
|
238 __pyx_2 = PyInt_FromLong(__pyx_v_minor); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; goto __pyx_L1;} |
|
239 __pyx_3 = PyInt_FromLong(__pyx_v_patch); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; goto __pyx_L1;} |
|
240 __pyx_4 = PyTuple_New(3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; goto __pyx_L1;} |
|
241 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_1); |
|
242 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_2); |
|
243 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_3); |
|
244 __pyx_1 = 0; |
|
245 __pyx_2 = 0; |
|
246 __pyx_3 = 0; |
|
247 __pyx_r = __pyx_4; |
|
248 __pyx_4 = 0; |
|
249 goto __pyx_L0; |
|
250 |
|
251 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
252 goto __pyx_L0; |
|
253 __pyx_L1:; |
|
254 Py_XDECREF(__pyx_1); |
|
255 Py_XDECREF(__pyx_2); |
|
256 Py_XDECREF(__pyx_3); |
|
257 Py_XDECREF(__pyx_4); |
|
258 __Pyx_AddTraceback("_yaml.get_version"); |
|
259 __pyx_r = 0; |
|
260 __pyx_L0:; |
|
261 return __pyx_r; |
|
262 } |
|
263 |
|
264 static int __pyx_f_5_yaml_4Mark___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
265 static int __pyx_f_5_yaml_4Mark___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
266 PyObject *__pyx_v_name = 0; |
|
267 int __pyx_v_index; |
|
268 int __pyx_v_line; |
|
269 int __pyx_v_column; |
|
270 PyObject *__pyx_v_buffer = 0; |
|
271 PyObject *__pyx_v_pointer = 0; |
|
272 int __pyx_r; |
|
273 static char *__pyx_argnames[] = {"name","index","line","column","buffer","pointer",0}; |
|
274 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OiiiOO", __pyx_argnames, &__pyx_v_name, &__pyx_v_index, &__pyx_v_line, &__pyx_v_column, &__pyx_v_buffer, &__pyx_v_pointer)) return -1; |
|
275 Py_INCREF(__pyx_v_self); |
|
276 Py_INCREF(__pyx_v_name); |
|
277 Py_INCREF(__pyx_v_buffer); |
|
278 Py_INCREF(__pyx_v_pointer); |
|
279 |
|
280 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":69 */ |
|
281 Py_INCREF(__pyx_v_name); |
|
282 Py_DECREF(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->name); |
|
283 ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->name = __pyx_v_name; |
|
284 |
|
285 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":70 */ |
|
286 ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->index = __pyx_v_index; |
|
287 |
|
288 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":71 */ |
|
289 ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->line = __pyx_v_line; |
|
290 |
|
291 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":72 */ |
|
292 ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->column = __pyx_v_column; |
|
293 |
|
294 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":73 */ |
|
295 Py_INCREF(__pyx_v_buffer); |
|
296 Py_DECREF(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->buffer); |
|
297 ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->buffer = __pyx_v_buffer; |
|
298 |
|
299 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":74 */ |
|
300 Py_INCREF(__pyx_v_pointer); |
|
301 Py_DECREF(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->pointer); |
|
302 ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->pointer = __pyx_v_pointer; |
|
303 |
|
304 __pyx_r = 0; |
|
305 goto __pyx_L0; |
|
306 __pyx_L1:; |
|
307 __Pyx_AddTraceback("_yaml.Mark.__init__"); |
|
308 __pyx_r = -1; |
|
309 __pyx_L0:; |
|
310 Py_DECREF(__pyx_v_self); |
|
311 Py_DECREF(__pyx_v_name); |
|
312 Py_DECREF(__pyx_v_buffer); |
|
313 Py_DECREF(__pyx_v_pointer); |
|
314 return __pyx_r; |
|
315 } |
|
316 |
|
317 static PyObject *__pyx_f_5_yaml_4Mark_get_snippet(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
318 static PyObject *__pyx_f_5_yaml_4Mark_get_snippet(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
319 PyObject *__pyx_r; |
|
320 static char *__pyx_argnames[] = {0}; |
|
321 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; |
|
322 Py_INCREF(__pyx_v_self); |
|
323 |
|
324 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":77 */ |
|
325 Py_INCREF(Py_None); |
|
326 __pyx_r = Py_None; |
|
327 goto __pyx_L0; |
|
328 |
|
329 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
330 goto __pyx_L0; |
|
331 __pyx_L1:; |
|
332 __Pyx_AddTraceback("_yaml.Mark.get_snippet"); |
|
333 __pyx_r = 0; |
|
334 __pyx_L0:; |
|
335 Py_DECREF(__pyx_v_self); |
|
336 return __pyx_r; |
|
337 } |
|
338 |
|
339 static PyObject *__pyx_k12p; |
|
340 |
|
341 static char (__pyx_k12[]) = " in \"%s\", line %d, column %d"; |
|
342 |
|
343 static PyObject *__pyx_f_5_yaml_4Mark___str__(PyObject *__pyx_v_self); /*proto*/ |
|
344 static PyObject *__pyx_f_5_yaml_4Mark___str__(PyObject *__pyx_v_self) { |
|
345 PyObject *__pyx_v_where; |
|
346 PyObject *__pyx_r; |
|
347 PyObject *__pyx_1 = 0; |
|
348 PyObject *__pyx_2 = 0; |
|
349 PyObject *__pyx_3 = 0; |
|
350 Py_INCREF(__pyx_v_self); |
|
351 __pyx_v_where = Py_None; Py_INCREF(Py_None); |
|
352 |
|
353 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":81 */ |
|
354 __pyx_1 = PyInt_FromLong((((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->line + 1)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; goto __pyx_L1;} |
|
355 __pyx_2 = PyInt_FromLong((((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->column + 1)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; goto __pyx_L1;} |
|
356 __pyx_3 = PyTuple_New(3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; goto __pyx_L1;} |
|
357 Py_INCREF(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->name); |
|
358 PyTuple_SET_ITEM(__pyx_3, 0, ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->name); |
|
359 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_1); |
|
360 PyTuple_SET_ITEM(__pyx_3, 2, __pyx_2); |
|
361 __pyx_1 = 0; |
|
362 __pyx_2 = 0; |
|
363 __pyx_1 = PyNumber_Remainder(__pyx_k12p, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 81; goto __pyx_L1;} |
|
364 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
365 Py_DECREF(__pyx_v_where); |
|
366 __pyx_v_where = __pyx_1; |
|
367 __pyx_1 = 0; |
|
368 |
|
369 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":82 */ |
|
370 Py_INCREF(__pyx_v_where); |
|
371 __pyx_r = __pyx_v_where; |
|
372 goto __pyx_L0; |
|
373 |
|
374 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
375 goto __pyx_L0; |
|
376 __pyx_L1:; |
|
377 Py_XDECREF(__pyx_1); |
|
378 Py_XDECREF(__pyx_2); |
|
379 Py_XDECREF(__pyx_3); |
|
380 __Pyx_AddTraceback("_yaml.Mark.__str__"); |
|
381 __pyx_r = 0; |
|
382 __pyx_L0:; |
|
383 Py_DECREF(__pyx_v_where); |
|
384 Py_DECREF(__pyx_v_self); |
|
385 return __pyx_r; |
|
386 } |
|
387 |
|
388 static PyObject *__pyx_n_MemoryError; |
|
389 static PyObject *__pyx_n_hasattr; |
|
390 static PyObject *__pyx_n_read; |
|
391 static PyObject *__pyx_n_name; |
|
392 static PyObject *__pyx_n_AttributeError; |
|
393 static PyObject *__pyx_n_TypeError; |
|
394 |
|
395 static PyObject *__pyx_k14p; |
|
396 static PyObject *__pyx_k15p; |
|
397 static PyObject *__pyx_k16p; |
|
398 static PyObject *__pyx_k17p; |
|
399 |
|
400 static char (__pyx_k14[]) = "<file>"; |
|
401 static char (__pyx_k15[]) = "<unicode string>"; |
|
402 static char (__pyx_k16[]) = "<string>"; |
|
403 static char (__pyx_k17[]) = "a string or stream input is required"; |
|
404 |
|
405 static int __pyx_f_5_yaml_7CParser___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
406 static int __pyx_f_5_yaml_7CParser___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
407 PyObject *__pyx_v_stream = 0; |
|
408 int __pyx_r; |
|
409 int __pyx_1; |
|
410 PyObject *__pyx_2 = 0; |
|
411 PyObject *__pyx_3 = 0; |
|
412 PyObject *__pyx_4 = 0; |
|
413 static char *__pyx_argnames[] = {"stream",0}; |
|
414 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_stream)) return -1; |
|
415 Py_INCREF(__pyx_v_self); |
|
416 Py_INCREF(__pyx_v_stream); |
|
417 |
|
418 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":254 */ |
|
419 __pyx_1 = (yaml_parser_initialize((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parser)) == 0); |
|
420 if (__pyx_1) { |
|
421 |
|
422 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":255 */ |
|
423 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; goto __pyx_L1;} |
|
424 __Pyx_Raise(__pyx_2, 0, 0); |
|
425 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
426 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; goto __pyx_L1;} |
|
427 goto __pyx_L2; |
|
428 } |
|
429 __pyx_L2:; |
|
430 |
|
431 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":256 */ |
|
432 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event.type = YAML_NO_EVENT; |
|
433 |
|
434 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":257 */ |
|
435 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_hasattr); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 257; goto __pyx_L1;} |
|
436 __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 257; goto __pyx_L1;} |
|
437 Py_INCREF(__pyx_v_stream); |
|
438 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_stream); |
|
439 Py_INCREF(__pyx_n_read); |
|
440 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_n_read); |
|
441 __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 257; goto __pyx_L1;} |
|
442 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
443 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
444 __pyx_1 = PyObject_IsTrue(__pyx_4); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 257; goto __pyx_L1;} |
|
445 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
446 if (__pyx_1) { |
|
447 |
|
448 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":258 */ |
|
449 Py_INCREF(__pyx_v_stream); |
|
450 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream); |
|
451 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream = __pyx_v_stream; |
|
452 |
|
453 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":259 */ |
|
454 /*try:*/ { |
|
455 |
|
456 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":260 */ |
|
457 __pyx_2 = PyObject_GetAttr(__pyx_v_stream, __pyx_n_name); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; goto __pyx_L4;} |
|
458 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name); |
|
459 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name = __pyx_2; |
|
460 __pyx_2 = 0; |
|
461 } |
|
462 goto __pyx_L5; |
|
463 __pyx_L4:; |
|
464 Py_XDECREF(__pyx_3); __pyx_3 = 0; |
|
465 Py_XDECREF(__pyx_4); __pyx_4 = 0; |
|
466 Py_XDECREF(__pyx_2); __pyx_2 = 0; |
|
467 |
|
468 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":261 */ |
|
469 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_AttributeError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; goto __pyx_L1;} |
|
470 __pyx_1 = PyErr_ExceptionMatches(__pyx_3); |
|
471 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
472 if (__pyx_1) { |
|
473 __Pyx_AddTraceback("_yaml.__init__"); |
|
474 __pyx_4 = __Pyx_GetExcValue(); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; goto __pyx_L1;} |
|
475 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
476 |
|
477 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":262 */ |
|
478 Py_INCREF(__pyx_k14p); |
|
479 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name); |
|
480 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name = __pyx_k14p; |
|
481 goto __pyx_L5; |
|
482 } |
|
483 goto __pyx_L1; |
|
484 __pyx_L5:; |
|
485 |
|
486 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":263 */ |
|
487 yaml_parser_set_input((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parser),__pyx_f_5_yaml_input_handler,((void (*))__pyx_v_self)); |
|
488 goto __pyx_L3; |
|
489 } |
|
490 /*else*/ { |
|
491 |
|
492 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":265 */ |
|
493 __pyx_1 = (PyUnicode_CheckExact(__pyx_v_stream) != 0); |
|
494 if (__pyx_1) { |
|
495 |
|
496 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":266 */ |
|
497 __pyx_2 = PyUnicode_AsUTF8String(__pyx_v_stream); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 266; goto __pyx_L1;} |
|
498 Py_DECREF(__pyx_v_stream); |
|
499 __pyx_v_stream = __pyx_2; |
|
500 __pyx_2 = 0; |
|
501 |
|
502 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":267 */ |
|
503 Py_INCREF(__pyx_k15p); |
|
504 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name); |
|
505 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name = __pyx_k15p; |
|
506 goto __pyx_L6; |
|
507 } |
|
508 /*else*/ { |
|
509 |
|
510 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":269 */ |
|
511 Py_INCREF(__pyx_k16p); |
|
512 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name); |
|
513 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name = __pyx_k16p; |
|
514 } |
|
515 __pyx_L6:; |
|
516 |
|
517 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":270 */ |
|
518 __pyx_1 = (PyString_CheckExact(__pyx_v_stream) == 0); |
|
519 if (__pyx_1) { |
|
520 |
|
521 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":271 */ |
|
522 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; goto __pyx_L1;} |
|
523 __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; goto __pyx_L1;} |
|
524 Py_INCREF(__pyx_k17p); |
|
525 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k17p); |
|
526 __pyx_2 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; goto __pyx_L1;} |
|
527 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
528 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
529 __Pyx_Raise(__pyx_2, 0, 0); |
|
530 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
531 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; goto __pyx_L1;} |
|
532 goto __pyx_L7; |
|
533 } |
|
534 __pyx_L7:; |
|
535 |
|
536 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":272 */ |
|
537 Py_INCREF(__pyx_v_stream); |
|
538 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream); |
|
539 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream = __pyx_v_stream; |
|
540 |
|
541 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":273 */ |
|
542 yaml_parser_set_input_string((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parser),PyString_AS_STRING(__pyx_v_stream),PyString_GET_SIZE(__pyx_v_stream)); |
|
543 } |
|
544 __pyx_L3:; |
|
545 |
|
546 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":274 */ |
|
547 Py_INCREF(Py_None); |
|
548 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token); |
|
549 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token = Py_None; |
|
550 |
|
551 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":275 */ |
|
552 Py_INCREF(Py_None); |
|
553 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event); |
|
554 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event = Py_None; |
|
555 |
|
556 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":276 */ |
|
557 __pyx_3 = PyDict_New(); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; goto __pyx_L1;} |
|
558 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->anchors); |
|
559 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->anchors = __pyx_3; |
|
560 __pyx_3 = 0; |
|
561 |
|
562 __pyx_r = 0; |
|
563 goto __pyx_L0; |
|
564 __pyx_L1:; |
|
565 Py_XDECREF(__pyx_2); |
|
566 Py_XDECREF(__pyx_3); |
|
567 Py_XDECREF(__pyx_4); |
|
568 __Pyx_AddTraceback("_yaml.CParser.__init__"); |
|
569 __pyx_r = -1; |
|
570 __pyx_L0:; |
|
571 Py_DECREF(__pyx_v_self); |
|
572 Py_DECREF(__pyx_v_stream); |
|
573 return __pyx_r; |
|
574 } |
|
575 |
|
576 static void __pyx_f_5_yaml_7CParser___dealloc__(PyObject *__pyx_v_self); /*proto*/ |
|
577 static void __pyx_f_5_yaml_7CParser___dealloc__(PyObject *__pyx_v_self) { |
|
578 Py_INCREF(__pyx_v_self); |
|
579 |
|
580 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":279 */ |
|
581 yaml_parser_delete((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parser)); |
|
582 |
|
583 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":280 */ |
|
584 yaml_event_delete((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event)); |
|
585 |
|
586 goto __pyx_L0; |
|
587 __pyx_L1:; |
|
588 __Pyx_AddTraceback("_yaml.CParser.__dealloc__"); |
|
589 __pyx_L0:; |
|
590 Py_DECREF(__pyx_v_self); |
|
591 } |
|
592 |
|
593 static PyObject *__pyx_n_ValueError; |
|
594 |
|
595 static PyObject *__pyx_k18p; |
|
596 static PyObject *__pyx_k19p; |
|
597 |
|
598 static char (__pyx_k18[]) = "?"; |
|
599 static char (__pyx_k19[]) = "no parser error"; |
|
600 |
|
601 static PyObject *__pyx_f_5_yaml_7CParser__parser_error(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) { |
|
602 PyObject *__pyx_v_context_mark; |
|
603 PyObject *__pyx_v_problem_mark; |
|
604 PyObject *__pyx_r; |
|
605 int __pyx_1; |
|
606 PyObject *__pyx_2 = 0; |
|
607 PyObject *__pyx_3 = 0; |
|
608 PyObject *__pyx_4 = 0; |
|
609 PyObject *__pyx_5 = 0; |
|
610 PyObject *__pyx_6 = 0; |
|
611 Py_INCREF(__pyx_v_self); |
|
612 __pyx_v_context_mark = Py_None; Py_INCREF(Py_None); |
|
613 __pyx_v_problem_mark = Py_None; Py_INCREF(Py_None); |
|
614 |
|
615 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":283 */ |
|
616 __pyx_1 = (__pyx_v_self->parser.error == YAML_MEMORY_ERROR); |
|
617 if (__pyx_1) { |
|
618 |
|
619 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":284 */ |
|
620 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; goto __pyx_L1;} |
|
621 __Pyx_Raise(__pyx_2, 0, 0); |
|
622 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
623 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; goto __pyx_L1;} |
|
624 goto __pyx_L2; |
|
625 } |
|
626 __pyx_1 = (__pyx_v_self->parser.error == YAML_READER_ERROR); |
|
627 if (__pyx_1) { |
|
628 |
|
629 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":286 */ |
|
630 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_ReaderError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;} |
|
631 __pyx_3 = PyInt_FromLong(__pyx_v_self->parser.problem_offset); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;} |
|
632 __pyx_4 = PyInt_FromLong(__pyx_v_self->parser.problem_value); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; goto __pyx_L1;} |
|
633 __pyx_5 = PyString_FromString(__pyx_v_self->parser.problem); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; goto __pyx_L1;} |
|
634 __pyx_6 = PyTuple_New(5); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;} |
|
635 Py_INCREF(__pyx_v_self->stream_name); |
|
636 PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_self->stream_name); |
|
637 PyTuple_SET_ITEM(__pyx_6, 1, __pyx_3); |
|
638 PyTuple_SET_ITEM(__pyx_6, 2, __pyx_4); |
|
639 Py_INCREF(__pyx_k18p); |
|
640 PyTuple_SET_ITEM(__pyx_6, 3, __pyx_k18p); |
|
641 PyTuple_SET_ITEM(__pyx_6, 4, __pyx_5); |
|
642 __pyx_3 = 0; |
|
643 __pyx_4 = 0; |
|
644 __pyx_5 = 0; |
|
645 __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_6); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;} |
|
646 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
647 Py_DECREF(__pyx_6); __pyx_6 = 0; |
|
648 __Pyx_Raise(__pyx_3, 0, 0); |
|
649 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
650 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; goto __pyx_L1;} |
|
651 goto __pyx_L2; |
|
652 } |
|
653 __pyx_1 = (__pyx_v_self->parser.error == YAML_SCANNER_ERROR); |
|
654 if (!__pyx_1) { |
|
655 __pyx_1 = (__pyx_v_self->parser.error == YAML_PARSER_ERROR); |
|
656 } |
|
657 if (__pyx_1) { |
|
658 |
|
659 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":290 */ |
|
660 Py_INCREF(Py_None); |
|
661 Py_DECREF(__pyx_v_context_mark); |
|
662 __pyx_v_context_mark = Py_None; |
|
663 |
|
664 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":291 */ |
|
665 Py_INCREF(Py_None); |
|
666 Py_DECREF(__pyx_v_problem_mark); |
|
667 __pyx_v_problem_mark = Py_None; |
|
668 |
|
669 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":292 */ |
|
670 __pyx_1 = (__pyx_v_self->parser.context != 0); |
|
671 if (__pyx_1) { |
|
672 |
|
673 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":293 */ |
|
674 __pyx_4 = PyInt_FromLong(__pyx_v_self->parser.context_mark.index); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; goto __pyx_L1;} |
|
675 __pyx_5 = PyInt_FromLong(__pyx_v_self->parser.context_mark.line); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; goto __pyx_L1;} |
|
676 __pyx_2 = PyInt_FromLong(__pyx_v_self->parser.context_mark.column); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; goto __pyx_L1;} |
|
677 __pyx_6 = PyTuple_New(6); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; goto __pyx_L1;} |
|
678 Py_INCREF(__pyx_v_self->stream_name); |
|
679 PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_self->stream_name); |
|
680 PyTuple_SET_ITEM(__pyx_6, 1, __pyx_4); |
|
681 PyTuple_SET_ITEM(__pyx_6, 2, __pyx_5); |
|
682 PyTuple_SET_ITEM(__pyx_6, 3, __pyx_2); |
|
683 Py_INCREF(Py_None); |
|
684 PyTuple_SET_ITEM(__pyx_6, 4, Py_None); |
|
685 Py_INCREF(Py_None); |
|
686 PyTuple_SET_ITEM(__pyx_6, 5, Py_None); |
|
687 __pyx_4 = 0; |
|
688 __pyx_5 = 0; |
|
689 __pyx_2 = 0; |
|
690 __pyx_3 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_6); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; goto __pyx_L1;} |
|
691 Py_DECREF(__pyx_6); __pyx_6 = 0; |
|
692 Py_DECREF(__pyx_v_context_mark); |
|
693 __pyx_v_context_mark = __pyx_3; |
|
694 __pyx_3 = 0; |
|
695 goto __pyx_L3; |
|
696 } |
|
697 __pyx_L3:; |
|
698 |
|
699 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":297 */ |
|
700 __pyx_1 = (__pyx_v_self->parser.problem != 0); |
|
701 if (__pyx_1) { |
|
702 |
|
703 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":298 */ |
|
704 __pyx_4 = PyInt_FromLong(__pyx_v_self->parser.problem_mark.index); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; goto __pyx_L1;} |
|
705 __pyx_5 = PyInt_FromLong(__pyx_v_self->parser.problem_mark.line); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; goto __pyx_L1;} |
|
706 __pyx_2 = PyInt_FromLong(__pyx_v_self->parser.problem_mark.column); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; goto __pyx_L1;} |
|
707 __pyx_6 = PyTuple_New(6); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; goto __pyx_L1;} |
|
708 Py_INCREF(__pyx_v_self->stream_name); |
|
709 PyTuple_SET_ITEM(__pyx_6, 0, __pyx_v_self->stream_name); |
|
710 PyTuple_SET_ITEM(__pyx_6, 1, __pyx_4); |
|
711 PyTuple_SET_ITEM(__pyx_6, 2, __pyx_5); |
|
712 PyTuple_SET_ITEM(__pyx_6, 3, __pyx_2); |
|
713 Py_INCREF(Py_None); |
|
714 PyTuple_SET_ITEM(__pyx_6, 4, Py_None); |
|
715 Py_INCREF(Py_None); |
|
716 PyTuple_SET_ITEM(__pyx_6, 5, Py_None); |
|
717 __pyx_4 = 0; |
|
718 __pyx_5 = 0; |
|
719 __pyx_2 = 0; |
|
720 __pyx_3 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_6); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; goto __pyx_L1;} |
|
721 Py_DECREF(__pyx_6); __pyx_6 = 0; |
|
722 Py_DECREF(__pyx_v_problem_mark); |
|
723 __pyx_v_problem_mark = __pyx_3; |
|
724 __pyx_3 = 0; |
|
725 goto __pyx_L4; |
|
726 } |
|
727 __pyx_L4:; |
|
728 |
|
729 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":302 */ |
|
730 __pyx_1 = (__pyx_v_self->parser.error == YAML_SCANNER_ERROR); |
|
731 if (__pyx_1) { |
|
732 |
|
733 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":303 */ |
|
734 __pyx_1 = (__pyx_v_self->parser.context != 0); |
|
735 if (__pyx_1) { |
|
736 |
|
737 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":304 */ |
|
738 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_ScannerError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; goto __pyx_L1;} |
|
739 __pyx_5 = PyString_FromString(__pyx_v_self->parser.context); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; goto __pyx_L1;} |
|
740 __pyx_2 = PyString_FromString(__pyx_v_self->parser.problem); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; goto __pyx_L1;} |
|
741 __pyx_6 = PyTuple_New(4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; goto __pyx_L1;} |
|
742 PyTuple_SET_ITEM(__pyx_6, 0, __pyx_5); |
|
743 Py_INCREF(__pyx_v_context_mark); |
|
744 PyTuple_SET_ITEM(__pyx_6, 1, __pyx_v_context_mark); |
|
745 PyTuple_SET_ITEM(__pyx_6, 2, __pyx_2); |
|
746 Py_INCREF(__pyx_v_problem_mark); |
|
747 PyTuple_SET_ITEM(__pyx_6, 3, __pyx_v_problem_mark); |
|
748 __pyx_5 = 0; |
|
749 __pyx_2 = 0; |
|
750 __pyx_3 = PyObject_CallObject(__pyx_4, __pyx_6); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; goto __pyx_L1;} |
|
751 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
752 Py_DECREF(__pyx_6); __pyx_6 = 0; |
|
753 __pyx_r = __pyx_3; |
|
754 __pyx_3 = 0; |
|
755 goto __pyx_L0; |
|
756 goto __pyx_L6; |
|
757 } |
|
758 /*else*/ { |
|
759 |
|
760 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":307 */ |
|
761 __pyx_5 = __Pyx_GetName(__pyx_m, __pyx_n_ScannerError); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 307; goto __pyx_L1;} |
|
762 __pyx_2 = PyString_FromString(__pyx_v_self->parser.problem); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; goto __pyx_L1;} |
|
763 __pyx_4 = PyTuple_New(4); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 307; goto __pyx_L1;} |
|
764 Py_INCREF(Py_None); |
|
765 PyTuple_SET_ITEM(__pyx_4, 0, Py_None); |
|
766 Py_INCREF(Py_None); |
|
767 PyTuple_SET_ITEM(__pyx_4, 1, Py_None); |
|
768 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_2); |
|
769 Py_INCREF(__pyx_v_problem_mark); |
|
770 PyTuple_SET_ITEM(__pyx_4, 3, __pyx_v_problem_mark); |
|
771 __pyx_2 = 0; |
|
772 __pyx_6 = PyObject_CallObject(__pyx_5, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 307; goto __pyx_L1;} |
|
773 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
774 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
775 __pyx_r = __pyx_6; |
|
776 __pyx_6 = 0; |
|
777 goto __pyx_L0; |
|
778 } |
|
779 __pyx_L6:; |
|
780 goto __pyx_L5; |
|
781 } |
|
782 /*else*/ { |
|
783 |
|
784 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":310 */ |
|
785 __pyx_1 = (__pyx_v_self->parser.context != 0); |
|
786 if (__pyx_1) { |
|
787 |
|
788 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":311 */ |
|
789 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_ParserError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 311; goto __pyx_L1;} |
|
790 __pyx_2 = PyString_FromString(__pyx_v_self->parser.context); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 311; goto __pyx_L1;} |
|
791 __pyx_5 = PyString_FromString(__pyx_v_self->parser.problem); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; goto __pyx_L1;} |
|
792 __pyx_4 = PyTuple_New(4); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 311; goto __pyx_L1;} |
|
793 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_2); |
|
794 Py_INCREF(__pyx_v_context_mark); |
|
795 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_context_mark); |
|
796 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_5); |
|
797 Py_INCREF(__pyx_v_problem_mark); |
|
798 PyTuple_SET_ITEM(__pyx_4, 3, __pyx_v_problem_mark); |
|
799 __pyx_2 = 0; |
|
800 __pyx_5 = 0; |
|
801 __pyx_6 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 311; goto __pyx_L1;} |
|
802 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
803 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
804 __pyx_r = __pyx_6; |
|
805 __pyx_6 = 0; |
|
806 goto __pyx_L0; |
|
807 goto __pyx_L7; |
|
808 } |
|
809 /*else*/ { |
|
810 |
|
811 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":314 */ |
|
812 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_ParserError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; goto __pyx_L1;} |
|
813 __pyx_5 = PyString_FromString(__pyx_v_self->parser.problem); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; goto __pyx_L1;} |
|
814 __pyx_3 = PyTuple_New(4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; goto __pyx_L1;} |
|
815 Py_INCREF(Py_None); |
|
816 PyTuple_SET_ITEM(__pyx_3, 0, Py_None); |
|
817 Py_INCREF(Py_None); |
|
818 PyTuple_SET_ITEM(__pyx_3, 1, Py_None); |
|
819 PyTuple_SET_ITEM(__pyx_3, 2, __pyx_5); |
|
820 Py_INCREF(__pyx_v_problem_mark); |
|
821 PyTuple_SET_ITEM(__pyx_3, 3, __pyx_v_problem_mark); |
|
822 __pyx_5 = 0; |
|
823 __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; goto __pyx_L1;} |
|
824 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
825 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
826 __pyx_r = __pyx_4; |
|
827 __pyx_4 = 0; |
|
828 goto __pyx_L0; |
|
829 } |
|
830 __pyx_L7:; |
|
831 } |
|
832 __pyx_L5:; |
|
833 goto __pyx_L2; |
|
834 } |
|
835 __pyx_L2:; |
|
836 |
|
837 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":316 */ |
|
838 __pyx_6 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; goto __pyx_L1;} |
|
839 __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; goto __pyx_L1;} |
|
840 Py_INCREF(__pyx_k19p); |
|
841 PyTuple_SET_ITEM(__pyx_5, 0, __pyx_k19p); |
|
842 __pyx_2 = PyObject_CallObject(__pyx_6, __pyx_5); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; goto __pyx_L1;} |
|
843 Py_DECREF(__pyx_6); __pyx_6 = 0; |
|
844 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
845 __Pyx_Raise(__pyx_2, 0, 0); |
|
846 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
847 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; goto __pyx_L1;} |
|
848 |
|
849 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
850 goto __pyx_L0; |
|
851 __pyx_L1:; |
|
852 Py_XDECREF(__pyx_2); |
|
853 Py_XDECREF(__pyx_3); |
|
854 Py_XDECREF(__pyx_4); |
|
855 Py_XDECREF(__pyx_5); |
|
856 Py_XDECREF(__pyx_6); |
|
857 __Pyx_AddTraceback("_yaml.CParser._parser_error"); |
|
858 __pyx_r = 0; |
|
859 __pyx_L0:; |
|
860 Py_DECREF(__pyx_v_context_mark); |
|
861 Py_DECREF(__pyx_v_problem_mark); |
|
862 Py_DECREF(__pyx_v_self); |
|
863 return __pyx_r; |
|
864 } |
|
865 |
|
866 static PyObject *__pyx_f_5_yaml_7CParser_raw_scan(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
867 static PyObject *__pyx_f_5_yaml_7CParser_raw_scan(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
868 yaml_token_t __pyx_v_token; |
|
869 int __pyx_v_done; |
|
870 int __pyx_v_count; |
|
871 PyObject *__pyx_v_error; |
|
872 PyObject *__pyx_r; |
|
873 int __pyx_1; |
|
874 int __pyx_2; |
|
875 PyObject *__pyx_3 = 0; |
|
876 static char *__pyx_argnames[] = {0}; |
|
877 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; |
|
878 Py_INCREF(__pyx_v_self); |
|
879 __pyx_v_error = Py_None; Py_INCREF(Py_None); |
|
880 |
|
881 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":322 */ |
|
882 __pyx_v_count = 0; |
|
883 |
|
884 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":323 */ |
|
885 __pyx_v_done = 0; |
|
886 |
|
887 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":324 */ |
|
888 while (1) { |
|
889 __pyx_L2:; |
|
890 __pyx_1 = (__pyx_v_done == 0); |
|
891 if (!__pyx_1) break; |
|
892 |
|
893 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":325 */ |
|
894 __pyx_1 = yaml_parser_scan((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parser),(&__pyx_v_token)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; goto __pyx_L1;} |
|
895 __pyx_2 = (__pyx_1 == 0); |
|
896 if (__pyx_2) { |
|
897 |
|
898 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":326 */ |
|
899 __pyx_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->__pyx_vtab)->_parser_error(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; goto __pyx_L1;} |
|
900 Py_DECREF(__pyx_v_error); |
|
901 __pyx_v_error = __pyx_3; |
|
902 __pyx_3 = 0; |
|
903 |
|
904 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":327 */ |
|
905 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
906 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; goto __pyx_L1;} |
|
907 goto __pyx_L4; |
|
908 } |
|
909 __pyx_L4:; |
|
910 |
|
911 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":328 */ |
|
912 __pyx_1 = (__pyx_v_token.type == YAML_NO_TOKEN); |
|
913 if (__pyx_1) { |
|
914 |
|
915 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":329 */ |
|
916 __pyx_v_done = 1; |
|
917 goto __pyx_L5; |
|
918 } |
|
919 /*else*/ { |
|
920 |
|
921 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":331 */ |
|
922 __pyx_v_count = (__pyx_v_count + 1); |
|
923 } |
|
924 __pyx_L5:; |
|
925 |
|
926 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":332 */ |
|
927 yaml_token_delete((&__pyx_v_token)); |
|
928 } |
|
929 __pyx_L3:; |
|
930 |
|
931 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":333 */ |
|
932 __pyx_3 = PyInt_FromLong(__pyx_v_count); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; goto __pyx_L1;} |
|
933 __pyx_r = __pyx_3; |
|
934 __pyx_3 = 0; |
|
935 goto __pyx_L0; |
|
936 |
|
937 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
938 goto __pyx_L0; |
|
939 __pyx_L1:; |
|
940 Py_XDECREF(__pyx_3); |
|
941 __Pyx_AddTraceback("_yaml.CParser.raw_scan"); |
|
942 __pyx_r = 0; |
|
943 __pyx_L0:; |
|
944 Py_DECREF(__pyx_v_error); |
|
945 Py_DECREF(__pyx_v_self); |
|
946 return __pyx_r; |
|
947 } |
|
948 |
|
949 static PyObject *__pyx_f_5_yaml_7CParser__scan(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) { |
|
950 yaml_token_t __pyx_v_token; |
|
951 PyObject *__pyx_v_error; |
|
952 PyObject *__pyx_v_token_object; |
|
953 PyObject *__pyx_r; |
|
954 int __pyx_1; |
|
955 int __pyx_2; |
|
956 PyObject *__pyx_3 = 0; |
|
957 Py_INCREF(__pyx_v_self); |
|
958 __pyx_v_error = Py_None; Py_INCREF(Py_None); |
|
959 __pyx_v_token_object = Py_None; Py_INCREF(Py_None); |
|
960 |
|
961 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":337 */ |
|
962 __pyx_1 = yaml_parser_scan((&__pyx_v_self->parser),(&__pyx_v_token)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; goto __pyx_L1;} |
|
963 __pyx_2 = (__pyx_1 == 0); |
|
964 if (__pyx_2) { |
|
965 |
|
966 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":338 */ |
|
967 __pyx_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parser_error(__pyx_v_self); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; goto __pyx_L1;} |
|
968 Py_DECREF(__pyx_v_error); |
|
969 __pyx_v_error = __pyx_3; |
|
970 __pyx_3 = 0; |
|
971 |
|
972 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":339 */ |
|
973 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
974 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; goto __pyx_L1;} |
|
975 goto __pyx_L2; |
|
976 } |
|
977 __pyx_L2:; |
|
978 |
|
979 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":340 */ |
|
980 __pyx_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_token_to_object(__pyx_v_self,(&__pyx_v_token)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 340; goto __pyx_L1;} |
|
981 Py_DECREF(__pyx_v_token_object); |
|
982 __pyx_v_token_object = __pyx_3; |
|
983 __pyx_3 = 0; |
|
984 |
|
985 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":341 */ |
|
986 yaml_token_delete((&__pyx_v_token)); |
|
987 |
|
988 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":342 */ |
|
989 Py_INCREF(__pyx_v_token_object); |
|
990 __pyx_r = __pyx_v_token_object; |
|
991 goto __pyx_L0; |
|
992 |
|
993 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
994 goto __pyx_L0; |
|
995 __pyx_L1:; |
|
996 Py_XDECREF(__pyx_3); |
|
997 __Pyx_AddTraceback("_yaml.CParser._scan"); |
|
998 __pyx_r = 0; |
|
999 __pyx_L0:; |
|
1000 Py_DECREF(__pyx_v_error); |
|
1001 Py_DECREF(__pyx_v_token_object); |
|
1002 Py_DECREF(__pyx_v_self); |
|
1003 return __pyx_r; |
|
1004 } |
|
1005 |
|
1006 static PyObject *__pyx_n_YAML; |
|
1007 static PyObject *__pyx_n_TAG; |
|
1008 static PyObject *__pyx_n_False; |
|
1009 static PyObject *__pyx_n_True; |
|
1010 |
|
1011 static PyObject *__pyx_k20p; |
|
1012 static PyObject *__pyx_k21p; |
|
1013 static PyObject *__pyx_k22p; |
|
1014 static PyObject *__pyx_k30p; |
|
1015 static PyObject *__pyx_k31p; |
|
1016 static PyObject *__pyx_k32p; |
|
1017 static PyObject *__pyx_k33p; |
|
1018 static PyObject *__pyx_k34p; |
|
1019 static PyObject *__pyx_k35p; |
|
1020 |
|
1021 static char (__pyx_k20[]) = "utf-8"; |
|
1022 static char (__pyx_k21[]) = "utf-16-le"; |
|
1023 static char (__pyx_k22[]) = "utf-16-be"; |
|
1024 static char (__pyx_k25[]) = "strict"; |
|
1025 static char (__pyx_k26[]) = "strict"; |
|
1026 static char (__pyx_k27[]) = "strict"; |
|
1027 static char (__pyx_k28[]) = "strict"; |
|
1028 static char (__pyx_k29[]) = "strict"; |
|
1029 static char (__pyx_k30[]) = ""; |
|
1030 static char (__pyx_k31[]) = "\'"; |
|
1031 static char (__pyx_k32[]) = "\""; |
|
1032 static char (__pyx_k33[]) = "|"; |
|
1033 static char (__pyx_k34[]) = ">"; |
|
1034 static char (__pyx_k35[]) = "unknown token type"; |
|
1035 |
|
1036 static PyObject *__pyx_f_5_yaml_7CParser__token_to_object(struct __pyx_obj_5_yaml_CParser *__pyx_v_self,yaml_token_t (*__pyx_v_token)) { |
|
1037 PyObject *__pyx_v_start_mark; |
|
1038 PyObject *__pyx_v_end_mark; |
|
1039 PyObject *__pyx_v_encoding; |
|
1040 PyObject *__pyx_v_value; |
|
1041 PyObject *__pyx_v_handle; |
|
1042 PyObject *__pyx_v_suffix; |
|
1043 PyObject *__pyx_v_plain; |
|
1044 PyObject *__pyx_v_style; |
|
1045 PyObject *__pyx_r; |
|
1046 PyObject *__pyx_1 = 0; |
|
1047 PyObject *__pyx_2 = 0; |
|
1048 PyObject *__pyx_3 = 0; |
|
1049 PyObject *__pyx_4 = 0; |
|
1050 int __pyx_5; |
|
1051 int __pyx_6; |
|
1052 Py_INCREF(__pyx_v_self); |
|
1053 __pyx_v_start_mark = Py_None; Py_INCREF(Py_None); |
|
1054 __pyx_v_end_mark = Py_None; Py_INCREF(Py_None); |
|
1055 __pyx_v_encoding = Py_None; Py_INCREF(Py_None); |
|
1056 __pyx_v_value = Py_None; Py_INCREF(Py_None); |
|
1057 __pyx_v_handle = Py_None; Py_INCREF(Py_None); |
|
1058 __pyx_v_suffix = Py_None; Py_INCREF(Py_None); |
|
1059 __pyx_v_plain = Py_None; Py_INCREF(Py_None); |
|
1060 __pyx_v_style = Py_None; Py_INCREF(Py_None); |
|
1061 |
|
1062 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":345 */ |
|
1063 __pyx_1 = PyInt_FromLong(__pyx_v_token->start_mark.index); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; goto __pyx_L1;} |
|
1064 __pyx_2 = PyInt_FromLong(__pyx_v_token->start_mark.line); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; goto __pyx_L1;} |
|
1065 __pyx_3 = PyInt_FromLong(__pyx_v_token->start_mark.column); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; goto __pyx_L1;} |
|
1066 __pyx_4 = PyTuple_New(6); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; goto __pyx_L1;} |
|
1067 Py_INCREF(__pyx_v_self->stream_name); |
|
1068 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self->stream_name); |
|
1069 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_1); |
|
1070 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_2); |
|
1071 PyTuple_SET_ITEM(__pyx_4, 3, __pyx_3); |
|
1072 Py_INCREF(Py_None); |
|
1073 PyTuple_SET_ITEM(__pyx_4, 4, Py_None); |
|
1074 Py_INCREF(Py_None); |
|
1075 PyTuple_SET_ITEM(__pyx_4, 5, Py_None); |
|
1076 __pyx_1 = 0; |
|
1077 __pyx_2 = 0; |
|
1078 __pyx_3 = 0; |
|
1079 __pyx_1 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; goto __pyx_L1;} |
|
1080 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
1081 Py_DECREF(__pyx_v_start_mark); |
|
1082 __pyx_v_start_mark = __pyx_1; |
|
1083 __pyx_1 = 0; |
|
1084 |
|
1085 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":350 */ |
|
1086 __pyx_2 = PyInt_FromLong(__pyx_v_token->end_mark.index); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; goto __pyx_L1;} |
|
1087 __pyx_3 = PyInt_FromLong(__pyx_v_token->end_mark.line); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; goto __pyx_L1;} |
|
1088 __pyx_4 = PyInt_FromLong(__pyx_v_token->end_mark.column); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;} |
|
1089 __pyx_1 = PyTuple_New(6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; goto __pyx_L1;} |
|
1090 Py_INCREF(__pyx_v_self->stream_name); |
|
1091 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self->stream_name); |
|
1092 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_2); |
|
1093 PyTuple_SET_ITEM(__pyx_1, 2, __pyx_3); |
|
1094 PyTuple_SET_ITEM(__pyx_1, 3, __pyx_4); |
|
1095 Py_INCREF(Py_None); |
|
1096 PyTuple_SET_ITEM(__pyx_1, 4, Py_None); |
|
1097 Py_INCREF(Py_None); |
|
1098 PyTuple_SET_ITEM(__pyx_1, 5, Py_None); |
|
1099 __pyx_2 = 0; |
|
1100 __pyx_3 = 0; |
|
1101 __pyx_4 = 0; |
|
1102 __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; goto __pyx_L1;} |
|
1103 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
1104 Py_DECREF(__pyx_v_end_mark); |
|
1105 __pyx_v_end_mark = __pyx_2; |
|
1106 __pyx_2 = 0; |
|
1107 |
|
1108 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":355 */ |
|
1109 __pyx_5 = (__pyx_v_token->type == YAML_NO_TOKEN); |
|
1110 if (__pyx_5) { |
|
1111 |
|
1112 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":356 */ |
|
1113 Py_INCREF(Py_None); |
|
1114 __pyx_r = Py_None; |
|
1115 goto __pyx_L0; |
|
1116 goto __pyx_L2; |
|
1117 } |
|
1118 __pyx_5 = (__pyx_v_token->type == YAML_STREAM_START_TOKEN); |
|
1119 if (__pyx_5) { |
|
1120 |
|
1121 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":358 */ |
|
1122 Py_INCREF(Py_None); |
|
1123 Py_DECREF(__pyx_v_encoding); |
|
1124 __pyx_v_encoding = Py_None; |
|
1125 |
|
1126 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":359 */ |
|
1127 __pyx_5 = (__pyx_v_token->data.stream_start.encoding == YAML_UTF8_ENCODING); |
|
1128 if (__pyx_5) { |
|
1129 |
|
1130 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":360 */ |
|
1131 Py_INCREF(__pyx_k20p); |
|
1132 Py_DECREF(__pyx_v_encoding); |
|
1133 __pyx_v_encoding = __pyx_k20p; |
|
1134 goto __pyx_L3; |
|
1135 } |
|
1136 __pyx_5 = (__pyx_v_token->data.stream_start.encoding == YAML_UTF16LE_ENCODING); |
|
1137 if (__pyx_5) { |
|
1138 |
|
1139 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":362 */ |
|
1140 Py_INCREF(__pyx_k21p); |
|
1141 Py_DECREF(__pyx_v_encoding); |
|
1142 __pyx_v_encoding = __pyx_k21p; |
|
1143 goto __pyx_L3; |
|
1144 } |
|
1145 __pyx_5 = (__pyx_v_token->data.stream_start.encoding == YAML_UTF16BE_ENCODING); |
|
1146 if (__pyx_5) { |
|
1147 |
|
1148 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":364 */ |
|
1149 Py_INCREF(__pyx_k22p); |
|
1150 Py_DECREF(__pyx_v_encoding); |
|
1151 __pyx_v_encoding = __pyx_k22p; |
|
1152 goto __pyx_L3; |
|
1153 } |
|
1154 __pyx_L3:; |
|
1155 |
|
1156 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":365 */ |
|
1157 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_StreamStartToken); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; goto __pyx_L1;} |
|
1158 __pyx_4 = PyTuple_New(3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; goto __pyx_L1;} |
|
1159 Py_INCREF(__pyx_v_start_mark); |
|
1160 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_start_mark); |
|
1161 Py_INCREF(__pyx_v_end_mark); |
|
1162 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_end_mark); |
|
1163 Py_INCREF(__pyx_v_encoding); |
|
1164 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_v_encoding); |
|
1165 __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; goto __pyx_L1;} |
|
1166 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
1167 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
1168 __pyx_r = __pyx_1; |
|
1169 __pyx_1 = 0; |
|
1170 goto __pyx_L0; |
|
1171 goto __pyx_L2; |
|
1172 } |
|
1173 __pyx_5 = (__pyx_v_token->type == YAML_STREAM_END_TOKEN); |
|
1174 if (__pyx_5) { |
|
1175 |
|
1176 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":367 */ |
|
1177 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_StreamEndToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;} |
|
1178 __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;} |
|
1179 Py_INCREF(__pyx_v_start_mark); |
|
1180 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_start_mark); |
|
1181 Py_INCREF(__pyx_v_end_mark); |
|
1182 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_end_mark); |
|
1183 __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; goto __pyx_L1;} |
|
1184 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
1185 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
1186 __pyx_r = __pyx_4; |
|
1187 __pyx_4 = 0; |
|
1188 goto __pyx_L0; |
|
1189 goto __pyx_L2; |
|
1190 } |
|
1191 __pyx_5 = (__pyx_v_token->type == YAML_VERSION_DIRECTIVE_TOKEN); |
|
1192 if (__pyx_5) { |
|
1193 |
|
1194 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":369 */ |
|
1195 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_DirectiveToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; goto __pyx_L1;} |
|
1196 __pyx_2 = PyInt_FromLong(__pyx_v_token->data.version_directive.major); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;} |
|
1197 __pyx_3 = PyInt_FromLong(__pyx_v_token->data.version_directive.minor); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; goto __pyx_L1;} |
|
1198 __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; goto __pyx_L1;} |
|
1199 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_2); |
|
1200 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_3); |
|
1201 __pyx_2 = 0; |
|
1202 __pyx_3 = 0; |
|
1203 __pyx_2 = PyTuple_New(4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; goto __pyx_L1;} |
|
1204 Py_INCREF(__pyx_n_YAML); |
|
1205 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_n_YAML); |
|
1206 PyTuple_SET_ITEM(__pyx_2, 1, __pyx_4); |
|
1207 Py_INCREF(__pyx_v_start_mark); |
|
1208 PyTuple_SET_ITEM(__pyx_2, 2, __pyx_v_start_mark); |
|
1209 Py_INCREF(__pyx_v_end_mark); |
|
1210 PyTuple_SET_ITEM(__pyx_2, 3, __pyx_v_end_mark); |
|
1211 __pyx_4 = 0; |
|
1212 __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 369; goto __pyx_L1;} |
|
1213 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
1214 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
1215 __pyx_r = __pyx_3; |
|
1216 __pyx_3 = 0; |
|
1217 goto __pyx_L0; |
|
1218 goto __pyx_L2; |
|
1219 } |
|
1220 __pyx_5 = (__pyx_v_token->type == YAML_TAG_DIRECTIVE_TOKEN); |
|
1221 if (__pyx_5) { |
|
1222 |
|
1223 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":374 */ |
|
1224 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_DirectiveToken); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; goto __pyx_L1;} |
|
1225 __pyx_1 = PyString_FromString(__pyx_v_token->data.tag_directive.handle); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; goto __pyx_L1;} |
|
1226 __pyx_2 = PyString_FromString(__pyx_v_token->data.tag_directive.prefix); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; goto __pyx_L1;} |
|
1227 __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; goto __pyx_L1;} |
|
1228 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1); |
|
1229 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_2); |
|
1230 __pyx_1 = 0; |
|
1231 __pyx_2 = 0; |
|
1232 __pyx_1 = PyTuple_New(4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; goto __pyx_L1;} |
|
1233 Py_INCREF(__pyx_n_TAG); |
|
1234 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_n_TAG); |
|
1235 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_3); |
|
1236 Py_INCREF(__pyx_v_start_mark); |
|
1237 PyTuple_SET_ITEM(__pyx_1, 2, __pyx_v_start_mark); |
|
1238 Py_INCREF(__pyx_v_end_mark); |
|
1239 PyTuple_SET_ITEM(__pyx_1, 3, __pyx_v_end_mark); |
|
1240 __pyx_3 = 0; |
|
1241 __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; goto __pyx_L1;} |
|
1242 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
1243 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
1244 __pyx_r = __pyx_2; |
|
1245 __pyx_2 = 0; |
|
1246 goto __pyx_L0; |
|
1247 goto __pyx_L2; |
|
1248 } |
|
1249 __pyx_5 = (__pyx_v_token->type == YAML_DOCUMENT_START_TOKEN); |
|
1250 if (__pyx_5) { |
|
1251 |
|
1252 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":379 */ |
|
1253 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_DocumentStartToken); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; goto __pyx_L1;} |
|
1254 __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; goto __pyx_L1;} |
|
1255 Py_INCREF(__pyx_v_start_mark); |
|
1256 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_start_mark); |
|
1257 Py_INCREF(__pyx_v_end_mark); |
|
1258 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_end_mark); |
|
1259 __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; goto __pyx_L1;} |
|
1260 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
1261 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
1262 __pyx_r = __pyx_1; |
|
1263 __pyx_1 = 0; |
|
1264 goto __pyx_L0; |
|
1265 goto __pyx_L2; |
|
1266 } |
|
1267 __pyx_5 = (__pyx_v_token->type == YAML_DOCUMENT_END_TOKEN); |
|
1268 if (__pyx_5) { |
|
1269 |
|
1270 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":381 */ |
|
1271 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_DocumentEndToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; goto __pyx_L1;} |
|
1272 __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; goto __pyx_L1;} |
|
1273 Py_INCREF(__pyx_v_start_mark); |
|
1274 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_start_mark); |
|
1275 Py_INCREF(__pyx_v_end_mark); |
|
1276 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_end_mark); |
|
1277 __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; goto __pyx_L1;} |
|
1278 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
1279 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
1280 __pyx_r = __pyx_4; |
|
1281 __pyx_4 = 0; |
|
1282 goto __pyx_L0; |
|
1283 goto __pyx_L2; |
|
1284 } |
|
1285 __pyx_5 = (__pyx_v_token->type == YAML_BLOCK_SEQUENCE_START_TOKEN); |
|
1286 if (__pyx_5) { |
|
1287 |
|
1288 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":383 */ |
|
1289 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_BlockSequenceStartToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; goto __pyx_L1;} |
|
1290 __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; goto __pyx_L1;} |
|
1291 Py_INCREF(__pyx_v_start_mark); |
|
1292 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_start_mark); |
|
1293 Py_INCREF(__pyx_v_end_mark); |
|
1294 PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_end_mark); |
|
1295 __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; goto __pyx_L1;} |
|
1296 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
1297 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
1298 __pyx_r = __pyx_3; |
|
1299 __pyx_3 = 0; |
|
1300 goto __pyx_L0; |
|
1301 goto __pyx_L2; |
|
1302 } |
|
1303 __pyx_5 = (__pyx_v_token->type == YAML_BLOCK_MAPPING_START_TOKEN); |
|
1304 if (__pyx_5) { |
|
1305 |
|
1306 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":385 */ |
|
1307 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_BlockMappingStartToken); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; goto __pyx_L1;} |
|
1308 __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; goto __pyx_L1;} |
|
1309 Py_INCREF(__pyx_v_start_mark); |
|
1310 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_start_mark); |
|
1311 Py_INCREF(__pyx_v_end_mark); |
|
1312 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_end_mark); |
|
1313 __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; goto __pyx_L1;} |
|
1314 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
1315 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
1316 __pyx_r = __pyx_2; |
|
1317 __pyx_2 = 0; |
|
1318 goto __pyx_L0; |
|
1319 goto __pyx_L2; |
|
1320 } |
|
1321 __pyx_5 = (__pyx_v_token->type == YAML_BLOCK_END_TOKEN); |
|
1322 if (__pyx_5) { |
|
1323 |
|
1324 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":387 */ |
|
1325 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_BlockEndToken); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; goto __pyx_L1;} |
|
1326 __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; goto __pyx_L1;} |
|
1327 Py_INCREF(__pyx_v_start_mark); |
|
1328 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_start_mark); |
|
1329 Py_INCREF(__pyx_v_end_mark); |
|
1330 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_end_mark); |
|
1331 __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; goto __pyx_L1;} |
|
1332 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
1333 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
1334 __pyx_r = __pyx_1; |
|
1335 __pyx_1 = 0; |
|
1336 goto __pyx_L0; |
|
1337 goto __pyx_L2; |
|
1338 } |
|
1339 __pyx_5 = (__pyx_v_token->type == YAML_FLOW_SEQUENCE_START_TOKEN); |
|
1340 if (__pyx_5) { |
|
1341 |
|
1342 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":389 */ |
|
1343 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_FlowSequenceStartToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; goto __pyx_L1;} |
|
1344 __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; goto __pyx_L1;} |
|
1345 Py_INCREF(__pyx_v_start_mark); |
|
1346 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_start_mark); |
|
1347 Py_INCREF(__pyx_v_end_mark); |
|
1348 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_end_mark); |
|
1349 __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; goto __pyx_L1;} |
|
1350 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
1351 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
1352 __pyx_r = __pyx_4; |
|
1353 __pyx_4 = 0; |
|
1354 goto __pyx_L0; |
|
1355 goto __pyx_L2; |
|
1356 } |
|
1357 __pyx_5 = (__pyx_v_token->type == YAML_FLOW_SEQUENCE_END_TOKEN); |
|
1358 if (__pyx_5) { |
|
1359 |
|
1360 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":391 */ |
|
1361 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_FlowSequenceEndToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; goto __pyx_L1;} |
|
1362 __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; goto __pyx_L1;} |
|
1363 Py_INCREF(__pyx_v_start_mark); |
|
1364 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_start_mark); |
|
1365 Py_INCREF(__pyx_v_end_mark); |
|
1366 PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_end_mark); |
|
1367 __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; goto __pyx_L1;} |
|
1368 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
1369 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
1370 __pyx_r = __pyx_3; |
|
1371 __pyx_3 = 0; |
|
1372 goto __pyx_L0; |
|
1373 goto __pyx_L2; |
|
1374 } |
|
1375 __pyx_5 = (__pyx_v_token->type == YAML_FLOW_MAPPING_START_TOKEN); |
|
1376 if (__pyx_5) { |
|
1377 |
|
1378 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":393 */ |
|
1379 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_FlowMappingStartToken); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; goto __pyx_L1;} |
|
1380 __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; goto __pyx_L1;} |
|
1381 Py_INCREF(__pyx_v_start_mark); |
|
1382 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_start_mark); |
|
1383 Py_INCREF(__pyx_v_end_mark); |
|
1384 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_end_mark); |
|
1385 __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; goto __pyx_L1;} |
|
1386 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
1387 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
1388 __pyx_r = __pyx_2; |
|
1389 __pyx_2 = 0; |
|
1390 goto __pyx_L0; |
|
1391 goto __pyx_L2; |
|
1392 } |
|
1393 __pyx_5 = (__pyx_v_token->type == YAML_FLOW_MAPPING_END_TOKEN); |
|
1394 if (__pyx_5) { |
|
1395 |
|
1396 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":395 */ |
|
1397 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_FlowMappingEndToken); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; goto __pyx_L1;} |
|
1398 __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; goto __pyx_L1;} |
|
1399 Py_INCREF(__pyx_v_start_mark); |
|
1400 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_start_mark); |
|
1401 Py_INCREF(__pyx_v_end_mark); |
|
1402 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_end_mark); |
|
1403 __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; goto __pyx_L1;} |
|
1404 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
1405 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
1406 __pyx_r = __pyx_1; |
|
1407 __pyx_1 = 0; |
|
1408 goto __pyx_L0; |
|
1409 goto __pyx_L2; |
|
1410 } |
|
1411 __pyx_5 = (__pyx_v_token->type == YAML_BLOCK_ENTRY_TOKEN); |
|
1412 if (__pyx_5) { |
|
1413 |
|
1414 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":397 */ |
|
1415 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_BlockEntryToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L1;} |
|
1416 __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L1;} |
|
1417 Py_INCREF(__pyx_v_start_mark); |
|
1418 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_start_mark); |
|
1419 Py_INCREF(__pyx_v_end_mark); |
|
1420 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_end_mark); |
|
1421 __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L1;} |
|
1422 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
1423 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
1424 __pyx_r = __pyx_4; |
|
1425 __pyx_4 = 0; |
|
1426 goto __pyx_L0; |
|
1427 goto __pyx_L2; |
|
1428 } |
|
1429 __pyx_5 = (__pyx_v_token->type == YAML_FLOW_ENTRY_TOKEN); |
|
1430 if (__pyx_5) { |
|
1431 |
|
1432 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":399 */ |
|
1433 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_FlowEntryToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; goto __pyx_L1;} |
|
1434 __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; goto __pyx_L1;} |
|
1435 Py_INCREF(__pyx_v_start_mark); |
|
1436 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_start_mark); |
|
1437 Py_INCREF(__pyx_v_end_mark); |
|
1438 PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_end_mark); |
|
1439 __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; goto __pyx_L1;} |
|
1440 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
1441 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
1442 __pyx_r = __pyx_3; |
|
1443 __pyx_3 = 0; |
|
1444 goto __pyx_L0; |
|
1445 goto __pyx_L2; |
|
1446 } |
|
1447 __pyx_5 = (__pyx_v_token->type == YAML_KEY_TOKEN); |
|
1448 if (__pyx_5) { |
|
1449 |
|
1450 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":401 */ |
|
1451 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_KeyToken); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; goto __pyx_L1;} |
|
1452 __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; goto __pyx_L1;} |
|
1453 Py_INCREF(__pyx_v_start_mark); |
|
1454 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_start_mark); |
|
1455 Py_INCREF(__pyx_v_end_mark); |
|
1456 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_end_mark); |
|
1457 __pyx_2 = PyObject_CallObject(__pyx_4, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; goto __pyx_L1;} |
|
1458 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
1459 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
1460 __pyx_r = __pyx_2; |
|
1461 __pyx_2 = 0; |
|
1462 goto __pyx_L0; |
|
1463 goto __pyx_L2; |
|
1464 } |
|
1465 __pyx_5 = (__pyx_v_token->type == YAML_VALUE_TOKEN); |
|
1466 if (__pyx_5) { |
|
1467 |
|
1468 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":403 */ |
|
1469 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_ValueToken); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; goto __pyx_L1;} |
|
1470 __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; goto __pyx_L1;} |
|
1471 Py_INCREF(__pyx_v_start_mark); |
|
1472 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_start_mark); |
|
1473 Py_INCREF(__pyx_v_end_mark); |
|
1474 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_end_mark); |
|
1475 __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; goto __pyx_L1;} |
|
1476 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
1477 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
1478 __pyx_r = __pyx_1; |
|
1479 __pyx_1 = 0; |
|
1480 goto __pyx_L0; |
|
1481 goto __pyx_L2; |
|
1482 } |
|
1483 __pyx_5 = (__pyx_v_token->type == YAML_ALIAS_TOKEN); |
|
1484 if (__pyx_5) { |
|
1485 |
|
1486 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":405 */ |
|
1487 __pyx_2 = PyUnicode_DecodeUTF8(__pyx_v_token->data.alias.value,strlen(__pyx_v_token->data.alias.value),__pyx_k25); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; goto __pyx_L1;} |
|
1488 Py_DECREF(__pyx_v_value); |
|
1489 __pyx_v_value = __pyx_2; |
|
1490 __pyx_2 = 0; |
|
1491 |
|
1492 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":407 */ |
|
1493 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_AliasToken); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; goto __pyx_L1;} |
|
1494 __pyx_4 = PyTuple_New(3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; goto __pyx_L1;} |
|
1495 Py_INCREF(__pyx_v_value); |
|
1496 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_value); |
|
1497 Py_INCREF(__pyx_v_start_mark); |
|
1498 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_start_mark); |
|
1499 Py_INCREF(__pyx_v_end_mark); |
|
1500 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_v_end_mark); |
|
1501 __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; goto __pyx_L1;} |
|
1502 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
1503 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
1504 __pyx_r = __pyx_1; |
|
1505 __pyx_1 = 0; |
|
1506 goto __pyx_L0; |
|
1507 goto __pyx_L2; |
|
1508 } |
|
1509 __pyx_5 = (__pyx_v_token->type == YAML_ANCHOR_TOKEN); |
|
1510 if (__pyx_5) { |
|
1511 |
|
1512 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":409 */ |
|
1513 __pyx_2 = PyUnicode_DecodeUTF8(__pyx_v_token->data.anchor.value,strlen(__pyx_v_token->data.anchor.value),__pyx_k26); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; goto __pyx_L1;} |
|
1514 Py_DECREF(__pyx_v_value); |
|
1515 __pyx_v_value = __pyx_2; |
|
1516 __pyx_2 = 0; |
|
1517 |
|
1518 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":411 */ |
|
1519 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_AnchorToken); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; goto __pyx_L1;} |
|
1520 __pyx_4 = PyTuple_New(3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; goto __pyx_L1;} |
|
1521 Py_INCREF(__pyx_v_value); |
|
1522 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_value); |
|
1523 Py_INCREF(__pyx_v_start_mark); |
|
1524 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_start_mark); |
|
1525 Py_INCREF(__pyx_v_end_mark); |
|
1526 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_v_end_mark); |
|
1527 __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; goto __pyx_L1;} |
|
1528 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
1529 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
1530 __pyx_r = __pyx_1; |
|
1531 __pyx_1 = 0; |
|
1532 goto __pyx_L0; |
|
1533 goto __pyx_L2; |
|
1534 } |
|
1535 __pyx_5 = (__pyx_v_token->type == YAML_TAG_TOKEN); |
|
1536 if (__pyx_5) { |
|
1537 |
|
1538 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":413 */ |
|
1539 __pyx_2 = PyUnicode_DecodeUTF8(__pyx_v_token->data.tag.handle,strlen(__pyx_v_token->data.tag.handle),__pyx_k27); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; goto __pyx_L1;} |
|
1540 Py_DECREF(__pyx_v_handle); |
|
1541 __pyx_v_handle = __pyx_2; |
|
1542 __pyx_2 = 0; |
|
1543 |
|
1544 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":415 */ |
|
1545 __pyx_3 = PyUnicode_DecodeUTF8(__pyx_v_token->data.tag.suffix,strlen(__pyx_v_token->data.tag.suffix),__pyx_k28); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; goto __pyx_L1;} |
|
1546 Py_DECREF(__pyx_v_suffix); |
|
1547 __pyx_v_suffix = __pyx_3; |
|
1548 __pyx_3 = 0; |
|
1549 |
|
1550 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":417 */ |
|
1551 __pyx_5 = PyObject_IsTrue(__pyx_v_handle); if (__pyx_5 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 417; goto __pyx_L1;} |
|
1552 __pyx_6 = (!__pyx_5); |
|
1553 if (__pyx_6) { |
|
1554 |
|
1555 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":418 */ |
|
1556 Py_INCREF(Py_None); |
|
1557 Py_DECREF(__pyx_v_handle); |
|
1558 __pyx_v_handle = Py_None; |
|
1559 goto __pyx_L4; |
|
1560 } |
|
1561 __pyx_L4:; |
|
1562 |
|
1563 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":419 */ |
|
1564 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_TagToken); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; goto __pyx_L1;} |
|
1565 __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; goto __pyx_L1;} |
|
1566 Py_INCREF(__pyx_v_handle); |
|
1567 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_handle); |
|
1568 Py_INCREF(__pyx_v_suffix); |
|
1569 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_suffix); |
|
1570 __pyx_2 = PyTuple_New(3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; goto __pyx_L1;} |
|
1571 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); |
|
1572 Py_INCREF(__pyx_v_start_mark); |
|
1573 PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_start_mark); |
|
1574 Py_INCREF(__pyx_v_end_mark); |
|
1575 PyTuple_SET_ITEM(__pyx_2, 2, __pyx_v_end_mark); |
|
1576 __pyx_1 = 0; |
|
1577 __pyx_3 = PyObject_CallObject(__pyx_4, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; goto __pyx_L1;} |
|
1578 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
1579 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
1580 __pyx_r = __pyx_3; |
|
1581 __pyx_3 = 0; |
|
1582 goto __pyx_L0; |
|
1583 goto __pyx_L2; |
|
1584 } |
|
1585 __pyx_5 = (__pyx_v_token->type == YAML_SCALAR_TOKEN); |
|
1586 if (__pyx_5) { |
|
1587 |
|
1588 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":421 */ |
|
1589 __pyx_1 = PyUnicode_DecodeUTF8(__pyx_v_token->data.scalar.value,__pyx_v_token->data.scalar.length,__pyx_k29); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 421; goto __pyx_L1;} |
|
1590 Py_DECREF(__pyx_v_value); |
|
1591 __pyx_v_value = __pyx_1; |
|
1592 __pyx_1 = 0; |
|
1593 |
|
1594 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":423 */ |
|
1595 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 423; goto __pyx_L1;} |
|
1596 Py_DECREF(__pyx_v_plain); |
|
1597 __pyx_v_plain = __pyx_4; |
|
1598 __pyx_4 = 0; |
|
1599 |
|
1600 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":424 */ |
|
1601 Py_INCREF(Py_None); |
|
1602 Py_DECREF(__pyx_v_style); |
|
1603 __pyx_v_style = Py_None; |
|
1604 |
|
1605 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":425 */ |
|
1606 __pyx_6 = (__pyx_v_token->data.scalar.style == YAML_PLAIN_SCALAR_STYLE); |
|
1607 if (__pyx_6) { |
|
1608 |
|
1609 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":426 */ |
|
1610 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 426; goto __pyx_L1;} |
|
1611 Py_DECREF(__pyx_v_plain); |
|
1612 __pyx_v_plain = __pyx_2; |
|
1613 __pyx_2 = 0; |
|
1614 |
|
1615 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":427 */ |
|
1616 Py_INCREF(__pyx_k30p); |
|
1617 Py_DECREF(__pyx_v_style); |
|
1618 __pyx_v_style = __pyx_k30p; |
|
1619 goto __pyx_L5; |
|
1620 } |
|
1621 __pyx_5 = (__pyx_v_token->data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE); |
|
1622 if (__pyx_5) { |
|
1623 |
|
1624 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":429 */ |
|
1625 Py_INCREF(__pyx_k31p); |
|
1626 Py_DECREF(__pyx_v_style); |
|
1627 __pyx_v_style = __pyx_k31p; |
|
1628 goto __pyx_L5; |
|
1629 } |
|
1630 __pyx_6 = (__pyx_v_token->data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE); |
|
1631 if (__pyx_6) { |
|
1632 |
|
1633 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":431 */ |
|
1634 Py_INCREF(__pyx_k32p); |
|
1635 Py_DECREF(__pyx_v_style); |
|
1636 __pyx_v_style = __pyx_k32p; |
|
1637 goto __pyx_L5; |
|
1638 } |
|
1639 __pyx_5 = (__pyx_v_token->data.scalar.style == YAML_LITERAL_SCALAR_STYLE); |
|
1640 if (__pyx_5) { |
|
1641 |
|
1642 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":433 */ |
|
1643 Py_INCREF(__pyx_k33p); |
|
1644 Py_DECREF(__pyx_v_style); |
|
1645 __pyx_v_style = __pyx_k33p; |
|
1646 goto __pyx_L5; |
|
1647 } |
|
1648 __pyx_6 = (__pyx_v_token->data.scalar.style == YAML_FOLDED_SCALAR_STYLE); |
|
1649 if (__pyx_6) { |
|
1650 |
|
1651 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":435 */ |
|
1652 Py_INCREF(__pyx_k34p); |
|
1653 Py_DECREF(__pyx_v_style); |
|
1654 __pyx_v_style = __pyx_k34p; |
|
1655 goto __pyx_L5; |
|
1656 } |
|
1657 __pyx_L5:; |
|
1658 |
|
1659 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":436 */ |
|
1660 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_ScalarToken); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; goto __pyx_L1;} |
|
1661 __pyx_1 = PyTuple_New(5); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; goto __pyx_L1;} |
|
1662 Py_INCREF(__pyx_v_value); |
|
1663 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_value); |
|
1664 Py_INCREF(__pyx_v_plain); |
|
1665 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_plain); |
|
1666 Py_INCREF(__pyx_v_start_mark); |
|
1667 PyTuple_SET_ITEM(__pyx_1, 2, __pyx_v_start_mark); |
|
1668 Py_INCREF(__pyx_v_end_mark); |
|
1669 PyTuple_SET_ITEM(__pyx_1, 3, __pyx_v_end_mark); |
|
1670 Py_INCREF(__pyx_v_style); |
|
1671 PyTuple_SET_ITEM(__pyx_1, 4, __pyx_v_style); |
|
1672 __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; goto __pyx_L1;} |
|
1673 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
1674 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
1675 __pyx_r = __pyx_4; |
|
1676 __pyx_4 = 0; |
|
1677 goto __pyx_L0; |
|
1678 goto __pyx_L2; |
|
1679 } |
|
1680 /*else*/ { |
|
1681 |
|
1682 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":439 */ |
|
1683 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; goto __pyx_L1;} |
|
1684 __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; goto __pyx_L1;} |
|
1685 Py_INCREF(__pyx_k35p); |
|
1686 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k35p); |
|
1687 __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; goto __pyx_L1;} |
|
1688 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
1689 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
1690 __Pyx_Raise(__pyx_1, 0, 0); |
|
1691 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
1692 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; goto __pyx_L1;} |
|
1693 } |
|
1694 __pyx_L2:; |
|
1695 |
|
1696 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
1697 goto __pyx_L0; |
|
1698 __pyx_L1:; |
|
1699 Py_XDECREF(__pyx_1); |
|
1700 Py_XDECREF(__pyx_2); |
|
1701 Py_XDECREF(__pyx_3); |
|
1702 Py_XDECREF(__pyx_4); |
|
1703 __Pyx_AddTraceback("_yaml.CParser._token_to_object"); |
|
1704 __pyx_r = 0; |
|
1705 __pyx_L0:; |
|
1706 Py_DECREF(__pyx_v_start_mark); |
|
1707 Py_DECREF(__pyx_v_end_mark); |
|
1708 Py_DECREF(__pyx_v_encoding); |
|
1709 Py_DECREF(__pyx_v_value); |
|
1710 Py_DECREF(__pyx_v_handle); |
|
1711 Py_DECREF(__pyx_v_suffix); |
|
1712 Py_DECREF(__pyx_v_plain); |
|
1713 Py_DECREF(__pyx_v_style); |
|
1714 Py_DECREF(__pyx_v_self); |
|
1715 return __pyx_r; |
|
1716 } |
|
1717 |
|
1718 static PyObject *__pyx_f_5_yaml_7CParser_get_token(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
1719 static PyObject *__pyx_f_5_yaml_7CParser_get_token(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
1720 PyObject *__pyx_v_value; |
|
1721 PyObject *__pyx_r; |
|
1722 int __pyx_1; |
|
1723 PyObject *__pyx_2 = 0; |
|
1724 static char *__pyx_argnames[] = {0}; |
|
1725 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; |
|
1726 Py_INCREF(__pyx_v_self); |
|
1727 __pyx_v_value = Py_None; Py_INCREF(Py_None); |
|
1728 |
|
1729 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":442 */ |
|
1730 __pyx_1 = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token != Py_None; |
|
1731 if (__pyx_1) { |
|
1732 |
|
1733 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":443 */ |
|
1734 Py_INCREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token); |
|
1735 Py_DECREF(__pyx_v_value); |
|
1736 __pyx_v_value = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token; |
|
1737 |
|
1738 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":444 */ |
|
1739 Py_INCREF(Py_None); |
|
1740 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token); |
|
1741 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token = Py_None; |
|
1742 goto __pyx_L2; |
|
1743 } |
|
1744 /*else*/ { |
|
1745 |
|
1746 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":446 */ |
|
1747 __pyx_2 = ((struct __pyx_vtabstruct_5_yaml_CParser *)((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->__pyx_vtab)->_scan(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; goto __pyx_L1;} |
|
1748 Py_DECREF(__pyx_v_value); |
|
1749 __pyx_v_value = __pyx_2; |
|
1750 __pyx_2 = 0; |
|
1751 } |
|
1752 __pyx_L2:; |
|
1753 |
|
1754 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":447 */ |
|
1755 Py_INCREF(__pyx_v_value); |
|
1756 __pyx_r = __pyx_v_value; |
|
1757 goto __pyx_L0; |
|
1758 |
|
1759 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
1760 goto __pyx_L0; |
|
1761 __pyx_L1:; |
|
1762 Py_XDECREF(__pyx_2); |
|
1763 __Pyx_AddTraceback("_yaml.CParser.get_token"); |
|
1764 __pyx_r = 0; |
|
1765 __pyx_L0:; |
|
1766 Py_DECREF(__pyx_v_value); |
|
1767 Py_DECREF(__pyx_v_self); |
|
1768 return __pyx_r; |
|
1769 } |
|
1770 |
|
1771 static PyObject *__pyx_f_5_yaml_7CParser_peek_token(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
1772 static PyObject *__pyx_f_5_yaml_7CParser_peek_token(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
1773 PyObject *__pyx_r; |
|
1774 int __pyx_1; |
|
1775 PyObject *__pyx_2 = 0; |
|
1776 static char *__pyx_argnames[] = {0}; |
|
1777 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; |
|
1778 Py_INCREF(__pyx_v_self); |
|
1779 |
|
1780 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":450 */ |
|
1781 __pyx_1 = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token == Py_None; |
|
1782 if (__pyx_1) { |
|
1783 |
|
1784 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":451 */ |
|
1785 __pyx_2 = ((struct __pyx_vtabstruct_5_yaml_CParser *)((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->__pyx_vtab)->_scan(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; goto __pyx_L1;} |
|
1786 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token); |
|
1787 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token = __pyx_2; |
|
1788 __pyx_2 = 0; |
|
1789 goto __pyx_L2; |
|
1790 } |
|
1791 __pyx_L2:; |
|
1792 |
|
1793 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":452 */ |
|
1794 Py_INCREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token); |
|
1795 __pyx_r = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token; |
|
1796 goto __pyx_L0; |
|
1797 |
|
1798 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
1799 goto __pyx_L0; |
|
1800 __pyx_L1:; |
|
1801 Py_XDECREF(__pyx_2); |
|
1802 __Pyx_AddTraceback("_yaml.CParser.peek_token"); |
|
1803 __pyx_r = 0; |
|
1804 __pyx_L0:; |
|
1805 Py_DECREF(__pyx_v_self); |
|
1806 return __pyx_r; |
|
1807 } |
|
1808 |
|
1809 static PyObject *__pyx_n___class__; |
|
1810 |
|
1811 static PyObject *__pyx_f_5_yaml_7CParser_check_token(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
1812 static PyObject *__pyx_f_5_yaml_7CParser_check_token(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
1813 PyObject *__pyx_v_choices = 0; |
|
1814 PyObject *__pyx_v_token_class; |
|
1815 PyObject *__pyx_v_choice; |
|
1816 PyObject *__pyx_r; |
|
1817 int __pyx_1; |
|
1818 PyObject *__pyx_2 = 0; |
|
1819 int __pyx_3; |
|
1820 PyObject *__pyx_4 = 0; |
|
1821 static char *__pyx_argnames[] = {0}; |
|
1822 if (__Pyx_GetStarArgs(&__pyx_args, &__pyx_kwds, __pyx_argnames, 0, &__pyx_v_choices, 0) < 0) return 0; |
|
1823 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) { |
|
1824 Py_XDECREF(__pyx_args); |
|
1825 Py_XDECREF(__pyx_kwds); |
|
1826 Py_XDECREF(__pyx_v_choices); |
|
1827 return 0; |
|
1828 } |
|
1829 Py_INCREF(__pyx_v_self); |
|
1830 __pyx_v_token_class = Py_None; Py_INCREF(Py_None); |
|
1831 __pyx_v_choice = Py_None; Py_INCREF(Py_None); |
|
1832 |
|
1833 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":455 */ |
|
1834 __pyx_1 = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token == Py_None; |
|
1835 if (__pyx_1) { |
|
1836 |
|
1837 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":456 */ |
|
1838 __pyx_2 = ((struct __pyx_vtabstruct_5_yaml_CParser *)((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->__pyx_vtab)->_scan(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 456; goto __pyx_L1;} |
|
1839 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token); |
|
1840 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token = __pyx_2; |
|
1841 __pyx_2 = 0; |
|
1842 goto __pyx_L2; |
|
1843 } |
|
1844 __pyx_L2:; |
|
1845 |
|
1846 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":457 */ |
|
1847 __pyx_1 = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token == Py_None; |
|
1848 if (__pyx_1) { |
|
1849 |
|
1850 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":458 */ |
|
1851 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; goto __pyx_L1;} |
|
1852 __pyx_r = __pyx_2; |
|
1853 __pyx_2 = 0; |
|
1854 goto __pyx_L0; |
|
1855 goto __pyx_L3; |
|
1856 } |
|
1857 __pyx_L3:; |
|
1858 |
|
1859 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":459 */ |
|
1860 __pyx_1 = PyObject_IsTrue(__pyx_v_choices); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; goto __pyx_L1;} |
|
1861 __pyx_3 = (!__pyx_1); |
|
1862 if (__pyx_3) { |
|
1863 |
|
1864 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":460 */ |
|
1865 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; goto __pyx_L1;} |
|
1866 __pyx_r = __pyx_2; |
|
1867 __pyx_2 = 0; |
|
1868 goto __pyx_L0; |
|
1869 goto __pyx_L4; |
|
1870 } |
|
1871 __pyx_L4:; |
|
1872 |
|
1873 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":461 */ |
|
1874 __pyx_2 = PyObject_GetAttr(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token, __pyx_n___class__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; goto __pyx_L1;} |
|
1875 Py_DECREF(__pyx_v_token_class); |
|
1876 __pyx_v_token_class = __pyx_2; |
|
1877 __pyx_2 = 0; |
|
1878 |
|
1879 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":462 */ |
|
1880 __pyx_2 = PyObject_GetIter(__pyx_v_choices); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; goto __pyx_L1;} |
|
1881 for (;;) { |
|
1882 __pyx_L5:; |
|
1883 __pyx_4 = PyIter_Next(__pyx_2); |
|
1884 if (!__pyx_4) { |
|
1885 if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; goto __pyx_L1;} |
|
1886 break; |
|
1887 } |
|
1888 Py_DECREF(__pyx_v_choice); |
|
1889 __pyx_v_choice = __pyx_4; |
|
1890 __pyx_4 = 0; |
|
1891 |
|
1892 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":463 */ |
|
1893 __pyx_1 = __pyx_v_token_class == __pyx_v_choice; |
|
1894 if (__pyx_1) { |
|
1895 |
|
1896 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":464 */ |
|
1897 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
1898 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 464; goto __pyx_L1;} |
|
1899 __pyx_r = __pyx_4; |
|
1900 __pyx_4 = 0; |
|
1901 goto __pyx_L0; |
|
1902 goto __pyx_L7; |
|
1903 } |
|
1904 __pyx_L7:; |
|
1905 } |
|
1906 __pyx_L6:; |
|
1907 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
1908 |
|
1909 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":465 */ |
|
1910 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; goto __pyx_L1;} |
|
1911 __pyx_r = __pyx_4; |
|
1912 __pyx_4 = 0; |
|
1913 goto __pyx_L0; |
|
1914 |
|
1915 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
1916 goto __pyx_L0; |
|
1917 __pyx_L1:; |
|
1918 Py_XDECREF(__pyx_2); |
|
1919 Py_XDECREF(__pyx_4); |
|
1920 __Pyx_AddTraceback("_yaml.CParser.check_token"); |
|
1921 __pyx_r = 0; |
|
1922 __pyx_L0:; |
|
1923 Py_XDECREF(__pyx_v_choices); |
|
1924 Py_DECREF(__pyx_v_token_class); |
|
1925 Py_DECREF(__pyx_v_choice); |
|
1926 Py_DECREF(__pyx_v_self); |
|
1927 Py_XDECREF(__pyx_args); |
|
1928 Py_XDECREF(__pyx_kwds); |
|
1929 return __pyx_r; |
|
1930 } |
|
1931 |
|
1932 static PyObject *__pyx_f_5_yaml_7CParser_raw_parse(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
1933 static PyObject *__pyx_f_5_yaml_7CParser_raw_parse(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
1934 yaml_event_t __pyx_v_event; |
|
1935 int __pyx_v_done; |
|
1936 int __pyx_v_count; |
|
1937 PyObject *__pyx_v_error; |
|
1938 PyObject *__pyx_r; |
|
1939 int __pyx_1; |
|
1940 int __pyx_2; |
|
1941 PyObject *__pyx_3 = 0; |
|
1942 static char *__pyx_argnames[] = {0}; |
|
1943 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; |
|
1944 Py_INCREF(__pyx_v_self); |
|
1945 __pyx_v_error = Py_None; Py_INCREF(Py_None); |
|
1946 |
|
1947 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":471 */ |
|
1948 __pyx_v_count = 0; |
|
1949 |
|
1950 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":472 */ |
|
1951 __pyx_v_done = 0; |
|
1952 |
|
1953 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":473 */ |
|
1954 while (1) { |
|
1955 __pyx_L2:; |
|
1956 __pyx_1 = (__pyx_v_done == 0); |
|
1957 if (!__pyx_1) break; |
|
1958 |
|
1959 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":474 */ |
|
1960 __pyx_1 = yaml_parser_parse((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parser),(&__pyx_v_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; goto __pyx_L1;} |
|
1961 __pyx_2 = (__pyx_1 == 0); |
|
1962 if (__pyx_2) { |
|
1963 |
|
1964 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":475 */ |
|
1965 __pyx_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->__pyx_vtab)->_parser_error(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; goto __pyx_L1;} |
|
1966 Py_DECREF(__pyx_v_error); |
|
1967 __pyx_v_error = __pyx_3; |
|
1968 __pyx_3 = 0; |
|
1969 |
|
1970 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":476 */ |
|
1971 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
1972 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; goto __pyx_L1;} |
|
1973 goto __pyx_L4; |
|
1974 } |
|
1975 __pyx_L4:; |
|
1976 |
|
1977 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":477 */ |
|
1978 __pyx_1 = (__pyx_v_event.type == YAML_NO_EVENT); |
|
1979 if (__pyx_1) { |
|
1980 |
|
1981 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":478 */ |
|
1982 __pyx_v_done = 1; |
|
1983 goto __pyx_L5; |
|
1984 } |
|
1985 /*else*/ { |
|
1986 |
|
1987 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":480 */ |
|
1988 __pyx_v_count = (__pyx_v_count + 1); |
|
1989 } |
|
1990 __pyx_L5:; |
|
1991 |
|
1992 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":481 */ |
|
1993 yaml_event_delete((&__pyx_v_event)); |
|
1994 } |
|
1995 __pyx_L3:; |
|
1996 |
|
1997 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":482 */ |
|
1998 __pyx_3 = PyInt_FromLong(__pyx_v_count); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; goto __pyx_L1;} |
|
1999 __pyx_r = __pyx_3; |
|
2000 __pyx_3 = 0; |
|
2001 goto __pyx_L0; |
|
2002 |
|
2003 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
2004 goto __pyx_L0; |
|
2005 __pyx_L1:; |
|
2006 Py_XDECREF(__pyx_3); |
|
2007 __Pyx_AddTraceback("_yaml.CParser.raw_parse"); |
|
2008 __pyx_r = 0; |
|
2009 __pyx_L0:; |
|
2010 Py_DECREF(__pyx_v_error); |
|
2011 Py_DECREF(__pyx_v_self); |
|
2012 return __pyx_r; |
|
2013 } |
|
2014 |
|
2015 static PyObject *__pyx_f_5_yaml_7CParser__parse(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) { |
|
2016 yaml_event_t __pyx_v_event; |
|
2017 PyObject *__pyx_v_error; |
|
2018 PyObject *__pyx_v_event_object; |
|
2019 PyObject *__pyx_r; |
|
2020 int __pyx_1; |
|
2021 int __pyx_2; |
|
2022 PyObject *__pyx_3 = 0; |
|
2023 Py_INCREF(__pyx_v_self); |
|
2024 __pyx_v_error = Py_None; Py_INCREF(Py_None); |
|
2025 __pyx_v_event_object = Py_None; Py_INCREF(Py_None); |
|
2026 |
|
2027 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":486 */ |
|
2028 __pyx_1 = yaml_parser_parse((&__pyx_v_self->parser),(&__pyx_v_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; goto __pyx_L1;} |
|
2029 __pyx_2 = (__pyx_1 == 0); |
|
2030 if (__pyx_2) { |
|
2031 |
|
2032 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":487 */ |
|
2033 __pyx_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parser_error(__pyx_v_self); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; goto __pyx_L1;} |
|
2034 Py_DECREF(__pyx_v_error); |
|
2035 __pyx_v_error = __pyx_3; |
|
2036 __pyx_3 = 0; |
|
2037 |
|
2038 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":488 */ |
|
2039 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
2040 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; goto __pyx_L1;} |
|
2041 goto __pyx_L2; |
|
2042 } |
|
2043 __pyx_L2:; |
|
2044 |
|
2045 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":489 */ |
|
2046 __pyx_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_event_to_object(__pyx_v_self,(&__pyx_v_event)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; goto __pyx_L1;} |
|
2047 Py_DECREF(__pyx_v_event_object); |
|
2048 __pyx_v_event_object = __pyx_3; |
|
2049 __pyx_3 = 0; |
|
2050 |
|
2051 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":490 */ |
|
2052 yaml_event_delete((&__pyx_v_event)); |
|
2053 |
|
2054 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":491 */ |
|
2055 Py_INCREF(__pyx_v_event_object); |
|
2056 __pyx_r = __pyx_v_event_object; |
|
2057 goto __pyx_L0; |
|
2058 |
|
2059 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
2060 goto __pyx_L0; |
|
2061 __pyx_L1:; |
|
2062 Py_XDECREF(__pyx_3); |
|
2063 __Pyx_AddTraceback("_yaml.CParser._parse"); |
|
2064 __pyx_r = 0; |
|
2065 __pyx_L0:; |
|
2066 Py_DECREF(__pyx_v_error); |
|
2067 Py_DECREF(__pyx_v_event_object); |
|
2068 Py_DECREF(__pyx_v_self); |
|
2069 return __pyx_r; |
|
2070 } |
|
2071 |
|
2072 static PyObject *__pyx_k36p; |
|
2073 static PyObject *__pyx_k37p; |
|
2074 static PyObject *__pyx_k38p; |
|
2075 static PyObject *__pyx_k45p; |
|
2076 static PyObject *__pyx_k46p; |
|
2077 static PyObject *__pyx_k47p; |
|
2078 static PyObject *__pyx_k48p; |
|
2079 static PyObject *__pyx_k49p; |
|
2080 static PyObject *__pyx_k54p; |
|
2081 |
|
2082 static char (__pyx_k36[]) = "utf-8"; |
|
2083 static char (__pyx_k37[]) = "utf-16-le"; |
|
2084 static char (__pyx_k38[]) = "utf-16-be"; |
|
2085 static char (__pyx_k39[]) = "strict"; |
|
2086 static char (__pyx_k40[]) = "strict"; |
|
2087 static char (__pyx_k41[]) = "strict"; |
|
2088 static char (__pyx_k42[]) = "strict"; |
|
2089 static char (__pyx_k43[]) = "strict"; |
|
2090 static char (__pyx_k44[]) = "strict"; |
|
2091 static char (__pyx_k45[]) = ""; |
|
2092 static char (__pyx_k46[]) = "\'"; |
|
2093 static char (__pyx_k47[]) = "\""; |
|
2094 static char (__pyx_k48[]) = "|"; |
|
2095 static char (__pyx_k49[]) = ">"; |
|
2096 static char (__pyx_k50[]) = "strict"; |
|
2097 static char (__pyx_k51[]) = "strict"; |
|
2098 static char (__pyx_k52[]) = "strict"; |
|
2099 static char (__pyx_k53[]) = "strict"; |
|
2100 static char (__pyx_k54[]) = "unknown token type"; |
|
2101 |
|
2102 static PyObject *__pyx_f_5_yaml_7CParser__event_to_object(struct __pyx_obj_5_yaml_CParser *__pyx_v_self,yaml_event_t (*__pyx_v_event)) { |
|
2103 yaml_tag_directive_t (*__pyx_v_tag_directive); |
|
2104 PyObject *__pyx_v_start_mark; |
|
2105 PyObject *__pyx_v_end_mark; |
|
2106 PyObject *__pyx_v_encoding; |
|
2107 PyObject *__pyx_v_explicit; |
|
2108 PyObject *__pyx_v_version; |
|
2109 PyObject *__pyx_v_tags; |
|
2110 PyObject *__pyx_v_handle; |
|
2111 PyObject *__pyx_v_prefix; |
|
2112 PyObject *__pyx_v_anchor; |
|
2113 PyObject *__pyx_v_tag; |
|
2114 PyObject *__pyx_v_value; |
|
2115 PyObject *__pyx_v_plain_implicit; |
|
2116 PyObject *__pyx_v_quoted_implicit; |
|
2117 PyObject *__pyx_v_style; |
|
2118 PyObject *__pyx_v_implicit; |
|
2119 PyObject *__pyx_v_flow_style; |
|
2120 PyObject *__pyx_r; |
|
2121 PyObject *__pyx_1 = 0; |
|
2122 PyObject *__pyx_2 = 0; |
|
2123 PyObject *__pyx_3 = 0; |
|
2124 PyObject *__pyx_4 = 0; |
|
2125 int __pyx_5; |
|
2126 Py_INCREF(__pyx_v_self); |
|
2127 __pyx_v_start_mark = Py_None; Py_INCREF(Py_None); |
|
2128 __pyx_v_end_mark = Py_None; Py_INCREF(Py_None); |
|
2129 __pyx_v_encoding = Py_None; Py_INCREF(Py_None); |
|
2130 __pyx_v_explicit = Py_None; Py_INCREF(Py_None); |
|
2131 __pyx_v_version = Py_None; Py_INCREF(Py_None); |
|
2132 __pyx_v_tags = Py_None; Py_INCREF(Py_None); |
|
2133 __pyx_v_handle = Py_None; Py_INCREF(Py_None); |
|
2134 __pyx_v_prefix = Py_None; Py_INCREF(Py_None); |
|
2135 __pyx_v_anchor = Py_None; Py_INCREF(Py_None); |
|
2136 __pyx_v_tag = Py_None; Py_INCREF(Py_None); |
|
2137 __pyx_v_value = Py_None; Py_INCREF(Py_None); |
|
2138 __pyx_v_plain_implicit = Py_None; Py_INCREF(Py_None); |
|
2139 __pyx_v_quoted_implicit = Py_None; Py_INCREF(Py_None); |
|
2140 __pyx_v_style = Py_None; Py_INCREF(Py_None); |
|
2141 __pyx_v_implicit = Py_None; Py_INCREF(Py_None); |
|
2142 __pyx_v_flow_style = Py_None; Py_INCREF(Py_None); |
|
2143 |
|
2144 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":495 */ |
|
2145 __pyx_1 = PyInt_FromLong(__pyx_v_event->start_mark.index); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; goto __pyx_L1;} |
|
2146 __pyx_2 = PyInt_FromLong(__pyx_v_event->start_mark.line); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; goto __pyx_L1;} |
|
2147 __pyx_3 = PyInt_FromLong(__pyx_v_event->start_mark.column); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; goto __pyx_L1;} |
|
2148 __pyx_4 = PyTuple_New(6); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; goto __pyx_L1;} |
|
2149 Py_INCREF(__pyx_v_self->stream_name); |
|
2150 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self->stream_name); |
|
2151 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_1); |
|
2152 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_2); |
|
2153 PyTuple_SET_ITEM(__pyx_4, 3, __pyx_3); |
|
2154 Py_INCREF(Py_None); |
|
2155 PyTuple_SET_ITEM(__pyx_4, 4, Py_None); |
|
2156 Py_INCREF(Py_None); |
|
2157 PyTuple_SET_ITEM(__pyx_4, 5, Py_None); |
|
2158 __pyx_1 = 0; |
|
2159 __pyx_2 = 0; |
|
2160 __pyx_3 = 0; |
|
2161 __pyx_1 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; goto __pyx_L1;} |
|
2162 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
2163 Py_DECREF(__pyx_v_start_mark); |
|
2164 __pyx_v_start_mark = __pyx_1; |
|
2165 __pyx_1 = 0; |
|
2166 |
|
2167 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":500 */ |
|
2168 __pyx_2 = PyInt_FromLong(__pyx_v_event->end_mark.index); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; goto __pyx_L1;} |
|
2169 __pyx_3 = PyInt_FromLong(__pyx_v_event->end_mark.line); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; goto __pyx_L1;} |
|
2170 __pyx_4 = PyInt_FromLong(__pyx_v_event->end_mark.column); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; goto __pyx_L1;} |
|
2171 __pyx_1 = PyTuple_New(6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; goto __pyx_L1;} |
|
2172 Py_INCREF(__pyx_v_self->stream_name); |
|
2173 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self->stream_name); |
|
2174 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_2); |
|
2175 PyTuple_SET_ITEM(__pyx_1, 2, __pyx_3); |
|
2176 PyTuple_SET_ITEM(__pyx_1, 3, __pyx_4); |
|
2177 Py_INCREF(Py_None); |
|
2178 PyTuple_SET_ITEM(__pyx_1, 4, Py_None); |
|
2179 Py_INCREF(Py_None); |
|
2180 PyTuple_SET_ITEM(__pyx_1, 5, Py_None); |
|
2181 __pyx_2 = 0; |
|
2182 __pyx_3 = 0; |
|
2183 __pyx_4 = 0; |
|
2184 __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; goto __pyx_L1;} |
|
2185 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
2186 Py_DECREF(__pyx_v_end_mark); |
|
2187 __pyx_v_end_mark = __pyx_2; |
|
2188 __pyx_2 = 0; |
|
2189 |
|
2190 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":505 */ |
|
2191 __pyx_5 = (__pyx_v_event->type == YAML_NO_EVENT); |
|
2192 if (__pyx_5) { |
|
2193 |
|
2194 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":506 */ |
|
2195 Py_INCREF(Py_None); |
|
2196 __pyx_r = Py_None; |
|
2197 goto __pyx_L0; |
|
2198 goto __pyx_L2; |
|
2199 } |
|
2200 __pyx_5 = (__pyx_v_event->type == YAML_STREAM_START_EVENT); |
|
2201 if (__pyx_5) { |
|
2202 |
|
2203 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":508 */ |
|
2204 Py_INCREF(Py_None); |
|
2205 Py_DECREF(__pyx_v_encoding); |
|
2206 __pyx_v_encoding = Py_None; |
|
2207 |
|
2208 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":509 */ |
|
2209 __pyx_5 = (__pyx_v_event->data.stream_start.encoding == YAML_UTF8_ENCODING); |
|
2210 if (__pyx_5) { |
|
2211 |
|
2212 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":510 */ |
|
2213 Py_INCREF(__pyx_k36p); |
|
2214 Py_DECREF(__pyx_v_encoding); |
|
2215 __pyx_v_encoding = __pyx_k36p; |
|
2216 goto __pyx_L3; |
|
2217 } |
|
2218 __pyx_5 = (__pyx_v_event->data.stream_start.encoding == YAML_UTF16LE_ENCODING); |
|
2219 if (__pyx_5) { |
|
2220 |
|
2221 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":512 */ |
|
2222 Py_INCREF(__pyx_k37p); |
|
2223 Py_DECREF(__pyx_v_encoding); |
|
2224 __pyx_v_encoding = __pyx_k37p; |
|
2225 goto __pyx_L3; |
|
2226 } |
|
2227 __pyx_5 = (__pyx_v_event->data.stream_start.encoding == YAML_UTF16BE_ENCODING); |
|
2228 if (__pyx_5) { |
|
2229 |
|
2230 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":514 */ |
|
2231 Py_INCREF(__pyx_k38p); |
|
2232 Py_DECREF(__pyx_v_encoding); |
|
2233 __pyx_v_encoding = __pyx_k38p; |
|
2234 goto __pyx_L3; |
|
2235 } |
|
2236 __pyx_L3:; |
|
2237 |
|
2238 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":515 */ |
|
2239 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_StreamStartEvent); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; goto __pyx_L1;} |
|
2240 __pyx_4 = PyTuple_New(3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; goto __pyx_L1;} |
|
2241 Py_INCREF(__pyx_v_start_mark); |
|
2242 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_start_mark); |
|
2243 Py_INCREF(__pyx_v_end_mark); |
|
2244 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_end_mark); |
|
2245 Py_INCREF(__pyx_v_encoding); |
|
2246 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_v_encoding); |
|
2247 __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; goto __pyx_L1;} |
|
2248 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
2249 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
2250 __pyx_r = __pyx_1; |
|
2251 __pyx_1 = 0; |
|
2252 goto __pyx_L0; |
|
2253 goto __pyx_L2; |
|
2254 } |
|
2255 __pyx_5 = (__pyx_v_event->type == YAML_STREAM_END_EVENT); |
|
2256 if (__pyx_5) { |
|
2257 |
|
2258 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":517 */ |
|
2259 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_StreamEndEvent); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; goto __pyx_L1;} |
|
2260 __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; goto __pyx_L1;} |
|
2261 Py_INCREF(__pyx_v_start_mark); |
|
2262 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_start_mark); |
|
2263 Py_INCREF(__pyx_v_end_mark); |
|
2264 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_end_mark); |
|
2265 __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; goto __pyx_L1;} |
|
2266 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
2267 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
2268 __pyx_r = __pyx_4; |
|
2269 __pyx_4 = 0; |
|
2270 goto __pyx_L0; |
|
2271 goto __pyx_L2; |
|
2272 } |
|
2273 __pyx_5 = (__pyx_v_event->type == YAML_DOCUMENT_START_EVENT); |
|
2274 if (__pyx_5) { |
|
2275 |
|
2276 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":520 */ |
|
2277 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; goto __pyx_L1;} |
|
2278 Py_DECREF(__pyx_v_explicit); |
|
2279 __pyx_v_explicit = __pyx_1; |
|
2280 __pyx_1 = 0; |
|
2281 |
|
2282 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":521 */ |
|
2283 __pyx_5 = (__pyx_v_event->data.document_start.implicit == 0); |
|
2284 if (__pyx_5) { |
|
2285 |
|
2286 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":522 */ |
|
2287 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; goto __pyx_L1;} |
|
2288 Py_DECREF(__pyx_v_explicit); |
|
2289 __pyx_v_explicit = __pyx_2; |
|
2290 __pyx_2 = 0; |
|
2291 goto __pyx_L4; |
|
2292 } |
|
2293 __pyx_L4:; |
|
2294 |
|
2295 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":523 */ |
|
2296 Py_INCREF(Py_None); |
|
2297 Py_DECREF(__pyx_v_version); |
|
2298 __pyx_v_version = Py_None; |
|
2299 |
|
2300 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":524 */ |
|
2301 __pyx_5 = (__pyx_v_event->data.document_start.version_directive != 0); |
|
2302 if (__pyx_5) { |
|
2303 |
|
2304 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":525 */ |
|
2305 __pyx_3 = PyInt_FromLong(__pyx_v_event->data.document_start.version_directive->major); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; goto __pyx_L1;} |
|
2306 __pyx_4 = PyInt_FromLong(__pyx_v_event->data.document_start.version_directive->minor); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; goto __pyx_L1;} |
|
2307 __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; goto __pyx_L1;} |
|
2308 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_3); |
|
2309 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_4); |
|
2310 __pyx_3 = 0; |
|
2311 __pyx_4 = 0; |
|
2312 Py_DECREF(__pyx_v_version); |
|
2313 __pyx_v_version = __pyx_1; |
|
2314 __pyx_1 = 0; |
|
2315 goto __pyx_L5; |
|
2316 } |
|
2317 __pyx_L5:; |
|
2318 |
|
2319 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":527 */ |
|
2320 Py_INCREF(Py_None); |
|
2321 Py_DECREF(__pyx_v_tags); |
|
2322 __pyx_v_tags = Py_None; |
|
2323 |
|
2324 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":528 */ |
|
2325 __pyx_5 = (__pyx_v_event->data.document_start.tag_directives.start != 0); |
|
2326 if (__pyx_5) { |
|
2327 |
|
2328 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":529 */ |
|
2329 __pyx_2 = PyDict_New(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; goto __pyx_L1;} |
|
2330 Py_DECREF(__pyx_v_tags); |
|
2331 __pyx_v_tags = __pyx_2; |
|
2332 __pyx_2 = 0; |
|
2333 |
|
2334 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":530 */ |
|
2335 __pyx_v_tag_directive = __pyx_v_event->data.document_start.tag_directives.start; |
|
2336 |
|
2337 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":531 */ |
|
2338 while (1) { |
|
2339 __pyx_L7:; |
|
2340 __pyx_5 = (__pyx_v_tag_directive != __pyx_v_event->data.document_start.tag_directives.end); |
|
2341 if (!__pyx_5) break; |
|
2342 |
|
2343 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":532 */ |
|
2344 __pyx_3 = PyUnicode_DecodeUTF8(__pyx_v_tag_directive->handle,strlen(__pyx_v_tag_directive->handle),__pyx_k39); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; goto __pyx_L1;} |
|
2345 Py_DECREF(__pyx_v_handle); |
|
2346 __pyx_v_handle = __pyx_3; |
|
2347 __pyx_3 = 0; |
|
2348 |
|
2349 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":534 */ |
|
2350 __pyx_4 = PyUnicode_DecodeUTF8(__pyx_v_tag_directive->prefix,strlen(__pyx_v_tag_directive->prefix),__pyx_k40); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 534; goto __pyx_L1;} |
|
2351 Py_DECREF(__pyx_v_prefix); |
|
2352 __pyx_v_prefix = __pyx_4; |
|
2353 __pyx_4 = 0; |
|
2354 |
|
2355 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":536 */ |
|
2356 if (PyObject_SetItem(__pyx_v_tags, __pyx_v_handle, __pyx_v_prefix) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; goto __pyx_L1;} |
|
2357 |
|
2358 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":537 */ |
|
2359 __pyx_v_tag_directive = (__pyx_v_tag_directive + 1); |
|
2360 } |
|
2361 __pyx_L8:; |
|
2362 goto __pyx_L6; |
|
2363 } |
|
2364 __pyx_L6:; |
|
2365 |
|
2366 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":538 */ |
|
2367 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_DocumentStartEvent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; goto __pyx_L1;} |
|
2368 __pyx_2 = PyTuple_New(5); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; goto __pyx_L1;} |
|
2369 Py_INCREF(__pyx_v_start_mark); |
|
2370 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_start_mark); |
|
2371 Py_INCREF(__pyx_v_end_mark); |
|
2372 PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_end_mark); |
|
2373 Py_INCREF(__pyx_v_explicit); |
|
2374 PyTuple_SET_ITEM(__pyx_2, 2, __pyx_v_explicit); |
|
2375 Py_INCREF(__pyx_v_version); |
|
2376 PyTuple_SET_ITEM(__pyx_2, 3, __pyx_v_version); |
|
2377 Py_INCREF(__pyx_v_tags); |
|
2378 PyTuple_SET_ITEM(__pyx_2, 4, __pyx_v_tags); |
|
2379 __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; goto __pyx_L1;} |
|
2380 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
2381 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
2382 __pyx_r = __pyx_3; |
|
2383 __pyx_3 = 0; |
|
2384 goto __pyx_L0; |
|
2385 goto __pyx_L2; |
|
2386 } |
|
2387 __pyx_5 = (__pyx_v_event->type == YAML_DOCUMENT_END_EVENT); |
|
2388 if (__pyx_5) { |
|
2389 |
|
2390 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":541 */ |
|
2391 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; goto __pyx_L1;} |
|
2392 Py_DECREF(__pyx_v_explicit); |
|
2393 __pyx_v_explicit = __pyx_4; |
|
2394 __pyx_4 = 0; |
|
2395 |
|
2396 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":542 */ |
|
2397 __pyx_5 = (__pyx_v_event->data.document_end.implicit == 0); |
|
2398 if (__pyx_5) { |
|
2399 |
|
2400 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":543 */ |
|
2401 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; goto __pyx_L1;} |
|
2402 Py_DECREF(__pyx_v_explicit); |
|
2403 __pyx_v_explicit = __pyx_1; |
|
2404 __pyx_1 = 0; |
|
2405 goto __pyx_L9; |
|
2406 } |
|
2407 __pyx_L9:; |
|
2408 |
|
2409 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":544 */ |
|
2410 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_DocumentEndEvent); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; goto __pyx_L1;} |
|
2411 __pyx_3 = PyTuple_New(3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; goto __pyx_L1;} |
|
2412 Py_INCREF(__pyx_v_start_mark); |
|
2413 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_start_mark); |
|
2414 Py_INCREF(__pyx_v_end_mark); |
|
2415 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_end_mark); |
|
2416 Py_INCREF(__pyx_v_explicit); |
|
2417 PyTuple_SET_ITEM(__pyx_3, 2, __pyx_v_explicit); |
|
2418 __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; goto __pyx_L1;} |
|
2419 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
2420 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
2421 __pyx_r = __pyx_4; |
|
2422 __pyx_4 = 0; |
|
2423 goto __pyx_L0; |
|
2424 goto __pyx_L2; |
|
2425 } |
|
2426 __pyx_5 = (__pyx_v_event->type == YAML_ALIAS_EVENT); |
|
2427 if (__pyx_5) { |
|
2428 |
|
2429 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":546 */ |
|
2430 __pyx_1 = PyUnicode_DecodeUTF8(__pyx_v_event->data.alias.anchor,strlen(__pyx_v_event->data.alias.anchor),__pyx_k41); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; goto __pyx_L1;} |
|
2431 Py_DECREF(__pyx_v_anchor); |
|
2432 __pyx_v_anchor = __pyx_1; |
|
2433 __pyx_1 = 0; |
|
2434 |
|
2435 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":548 */ |
|
2436 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_AliasEvent); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; goto __pyx_L1;} |
|
2437 __pyx_3 = PyTuple_New(3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; goto __pyx_L1;} |
|
2438 Py_INCREF(__pyx_v_anchor); |
|
2439 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_anchor); |
|
2440 Py_INCREF(__pyx_v_start_mark); |
|
2441 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_start_mark); |
|
2442 Py_INCREF(__pyx_v_end_mark); |
|
2443 PyTuple_SET_ITEM(__pyx_3, 2, __pyx_v_end_mark); |
|
2444 __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; goto __pyx_L1;} |
|
2445 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
2446 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
2447 __pyx_r = __pyx_4; |
|
2448 __pyx_4 = 0; |
|
2449 goto __pyx_L0; |
|
2450 goto __pyx_L2; |
|
2451 } |
|
2452 __pyx_5 = (__pyx_v_event->type == YAML_SCALAR_EVENT); |
|
2453 if (__pyx_5) { |
|
2454 |
|
2455 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":550 */ |
|
2456 Py_INCREF(Py_None); |
|
2457 Py_DECREF(__pyx_v_anchor); |
|
2458 __pyx_v_anchor = Py_None; |
|
2459 |
|
2460 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":551 */ |
|
2461 __pyx_5 = (__pyx_v_event->data.scalar.anchor != 0); |
|
2462 if (__pyx_5) { |
|
2463 |
|
2464 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":552 */ |
|
2465 __pyx_1 = PyUnicode_DecodeUTF8(__pyx_v_event->data.scalar.anchor,strlen(__pyx_v_event->data.scalar.anchor),__pyx_k42); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; goto __pyx_L1;} |
|
2466 Py_DECREF(__pyx_v_anchor); |
|
2467 __pyx_v_anchor = __pyx_1; |
|
2468 __pyx_1 = 0; |
|
2469 goto __pyx_L10; |
|
2470 } |
|
2471 __pyx_L10:; |
|
2472 |
|
2473 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":554 */ |
|
2474 Py_INCREF(Py_None); |
|
2475 Py_DECREF(__pyx_v_tag); |
|
2476 __pyx_v_tag = Py_None; |
|
2477 |
|
2478 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":555 */ |
|
2479 __pyx_5 = (__pyx_v_event->data.scalar.tag != 0); |
|
2480 if (__pyx_5) { |
|
2481 |
|
2482 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":556 */ |
|
2483 __pyx_2 = PyUnicode_DecodeUTF8(__pyx_v_event->data.scalar.tag,strlen(__pyx_v_event->data.scalar.tag),__pyx_k43); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 556; goto __pyx_L1;} |
|
2484 Py_DECREF(__pyx_v_tag); |
|
2485 __pyx_v_tag = __pyx_2; |
|
2486 __pyx_2 = 0; |
|
2487 goto __pyx_L11; |
|
2488 } |
|
2489 __pyx_L11:; |
|
2490 |
|
2491 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":558 */ |
|
2492 __pyx_3 = PyUnicode_DecodeUTF8(__pyx_v_event->data.scalar.value,__pyx_v_event->data.scalar.length,__pyx_k44); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 558; goto __pyx_L1;} |
|
2493 Py_DECREF(__pyx_v_value); |
|
2494 __pyx_v_value = __pyx_3; |
|
2495 __pyx_3 = 0; |
|
2496 |
|
2497 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":560 */ |
|
2498 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 560; goto __pyx_L1;} |
|
2499 Py_DECREF(__pyx_v_plain_implicit); |
|
2500 __pyx_v_plain_implicit = __pyx_4; |
|
2501 __pyx_4 = 0; |
|
2502 |
|
2503 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":561 */ |
|
2504 __pyx_5 = (__pyx_v_event->data.scalar.plain_implicit == 1); |
|
2505 if (__pyx_5) { |
|
2506 |
|
2507 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":562 */ |
|
2508 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; goto __pyx_L1;} |
|
2509 Py_DECREF(__pyx_v_plain_implicit); |
|
2510 __pyx_v_plain_implicit = __pyx_1; |
|
2511 __pyx_1 = 0; |
|
2512 goto __pyx_L12; |
|
2513 } |
|
2514 __pyx_L12:; |
|
2515 |
|
2516 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":563 */ |
|
2517 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; goto __pyx_L1;} |
|
2518 Py_DECREF(__pyx_v_quoted_implicit); |
|
2519 __pyx_v_quoted_implicit = __pyx_2; |
|
2520 __pyx_2 = 0; |
|
2521 |
|
2522 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":564 */ |
|
2523 __pyx_5 = (__pyx_v_event->data.scalar.quoted_implicit == 1); |
|
2524 if (__pyx_5) { |
|
2525 |
|
2526 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":565 */ |
|
2527 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; goto __pyx_L1;} |
|
2528 Py_DECREF(__pyx_v_quoted_implicit); |
|
2529 __pyx_v_quoted_implicit = __pyx_3; |
|
2530 __pyx_3 = 0; |
|
2531 goto __pyx_L13; |
|
2532 } |
|
2533 __pyx_L13:; |
|
2534 |
|
2535 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":566 */ |
|
2536 Py_INCREF(Py_None); |
|
2537 Py_DECREF(__pyx_v_style); |
|
2538 __pyx_v_style = Py_None; |
|
2539 |
|
2540 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":567 */ |
|
2541 __pyx_5 = (__pyx_v_event->data.scalar.style == YAML_PLAIN_SCALAR_STYLE); |
|
2542 if (__pyx_5) { |
|
2543 |
|
2544 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":568 */ |
|
2545 Py_INCREF(__pyx_k45p); |
|
2546 Py_DECREF(__pyx_v_style); |
|
2547 __pyx_v_style = __pyx_k45p; |
|
2548 goto __pyx_L14; |
|
2549 } |
|
2550 __pyx_5 = (__pyx_v_event->data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE); |
|
2551 if (__pyx_5) { |
|
2552 |
|
2553 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":570 */ |
|
2554 Py_INCREF(__pyx_k46p); |
|
2555 Py_DECREF(__pyx_v_style); |
|
2556 __pyx_v_style = __pyx_k46p; |
|
2557 goto __pyx_L14; |
|
2558 } |
|
2559 __pyx_5 = (__pyx_v_event->data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE); |
|
2560 if (__pyx_5) { |
|
2561 |
|
2562 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":572 */ |
|
2563 Py_INCREF(__pyx_k47p); |
|
2564 Py_DECREF(__pyx_v_style); |
|
2565 __pyx_v_style = __pyx_k47p; |
|
2566 goto __pyx_L14; |
|
2567 } |
|
2568 __pyx_5 = (__pyx_v_event->data.scalar.style == YAML_LITERAL_SCALAR_STYLE); |
|
2569 if (__pyx_5) { |
|
2570 |
|
2571 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":574 */ |
|
2572 Py_INCREF(__pyx_k48p); |
|
2573 Py_DECREF(__pyx_v_style); |
|
2574 __pyx_v_style = __pyx_k48p; |
|
2575 goto __pyx_L14; |
|
2576 } |
|
2577 __pyx_5 = (__pyx_v_event->data.scalar.style == YAML_FOLDED_SCALAR_STYLE); |
|
2578 if (__pyx_5) { |
|
2579 |
|
2580 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":576 */ |
|
2581 Py_INCREF(__pyx_k49p); |
|
2582 Py_DECREF(__pyx_v_style); |
|
2583 __pyx_v_style = __pyx_k49p; |
|
2584 goto __pyx_L14; |
|
2585 } |
|
2586 __pyx_L14:; |
|
2587 |
|
2588 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":577 */ |
|
2589 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_ScalarEvent); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; goto __pyx_L1;} |
|
2590 __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; goto __pyx_L1;} |
|
2591 Py_INCREF(__pyx_v_plain_implicit); |
|
2592 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_plain_implicit); |
|
2593 Py_INCREF(__pyx_v_quoted_implicit); |
|
2594 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_quoted_implicit); |
|
2595 __pyx_2 = PyTuple_New(7); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; goto __pyx_L1;} |
|
2596 Py_INCREF(__pyx_v_anchor); |
|
2597 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_anchor); |
|
2598 Py_INCREF(__pyx_v_tag); |
|
2599 PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_tag); |
|
2600 PyTuple_SET_ITEM(__pyx_2, 2, __pyx_1); |
|
2601 Py_INCREF(__pyx_v_value); |
|
2602 PyTuple_SET_ITEM(__pyx_2, 3, __pyx_v_value); |
|
2603 Py_INCREF(__pyx_v_start_mark); |
|
2604 PyTuple_SET_ITEM(__pyx_2, 4, __pyx_v_start_mark); |
|
2605 Py_INCREF(__pyx_v_end_mark); |
|
2606 PyTuple_SET_ITEM(__pyx_2, 5, __pyx_v_end_mark); |
|
2607 Py_INCREF(__pyx_v_style); |
|
2608 PyTuple_SET_ITEM(__pyx_2, 6, __pyx_v_style); |
|
2609 __pyx_1 = 0; |
|
2610 __pyx_3 = PyObject_CallObject(__pyx_4, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; goto __pyx_L1;} |
|
2611 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
2612 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
2613 __pyx_r = __pyx_3; |
|
2614 __pyx_3 = 0; |
|
2615 goto __pyx_L0; |
|
2616 goto __pyx_L2; |
|
2617 } |
|
2618 __pyx_5 = (__pyx_v_event->type == YAML_SEQUENCE_START_EVENT); |
|
2619 if (__pyx_5) { |
|
2620 |
|
2621 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":581 */ |
|
2622 Py_INCREF(Py_None); |
|
2623 Py_DECREF(__pyx_v_anchor); |
|
2624 __pyx_v_anchor = Py_None; |
|
2625 |
|
2626 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":582 */ |
|
2627 __pyx_5 = (__pyx_v_event->data.sequence_start.anchor != 0); |
|
2628 if (__pyx_5) { |
|
2629 |
|
2630 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":583 */ |
|
2631 __pyx_1 = PyUnicode_DecodeUTF8(__pyx_v_event->data.sequence_start.anchor,strlen(__pyx_v_event->data.sequence_start.anchor),__pyx_k50); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; goto __pyx_L1;} |
|
2632 Py_DECREF(__pyx_v_anchor); |
|
2633 __pyx_v_anchor = __pyx_1; |
|
2634 __pyx_1 = 0; |
|
2635 goto __pyx_L15; |
|
2636 } |
|
2637 __pyx_L15:; |
|
2638 |
|
2639 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":585 */ |
|
2640 Py_INCREF(Py_None); |
|
2641 Py_DECREF(__pyx_v_tag); |
|
2642 __pyx_v_tag = Py_None; |
|
2643 |
|
2644 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":586 */ |
|
2645 __pyx_5 = (__pyx_v_event->data.sequence_start.tag != 0); |
|
2646 if (__pyx_5) { |
|
2647 |
|
2648 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":587 */ |
|
2649 __pyx_4 = PyUnicode_DecodeUTF8(__pyx_v_event->data.sequence_start.tag,strlen(__pyx_v_event->data.sequence_start.tag),__pyx_k51); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; goto __pyx_L1;} |
|
2650 Py_DECREF(__pyx_v_tag); |
|
2651 __pyx_v_tag = __pyx_4; |
|
2652 __pyx_4 = 0; |
|
2653 goto __pyx_L16; |
|
2654 } |
|
2655 __pyx_L16:; |
|
2656 |
|
2657 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":589 */ |
|
2658 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; goto __pyx_L1;} |
|
2659 Py_DECREF(__pyx_v_implicit); |
|
2660 __pyx_v_implicit = __pyx_2; |
|
2661 __pyx_2 = 0; |
|
2662 |
|
2663 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":590 */ |
|
2664 __pyx_5 = (__pyx_v_event->data.sequence_start.implicit == 1); |
|
2665 if (__pyx_5) { |
|
2666 |
|
2667 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":591 */ |
|
2668 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; goto __pyx_L1;} |
|
2669 Py_DECREF(__pyx_v_implicit); |
|
2670 __pyx_v_implicit = __pyx_3; |
|
2671 __pyx_3 = 0; |
|
2672 goto __pyx_L17; |
|
2673 } |
|
2674 __pyx_L17:; |
|
2675 |
|
2676 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":592 */ |
|
2677 Py_INCREF(Py_None); |
|
2678 Py_DECREF(__pyx_v_flow_style); |
|
2679 __pyx_v_flow_style = Py_None; |
|
2680 |
|
2681 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":593 */ |
|
2682 __pyx_5 = (__pyx_v_event->data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE); |
|
2683 if (__pyx_5) { |
|
2684 |
|
2685 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":594 */ |
|
2686 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; goto __pyx_L1;} |
|
2687 Py_DECREF(__pyx_v_flow_style); |
|
2688 __pyx_v_flow_style = __pyx_1; |
|
2689 __pyx_1 = 0; |
|
2690 goto __pyx_L18; |
|
2691 } |
|
2692 __pyx_5 = (__pyx_v_event->data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE); |
|
2693 if (__pyx_5) { |
|
2694 |
|
2695 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":596 */ |
|
2696 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; goto __pyx_L1;} |
|
2697 Py_DECREF(__pyx_v_flow_style); |
|
2698 __pyx_v_flow_style = __pyx_4; |
|
2699 __pyx_4 = 0; |
|
2700 goto __pyx_L18; |
|
2701 } |
|
2702 __pyx_L18:; |
|
2703 |
|
2704 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":597 */ |
|
2705 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_SequenceStartEvent); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; goto __pyx_L1;} |
|
2706 __pyx_3 = PyTuple_New(6); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; goto __pyx_L1;} |
|
2707 Py_INCREF(__pyx_v_anchor); |
|
2708 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_anchor); |
|
2709 Py_INCREF(__pyx_v_tag); |
|
2710 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_tag); |
|
2711 Py_INCREF(__pyx_v_implicit); |
|
2712 PyTuple_SET_ITEM(__pyx_3, 2, __pyx_v_implicit); |
|
2713 Py_INCREF(__pyx_v_start_mark); |
|
2714 PyTuple_SET_ITEM(__pyx_3, 3, __pyx_v_start_mark); |
|
2715 Py_INCREF(__pyx_v_end_mark); |
|
2716 PyTuple_SET_ITEM(__pyx_3, 4, __pyx_v_end_mark); |
|
2717 Py_INCREF(__pyx_v_flow_style); |
|
2718 PyTuple_SET_ITEM(__pyx_3, 5, __pyx_v_flow_style); |
|
2719 __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; goto __pyx_L1;} |
|
2720 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
2721 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
2722 __pyx_r = __pyx_1; |
|
2723 __pyx_1 = 0; |
|
2724 goto __pyx_L0; |
|
2725 goto __pyx_L2; |
|
2726 } |
|
2727 __pyx_5 = (__pyx_v_event->type == YAML_MAPPING_START_EVENT); |
|
2728 if (__pyx_5) { |
|
2729 |
|
2730 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":600 */ |
|
2731 Py_INCREF(Py_None); |
|
2732 Py_DECREF(__pyx_v_anchor); |
|
2733 __pyx_v_anchor = Py_None; |
|
2734 |
|
2735 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":601 */ |
|
2736 __pyx_5 = (__pyx_v_event->data.mapping_start.anchor != 0); |
|
2737 if (__pyx_5) { |
|
2738 |
|
2739 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":602 */ |
|
2740 __pyx_4 = PyUnicode_DecodeUTF8(__pyx_v_event->data.mapping_start.anchor,strlen(__pyx_v_event->data.mapping_start.anchor),__pyx_k52); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; goto __pyx_L1;} |
|
2741 Py_DECREF(__pyx_v_anchor); |
|
2742 __pyx_v_anchor = __pyx_4; |
|
2743 __pyx_4 = 0; |
|
2744 goto __pyx_L19; |
|
2745 } |
|
2746 __pyx_L19:; |
|
2747 |
|
2748 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":604 */ |
|
2749 Py_INCREF(Py_None); |
|
2750 Py_DECREF(__pyx_v_tag); |
|
2751 __pyx_v_tag = Py_None; |
|
2752 |
|
2753 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":605 */ |
|
2754 __pyx_5 = (__pyx_v_event->data.mapping_start.tag != 0); |
|
2755 if (__pyx_5) { |
|
2756 |
|
2757 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":606 */ |
|
2758 __pyx_2 = PyUnicode_DecodeUTF8(__pyx_v_event->data.mapping_start.tag,strlen(__pyx_v_event->data.mapping_start.tag),__pyx_k53); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; goto __pyx_L1;} |
|
2759 Py_DECREF(__pyx_v_tag); |
|
2760 __pyx_v_tag = __pyx_2; |
|
2761 __pyx_2 = 0; |
|
2762 goto __pyx_L20; |
|
2763 } |
|
2764 __pyx_L20:; |
|
2765 |
|
2766 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":608 */ |
|
2767 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; goto __pyx_L1;} |
|
2768 Py_DECREF(__pyx_v_implicit); |
|
2769 __pyx_v_implicit = __pyx_3; |
|
2770 __pyx_3 = 0; |
|
2771 |
|
2772 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":609 */ |
|
2773 __pyx_5 = (__pyx_v_event->data.mapping_start.implicit == 1); |
|
2774 if (__pyx_5) { |
|
2775 |
|
2776 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":610 */ |
|
2777 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; goto __pyx_L1;} |
|
2778 Py_DECREF(__pyx_v_implicit); |
|
2779 __pyx_v_implicit = __pyx_1; |
|
2780 __pyx_1 = 0; |
|
2781 goto __pyx_L21; |
|
2782 } |
|
2783 __pyx_L21:; |
|
2784 |
|
2785 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":611 */ |
|
2786 Py_INCREF(Py_None); |
|
2787 Py_DECREF(__pyx_v_flow_style); |
|
2788 __pyx_v_flow_style = Py_None; |
|
2789 |
|
2790 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":612 */ |
|
2791 __pyx_5 = (__pyx_v_event->data.mapping_start.style == YAML_FLOW_SEQUENCE_STYLE); |
|
2792 if (__pyx_5) { |
|
2793 |
|
2794 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":613 */ |
|
2795 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 613; goto __pyx_L1;} |
|
2796 Py_DECREF(__pyx_v_flow_style); |
|
2797 __pyx_v_flow_style = __pyx_4; |
|
2798 __pyx_4 = 0; |
|
2799 goto __pyx_L22; |
|
2800 } |
|
2801 __pyx_5 = (__pyx_v_event->data.mapping_start.style == YAML_BLOCK_SEQUENCE_STYLE); |
|
2802 if (__pyx_5) { |
|
2803 |
|
2804 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":615 */ |
|
2805 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; goto __pyx_L1;} |
|
2806 Py_DECREF(__pyx_v_flow_style); |
|
2807 __pyx_v_flow_style = __pyx_2; |
|
2808 __pyx_2 = 0; |
|
2809 goto __pyx_L22; |
|
2810 } |
|
2811 __pyx_L22:; |
|
2812 |
|
2813 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":616 */ |
|
2814 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_MappingStartEvent); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; goto __pyx_L1;} |
|
2815 __pyx_1 = PyTuple_New(6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; goto __pyx_L1;} |
|
2816 Py_INCREF(__pyx_v_anchor); |
|
2817 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_anchor); |
|
2818 Py_INCREF(__pyx_v_tag); |
|
2819 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_v_tag); |
|
2820 Py_INCREF(__pyx_v_implicit); |
|
2821 PyTuple_SET_ITEM(__pyx_1, 2, __pyx_v_implicit); |
|
2822 Py_INCREF(__pyx_v_start_mark); |
|
2823 PyTuple_SET_ITEM(__pyx_1, 3, __pyx_v_start_mark); |
|
2824 Py_INCREF(__pyx_v_end_mark); |
|
2825 PyTuple_SET_ITEM(__pyx_1, 4, __pyx_v_end_mark); |
|
2826 Py_INCREF(__pyx_v_flow_style); |
|
2827 PyTuple_SET_ITEM(__pyx_1, 5, __pyx_v_flow_style); |
|
2828 __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; goto __pyx_L1;} |
|
2829 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
2830 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
2831 __pyx_r = __pyx_4; |
|
2832 __pyx_4 = 0; |
|
2833 goto __pyx_L0; |
|
2834 goto __pyx_L2; |
|
2835 } |
|
2836 __pyx_5 = (__pyx_v_event->type == YAML_SEQUENCE_END_EVENT); |
|
2837 if (__pyx_5) { |
|
2838 |
|
2839 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":619 */ |
|
2840 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_SequenceEndEvent); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; goto __pyx_L1;} |
|
2841 __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; goto __pyx_L1;} |
|
2842 Py_INCREF(__pyx_v_start_mark); |
|
2843 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_start_mark); |
|
2844 Py_INCREF(__pyx_v_end_mark); |
|
2845 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_end_mark); |
|
2846 __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; goto __pyx_L1;} |
|
2847 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
2848 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
2849 __pyx_r = __pyx_1; |
|
2850 __pyx_1 = 0; |
|
2851 goto __pyx_L0; |
|
2852 goto __pyx_L2; |
|
2853 } |
|
2854 __pyx_5 = (__pyx_v_event->type == YAML_MAPPING_END_EVENT); |
|
2855 if (__pyx_5) { |
|
2856 |
|
2857 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":621 */ |
|
2858 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_MappingEndEvent); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; goto __pyx_L1;} |
|
2859 __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; goto __pyx_L1;} |
|
2860 Py_INCREF(__pyx_v_start_mark); |
|
2861 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_start_mark); |
|
2862 Py_INCREF(__pyx_v_end_mark); |
|
2863 PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_end_mark); |
|
2864 __pyx_3 = PyObject_CallObject(__pyx_4, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; goto __pyx_L1;} |
|
2865 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
2866 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
2867 __pyx_r = __pyx_3; |
|
2868 __pyx_3 = 0; |
|
2869 goto __pyx_L0; |
|
2870 goto __pyx_L2; |
|
2871 } |
|
2872 /*else*/ { |
|
2873 |
|
2874 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":624 */ |
|
2875 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; goto __pyx_L1;} |
|
2876 __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; goto __pyx_L1;} |
|
2877 Py_INCREF(__pyx_k54p); |
|
2878 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k54p); |
|
2879 __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; goto __pyx_L1;} |
|
2880 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
2881 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
2882 __Pyx_Raise(__pyx_2, 0, 0); |
|
2883 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
2884 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; goto __pyx_L1;} |
|
2885 } |
|
2886 __pyx_L2:; |
|
2887 |
|
2888 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
2889 goto __pyx_L0; |
|
2890 __pyx_L1:; |
|
2891 Py_XDECREF(__pyx_1); |
|
2892 Py_XDECREF(__pyx_2); |
|
2893 Py_XDECREF(__pyx_3); |
|
2894 Py_XDECREF(__pyx_4); |
|
2895 __Pyx_AddTraceback("_yaml.CParser._event_to_object"); |
|
2896 __pyx_r = 0; |
|
2897 __pyx_L0:; |
|
2898 Py_DECREF(__pyx_v_start_mark); |
|
2899 Py_DECREF(__pyx_v_end_mark); |
|
2900 Py_DECREF(__pyx_v_encoding); |
|
2901 Py_DECREF(__pyx_v_explicit); |
|
2902 Py_DECREF(__pyx_v_version); |
|
2903 Py_DECREF(__pyx_v_tags); |
|
2904 Py_DECREF(__pyx_v_handle); |
|
2905 Py_DECREF(__pyx_v_prefix); |
|
2906 Py_DECREF(__pyx_v_anchor); |
|
2907 Py_DECREF(__pyx_v_tag); |
|
2908 Py_DECREF(__pyx_v_value); |
|
2909 Py_DECREF(__pyx_v_plain_implicit); |
|
2910 Py_DECREF(__pyx_v_quoted_implicit); |
|
2911 Py_DECREF(__pyx_v_style); |
|
2912 Py_DECREF(__pyx_v_implicit); |
|
2913 Py_DECREF(__pyx_v_flow_style); |
|
2914 Py_DECREF(__pyx_v_self); |
|
2915 return __pyx_r; |
|
2916 } |
|
2917 |
|
2918 static PyObject *__pyx_f_5_yaml_7CParser_get_event(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
2919 static PyObject *__pyx_f_5_yaml_7CParser_get_event(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
2920 PyObject *__pyx_v_value; |
|
2921 PyObject *__pyx_r; |
|
2922 int __pyx_1; |
|
2923 PyObject *__pyx_2 = 0; |
|
2924 static char *__pyx_argnames[] = {0}; |
|
2925 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; |
|
2926 Py_INCREF(__pyx_v_self); |
|
2927 __pyx_v_value = Py_None; Py_INCREF(Py_None); |
|
2928 |
|
2929 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":627 */ |
|
2930 __pyx_1 = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event != Py_None; |
|
2931 if (__pyx_1) { |
|
2932 |
|
2933 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":628 */ |
|
2934 Py_INCREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event); |
|
2935 Py_DECREF(__pyx_v_value); |
|
2936 __pyx_v_value = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event; |
|
2937 |
|
2938 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":629 */ |
|
2939 Py_INCREF(Py_None); |
|
2940 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event); |
|
2941 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event = Py_None; |
|
2942 goto __pyx_L2; |
|
2943 } |
|
2944 /*else*/ { |
|
2945 |
|
2946 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":631 */ |
|
2947 __pyx_2 = ((struct __pyx_vtabstruct_5_yaml_CParser *)((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->__pyx_vtab)->_parse(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 631; goto __pyx_L1;} |
|
2948 Py_DECREF(__pyx_v_value); |
|
2949 __pyx_v_value = __pyx_2; |
|
2950 __pyx_2 = 0; |
|
2951 } |
|
2952 __pyx_L2:; |
|
2953 |
|
2954 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":632 */ |
|
2955 Py_INCREF(__pyx_v_value); |
|
2956 __pyx_r = __pyx_v_value; |
|
2957 goto __pyx_L0; |
|
2958 |
|
2959 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
2960 goto __pyx_L0; |
|
2961 __pyx_L1:; |
|
2962 Py_XDECREF(__pyx_2); |
|
2963 __Pyx_AddTraceback("_yaml.CParser.get_event"); |
|
2964 __pyx_r = 0; |
|
2965 __pyx_L0:; |
|
2966 Py_DECREF(__pyx_v_value); |
|
2967 Py_DECREF(__pyx_v_self); |
|
2968 return __pyx_r; |
|
2969 } |
|
2970 |
|
2971 static PyObject *__pyx_f_5_yaml_7CParser_peek_event(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
2972 static PyObject *__pyx_f_5_yaml_7CParser_peek_event(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
2973 PyObject *__pyx_r; |
|
2974 int __pyx_1; |
|
2975 PyObject *__pyx_2 = 0; |
|
2976 static char *__pyx_argnames[] = {0}; |
|
2977 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; |
|
2978 Py_INCREF(__pyx_v_self); |
|
2979 |
|
2980 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":635 */ |
|
2981 __pyx_1 = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event == Py_None; |
|
2982 if (__pyx_1) { |
|
2983 |
|
2984 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":636 */ |
|
2985 __pyx_2 = ((struct __pyx_vtabstruct_5_yaml_CParser *)((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->__pyx_vtab)->_parse(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 636; goto __pyx_L1;} |
|
2986 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event); |
|
2987 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event = __pyx_2; |
|
2988 __pyx_2 = 0; |
|
2989 goto __pyx_L2; |
|
2990 } |
|
2991 __pyx_L2:; |
|
2992 |
|
2993 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":637 */ |
|
2994 Py_INCREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event); |
|
2995 __pyx_r = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event; |
|
2996 goto __pyx_L0; |
|
2997 |
|
2998 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
2999 goto __pyx_L0; |
|
3000 __pyx_L1:; |
|
3001 Py_XDECREF(__pyx_2); |
|
3002 __Pyx_AddTraceback("_yaml.CParser.peek_event"); |
|
3003 __pyx_r = 0; |
|
3004 __pyx_L0:; |
|
3005 Py_DECREF(__pyx_v_self); |
|
3006 return __pyx_r; |
|
3007 } |
|
3008 |
|
3009 static PyObject *__pyx_f_5_yaml_7CParser_check_event(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
3010 static PyObject *__pyx_f_5_yaml_7CParser_check_event(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
3011 PyObject *__pyx_v_choices = 0; |
|
3012 PyObject *__pyx_v_event_class; |
|
3013 PyObject *__pyx_v_choice; |
|
3014 PyObject *__pyx_r; |
|
3015 int __pyx_1; |
|
3016 PyObject *__pyx_2 = 0; |
|
3017 int __pyx_3; |
|
3018 PyObject *__pyx_4 = 0; |
|
3019 static char *__pyx_argnames[] = {0}; |
|
3020 if (__Pyx_GetStarArgs(&__pyx_args, &__pyx_kwds, __pyx_argnames, 0, &__pyx_v_choices, 0) < 0) return 0; |
|
3021 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) { |
|
3022 Py_XDECREF(__pyx_args); |
|
3023 Py_XDECREF(__pyx_kwds); |
|
3024 Py_XDECREF(__pyx_v_choices); |
|
3025 return 0; |
|
3026 } |
|
3027 Py_INCREF(__pyx_v_self); |
|
3028 __pyx_v_event_class = Py_None; Py_INCREF(Py_None); |
|
3029 __pyx_v_choice = Py_None; Py_INCREF(Py_None); |
|
3030 |
|
3031 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":640 */ |
|
3032 __pyx_1 = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event == Py_None; |
|
3033 if (__pyx_1) { |
|
3034 |
|
3035 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":641 */ |
|
3036 __pyx_2 = ((struct __pyx_vtabstruct_5_yaml_CParser *)((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->__pyx_vtab)->_parse(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 641; goto __pyx_L1;} |
|
3037 Py_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event); |
|
3038 ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event = __pyx_2; |
|
3039 __pyx_2 = 0; |
|
3040 goto __pyx_L2; |
|
3041 } |
|
3042 __pyx_L2:; |
|
3043 |
|
3044 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":642 */ |
|
3045 __pyx_1 = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event == Py_None; |
|
3046 if (__pyx_1) { |
|
3047 |
|
3048 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":643 */ |
|
3049 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; goto __pyx_L1;} |
|
3050 __pyx_r = __pyx_2; |
|
3051 __pyx_2 = 0; |
|
3052 goto __pyx_L0; |
|
3053 goto __pyx_L3; |
|
3054 } |
|
3055 __pyx_L3:; |
|
3056 |
|
3057 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":644 */ |
|
3058 __pyx_1 = PyObject_IsTrue(__pyx_v_choices); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; goto __pyx_L1;} |
|
3059 __pyx_3 = (!__pyx_1); |
|
3060 if (__pyx_3) { |
|
3061 |
|
3062 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":645 */ |
|
3063 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; goto __pyx_L1;} |
|
3064 __pyx_r = __pyx_2; |
|
3065 __pyx_2 = 0; |
|
3066 goto __pyx_L0; |
|
3067 goto __pyx_L4; |
|
3068 } |
|
3069 __pyx_L4:; |
|
3070 |
|
3071 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":646 */ |
|
3072 __pyx_2 = PyObject_GetAttr(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event, __pyx_n___class__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 646; goto __pyx_L1;} |
|
3073 Py_DECREF(__pyx_v_event_class); |
|
3074 __pyx_v_event_class = __pyx_2; |
|
3075 __pyx_2 = 0; |
|
3076 |
|
3077 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":647 */ |
|
3078 __pyx_2 = PyObject_GetIter(__pyx_v_choices); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; goto __pyx_L1;} |
|
3079 for (;;) { |
|
3080 __pyx_L5:; |
|
3081 __pyx_4 = PyIter_Next(__pyx_2); |
|
3082 if (!__pyx_4) { |
|
3083 if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; goto __pyx_L1;} |
|
3084 break; |
|
3085 } |
|
3086 Py_DECREF(__pyx_v_choice); |
|
3087 __pyx_v_choice = __pyx_4; |
|
3088 __pyx_4 = 0; |
|
3089 |
|
3090 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":648 */ |
|
3091 __pyx_1 = __pyx_v_event_class == __pyx_v_choice; |
|
3092 if (__pyx_1) { |
|
3093 |
|
3094 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":649 */ |
|
3095 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
3096 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 649; goto __pyx_L1;} |
|
3097 __pyx_r = __pyx_4; |
|
3098 __pyx_4 = 0; |
|
3099 goto __pyx_L0; |
|
3100 goto __pyx_L7; |
|
3101 } |
|
3102 __pyx_L7:; |
|
3103 } |
|
3104 __pyx_L6:; |
|
3105 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
3106 |
|
3107 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":650 */ |
|
3108 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; goto __pyx_L1;} |
|
3109 __pyx_r = __pyx_4; |
|
3110 __pyx_4 = 0; |
|
3111 goto __pyx_L0; |
|
3112 |
|
3113 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
3114 goto __pyx_L0; |
|
3115 __pyx_L1:; |
|
3116 Py_XDECREF(__pyx_2); |
|
3117 Py_XDECREF(__pyx_4); |
|
3118 __Pyx_AddTraceback("_yaml.CParser.check_event"); |
|
3119 __pyx_r = 0; |
|
3120 __pyx_L0:; |
|
3121 Py_XDECREF(__pyx_v_choices); |
|
3122 Py_DECREF(__pyx_v_event_class); |
|
3123 Py_DECREF(__pyx_v_choice); |
|
3124 Py_DECREF(__pyx_v_self); |
|
3125 Py_XDECREF(__pyx_args); |
|
3126 Py_XDECREF(__pyx_kwds); |
|
3127 return __pyx_r; |
|
3128 } |
|
3129 |
|
3130 static PyObject *__pyx_f_5_yaml_7CParser_check_node(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
3131 static PyObject *__pyx_f_5_yaml_7CParser_check_node(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
3132 PyObject *__pyx_r; |
|
3133 int __pyx_1; |
|
3134 PyObject *__pyx_2 = 0; |
|
3135 static char *__pyx_argnames[] = {0}; |
|
3136 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; |
|
3137 Py_INCREF(__pyx_v_self); |
|
3138 |
|
3139 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":653 */ |
|
3140 __pyx_1 = ((struct __pyx_vtabstruct_5_yaml_CParser *)((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->__pyx_vtab)->_parse_next_event(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)); if (__pyx_1 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; goto __pyx_L1;} |
|
3141 |
|
3142 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":654 */ |
|
3143 __pyx_1 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event.type == YAML_STREAM_START_EVENT); |
|
3144 if (__pyx_1) { |
|
3145 |
|
3146 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":655 */ |
|
3147 yaml_event_delete((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event)); |
|
3148 |
|
3149 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":656 */ |
|
3150 __pyx_1 = ((struct __pyx_vtabstruct_5_yaml_CParser *)((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->__pyx_vtab)->_parse_next_event(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)); if (__pyx_1 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; goto __pyx_L1;} |
|
3151 goto __pyx_L2; |
|
3152 } |
|
3153 __pyx_L2:; |
|
3154 |
|
3155 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":657 */ |
|
3156 __pyx_1 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event.type != YAML_STREAM_END_EVENT); |
|
3157 if (__pyx_1) { |
|
3158 |
|
3159 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":658 */ |
|
3160 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 658; goto __pyx_L1;} |
|
3161 __pyx_r = __pyx_2; |
|
3162 __pyx_2 = 0; |
|
3163 goto __pyx_L0; |
|
3164 goto __pyx_L3; |
|
3165 } |
|
3166 __pyx_L3:; |
|
3167 |
|
3168 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":659 */ |
|
3169 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; goto __pyx_L1;} |
|
3170 __pyx_r = __pyx_2; |
|
3171 __pyx_2 = 0; |
|
3172 goto __pyx_L0; |
|
3173 |
|
3174 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
3175 goto __pyx_L0; |
|
3176 __pyx_L1:; |
|
3177 Py_XDECREF(__pyx_2); |
|
3178 __Pyx_AddTraceback("_yaml.CParser.check_node"); |
|
3179 __pyx_r = 0; |
|
3180 __pyx_L0:; |
|
3181 Py_DECREF(__pyx_v_self); |
|
3182 return __pyx_r; |
|
3183 } |
|
3184 |
|
3185 static PyObject *__pyx_f_5_yaml_7CParser_get_node(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
3186 static PyObject *__pyx_f_5_yaml_7CParser_get_node(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
3187 PyObject *__pyx_r; |
|
3188 int __pyx_1; |
|
3189 PyObject *__pyx_2 = 0; |
|
3190 static char *__pyx_argnames[] = {0}; |
|
3191 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; |
|
3192 Py_INCREF(__pyx_v_self); |
|
3193 |
|
3194 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":662 */ |
|
3195 __pyx_1 = ((struct __pyx_vtabstruct_5_yaml_CParser *)((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->__pyx_vtab)->_parse_next_event(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)); if (__pyx_1 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; goto __pyx_L1;} |
|
3196 |
|
3197 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":663 */ |
|
3198 __pyx_1 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event.type != YAML_STREAM_END_EVENT); |
|
3199 if (__pyx_1) { |
|
3200 |
|
3201 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":664 */ |
|
3202 __pyx_2 = ((struct __pyx_vtabstruct_5_yaml_CParser *)((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->__pyx_vtab)->_compose_document(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 664; goto __pyx_L1;} |
|
3203 __pyx_r = __pyx_2; |
|
3204 __pyx_2 = 0; |
|
3205 goto __pyx_L0; |
|
3206 goto __pyx_L2; |
|
3207 } |
|
3208 __pyx_L2:; |
|
3209 |
|
3210 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
3211 goto __pyx_L0; |
|
3212 __pyx_L1:; |
|
3213 Py_XDECREF(__pyx_2); |
|
3214 __Pyx_AddTraceback("_yaml.CParser.get_node"); |
|
3215 __pyx_r = 0; |
|
3216 __pyx_L0:; |
|
3217 Py_DECREF(__pyx_v_self); |
|
3218 return __pyx_r; |
|
3219 } |
|
3220 |
|
3221 static PyObject *__pyx_f_5_yaml_7CParser__compose_document(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) { |
|
3222 PyObject *__pyx_v_node; |
|
3223 PyObject *__pyx_r; |
|
3224 PyObject *__pyx_1 = 0; |
|
3225 int __pyx_2; |
|
3226 Py_INCREF(__pyx_v_self); |
|
3227 __pyx_v_node = Py_None; Py_INCREF(Py_None); |
|
3228 |
|
3229 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":667 */ |
|
3230 yaml_event_delete((&__pyx_v_self->parsed_event)); |
|
3231 |
|
3232 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":668 */ |
|
3233 __pyx_1 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_node(__pyx_v_self,Py_None,Py_None); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; goto __pyx_L1;} |
|
3234 Py_DECREF(__pyx_v_node); |
|
3235 __pyx_v_node = __pyx_1; |
|
3236 __pyx_1 = 0; |
|
3237 |
|
3238 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":669 */ |
|
3239 __pyx_2 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parse_next_event(__pyx_v_self); if (__pyx_2 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; goto __pyx_L1;} |
|
3240 |
|
3241 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":670 */ |
|
3242 yaml_event_delete((&__pyx_v_self->parsed_event)); |
|
3243 |
|
3244 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":671 */ |
|
3245 __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; goto __pyx_L1;} |
|
3246 Py_DECREF(__pyx_v_self->anchors); |
|
3247 __pyx_v_self->anchors = __pyx_1; |
|
3248 __pyx_1 = 0; |
|
3249 |
|
3250 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":672 */ |
|
3251 Py_INCREF(__pyx_v_node); |
|
3252 __pyx_r = __pyx_v_node; |
|
3253 goto __pyx_L0; |
|
3254 |
|
3255 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
3256 goto __pyx_L0; |
|
3257 __pyx_L1:; |
|
3258 Py_XDECREF(__pyx_1); |
|
3259 __Pyx_AddTraceback("_yaml.CParser._compose_document"); |
|
3260 __pyx_r = 0; |
|
3261 __pyx_L0:; |
|
3262 Py_DECREF(__pyx_v_node); |
|
3263 Py_DECREF(__pyx_v_self); |
|
3264 return __pyx_r; |
|
3265 } |
|
3266 |
|
3267 static PyObject *__pyx_n_start_mark; |
|
3268 static PyObject *__pyx_n_descend_resolver; |
|
3269 static PyObject *__pyx_n_ascend_resolver; |
|
3270 |
|
3271 static PyObject *__pyx_k56p; |
|
3272 static PyObject *__pyx_k60p; |
|
3273 static PyObject *__pyx_k61p; |
|
3274 |
|
3275 static char (__pyx_k55[]) = "strict"; |
|
3276 static char (__pyx_k56[]) = "found undefined alias"; |
|
3277 static char (__pyx_k57[]) = "strict"; |
|
3278 static char (__pyx_k58[]) = "strict"; |
|
3279 static char (__pyx_k59[]) = "strict"; |
|
3280 static char (__pyx_k60[]) = "found duplicate anchor; first occurence"; |
|
3281 static char (__pyx_k61[]) = "second occurence"; |
|
3282 |
|
3283 static PyObject *__pyx_f_5_yaml_7CParser__compose_node(struct __pyx_obj_5_yaml_CParser *__pyx_v_self,PyObject *__pyx_v_parent,PyObject *__pyx_v_index) { |
|
3284 PyObject *__pyx_v_anchor; |
|
3285 PyObject *__pyx_v_mark; |
|
3286 PyObject *__pyx_v_node; |
|
3287 PyObject *__pyx_r; |
|
3288 int __pyx_1; |
|
3289 PyObject *__pyx_2 = 0; |
|
3290 PyObject *__pyx_3 = 0; |
|
3291 PyObject *__pyx_4 = 0; |
|
3292 PyObject *__pyx_5 = 0; |
|
3293 Py_INCREF(__pyx_v_self); |
|
3294 Py_INCREF(__pyx_v_parent); |
|
3295 Py_INCREF(__pyx_v_index); |
|
3296 __pyx_v_anchor = Py_None; Py_INCREF(Py_None); |
|
3297 __pyx_v_mark = Py_None; Py_INCREF(Py_None); |
|
3298 __pyx_v_node = Py_None; Py_INCREF(Py_None); |
|
3299 |
|
3300 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":675 */ |
|
3301 __pyx_1 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parse_next_event(__pyx_v_self); if (__pyx_1 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; goto __pyx_L1;} |
|
3302 |
|
3303 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":676 */ |
|
3304 __pyx_1 = (__pyx_v_self->parsed_event.type == YAML_ALIAS_EVENT); |
|
3305 if (__pyx_1) { |
|
3306 |
|
3307 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":677 */ |
|
3308 __pyx_2 = PyUnicode_DecodeUTF8(__pyx_v_self->parsed_event.data.alias.anchor,strlen(__pyx_v_self->parsed_event.data.alias.anchor),__pyx_k55); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; goto __pyx_L1;} |
|
3309 Py_DECREF(__pyx_v_anchor); |
|
3310 __pyx_v_anchor = __pyx_2; |
|
3311 __pyx_2 = 0; |
|
3312 |
|
3313 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":679 */ |
|
3314 __pyx_1 = PySequence_Contains(__pyx_v_self->anchors, __pyx_v_anchor); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; goto __pyx_L1;} |
|
3315 __pyx_1 = !__pyx_1; |
|
3316 if (__pyx_1) { |
|
3317 |
|
3318 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":680 */ |
|
3319 __pyx_2 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.index); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 681; goto __pyx_L1;} |
|
3320 __pyx_3 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.line); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; goto __pyx_L1;} |
|
3321 __pyx_4 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.column); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; goto __pyx_L1;} |
|
3322 __pyx_5 = PyTuple_New(6); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; goto __pyx_L1;} |
|
3323 Py_INCREF(__pyx_v_self->stream_name); |
|
3324 PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_self->stream_name); |
|
3325 PyTuple_SET_ITEM(__pyx_5, 1, __pyx_2); |
|
3326 PyTuple_SET_ITEM(__pyx_5, 2, __pyx_3); |
|
3327 PyTuple_SET_ITEM(__pyx_5, 3, __pyx_4); |
|
3328 Py_INCREF(Py_None); |
|
3329 PyTuple_SET_ITEM(__pyx_5, 4, Py_None); |
|
3330 Py_INCREF(Py_None); |
|
3331 PyTuple_SET_ITEM(__pyx_5, 5, Py_None); |
|
3332 __pyx_2 = 0; |
|
3333 __pyx_3 = 0; |
|
3334 __pyx_4 = 0; |
|
3335 __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_5); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; goto __pyx_L1;} |
|
3336 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
3337 Py_DECREF(__pyx_v_mark); |
|
3338 __pyx_v_mark = __pyx_2; |
|
3339 __pyx_2 = 0; |
|
3340 |
|
3341 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":685 */ |
|
3342 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_ComposerError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; goto __pyx_L1;} |
|
3343 __pyx_4 = PyTuple_New(4); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; goto __pyx_L1;} |
|
3344 Py_INCREF(Py_None); |
|
3345 PyTuple_SET_ITEM(__pyx_4, 0, Py_None); |
|
3346 Py_INCREF(Py_None); |
|
3347 PyTuple_SET_ITEM(__pyx_4, 1, Py_None); |
|
3348 Py_INCREF(__pyx_k56p); |
|
3349 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_k56p); |
|
3350 Py_INCREF(__pyx_v_mark); |
|
3351 PyTuple_SET_ITEM(__pyx_4, 3, __pyx_v_mark); |
|
3352 __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; goto __pyx_L1;} |
|
3353 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
3354 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
3355 __Pyx_Raise(__pyx_5, 0, 0); |
|
3356 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
3357 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; goto __pyx_L1;} |
|
3358 goto __pyx_L3; |
|
3359 } |
|
3360 __pyx_L3:; |
|
3361 |
|
3362 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":686 */ |
|
3363 yaml_event_delete((&__pyx_v_self->parsed_event)); |
|
3364 |
|
3365 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":687 */ |
|
3366 __pyx_2 = PyObject_GetItem(__pyx_v_self->anchors, __pyx_v_anchor); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; goto __pyx_L1;} |
|
3367 __pyx_r = __pyx_2; |
|
3368 __pyx_2 = 0; |
|
3369 goto __pyx_L0; |
|
3370 goto __pyx_L2; |
|
3371 } |
|
3372 __pyx_L2:; |
|
3373 |
|
3374 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":688 */ |
|
3375 Py_INCREF(Py_None); |
|
3376 Py_DECREF(__pyx_v_anchor); |
|
3377 __pyx_v_anchor = Py_None; |
|
3378 |
|
3379 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":689 */ |
|
3380 __pyx_1 = (__pyx_v_self->parsed_event.type == YAML_SCALAR_EVENT); |
|
3381 if (__pyx_1) { |
|
3382 __pyx_1 = (__pyx_v_self->parsed_event.data.scalar.anchor != 0); |
|
3383 } |
|
3384 if (__pyx_1) { |
|
3385 |
|
3386 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":691 */ |
|
3387 __pyx_3 = PyUnicode_DecodeUTF8(__pyx_v_self->parsed_event.data.scalar.anchor,strlen(__pyx_v_self->parsed_event.data.scalar.anchor),__pyx_k57); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; goto __pyx_L1;} |
|
3388 Py_DECREF(__pyx_v_anchor); |
|
3389 __pyx_v_anchor = __pyx_3; |
|
3390 __pyx_3 = 0; |
|
3391 goto __pyx_L4; |
|
3392 } |
|
3393 __pyx_1 = (__pyx_v_self->parsed_event.type == YAML_SEQUENCE_START_EVENT); |
|
3394 if (__pyx_1) { |
|
3395 __pyx_1 = (__pyx_v_self->parsed_event.data.sequence_start.anchor != 0); |
|
3396 } |
|
3397 if (__pyx_1) { |
|
3398 |
|
3399 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":695 */ |
|
3400 __pyx_4 = PyUnicode_DecodeUTF8(__pyx_v_self->parsed_event.data.sequence_start.anchor,strlen(__pyx_v_self->parsed_event.data.sequence_start.anchor),__pyx_k58); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; goto __pyx_L1;} |
|
3401 Py_DECREF(__pyx_v_anchor); |
|
3402 __pyx_v_anchor = __pyx_4; |
|
3403 __pyx_4 = 0; |
|
3404 goto __pyx_L4; |
|
3405 } |
|
3406 __pyx_1 = (__pyx_v_self->parsed_event.type == YAML_MAPPING_START_EVENT); |
|
3407 if (__pyx_1) { |
|
3408 __pyx_1 = (__pyx_v_self->parsed_event.data.mapping_start.anchor != 0); |
|
3409 } |
|
3410 if (__pyx_1) { |
|
3411 |
|
3412 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":699 */ |
|
3413 __pyx_5 = PyUnicode_DecodeUTF8(__pyx_v_self->parsed_event.data.mapping_start.anchor,strlen(__pyx_v_self->parsed_event.data.mapping_start.anchor),__pyx_k59); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; goto __pyx_L1;} |
|
3414 Py_DECREF(__pyx_v_anchor); |
|
3415 __pyx_v_anchor = __pyx_5; |
|
3416 __pyx_5 = 0; |
|
3417 goto __pyx_L4; |
|
3418 } |
|
3419 __pyx_L4:; |
|
3420 |
|
3421 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":701 */ |
|
3422 __pyx_1 = __pyx_v_anchor != Py_None; |
|
3423 if (__pyx_1) { |
|
3424 |
|
3425 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":702 */ |
|
3426 __pyx_1 = PySequence_Contains(__pyx_v_self->anchors, __pyx_v_anchor); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; goto __pyx_L1;} |
|
3427 if (__pyx_1) { |
|
3428 |
|
3429 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":703 */ |
|
3430 __pyx_2 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.index); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 704; goto __pyx_L1;} |
|
3431 __pyx_3 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.line); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 705; goto __pyx_L1;} |
|
3432 __pyx_4 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.column); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; goto __pyx_L1;} |
|
3433 __pyx_5 = PyTuple_New(6); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; goto __pyx_L1;} |
|
3434 Py_INCREF(__pyx_v_self->stream_name); |
|
3435 PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_self->stream_name); |
|
3436 PyTuple_SET_ITEM(__pyx_5, 1, __pyx_2); |
|
3437 PyTuple_SET_ITEM(__pyx_5, 2, __pyx_3); |
|
3438 PyTuple_SET_ITEM(__pyx_5, 3, __pyx_4); |
|
3439 Py_INCREF(Py_None); |
|
3440 PyTuple_SET_ITEM(__pyx_5, 4, Py_None); |
|
3441 Py_INCREF(Py_None); |
|
3442 PyTuple_SET_ITEM(__pyx_5, 5, Py_None); |
|
3443 __pyx_2 = 0; |
|
3444 __pyx_3 = 0; |
|
3445 __pyx_4 = 0; |
|
3446 __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_5); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; goto __pyx_L1;} |
|
3447 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
3448 Py_DECREF(__pyx_v_mark); |
|
3449 __pyx_v_mark = __pyx_2; |
|
3450 __pyx_2 = 0; |
|
3451 |
|
3452 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":708 */ |
|
3453 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_ComposerError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; goto __pyx_L1;} |
|
3454 __pyx_4 = PyObject_GetItem(__pyx_v_self->anchors, __pyx_v_anchor); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; goto __pyx_L1;} |
|
3455 __pyx_5 = PyObject_GetAttr(__pyx_4, __pyx_n_start_mark); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; goto __pyx_L1;} |
|
3456 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
3457 __pyx_2 = PyTuple_New(4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; goto __pyx_L1;} |
|
3458 Py_INCREF(__pyx_k60p); |
|
3459 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_k60p); |
|
3460 PyTuple_SET_ITEM(__pyx_2, 1, __pyx_5); |
|
3461 Py_INCREF(__pyx_k61p); |
|
3462 PyTuple_SET_ITEM(__pyx_2, 2, __pyx_k61p); |
|
3463 Py_INCREF(__pyx_v_mark); |
|
3464 PyTuple_SET_ITEM(__pyx_2, 3, __pyx_v_mark); |
|
3465 __pyx_5 = 0; |
|
3466 __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; goto __pyx_L1;} |
|
3467 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
3468 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
3469 __Pyx_Raise(__pyx_4, 0, 0); |
|
3470 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
3471 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; goto __pyx_L1;} |
|
3472 goto __pyx_L6; |
|
3473 } |
|
3474 __pyx_L6:; |
|
3475 goto __pyx_L5; |
|
3476 } |
|
3477 __pyx_L5:; |
|
3478 |
|
3479 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":710 */ |
|
3480 __pyx_5 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_descend_resolver); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; goto __pyx_L1;} |
|
3481 __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; goto __pyx_L1;} |
|
3482 Py_INCREF(__pyx_v_parent); |
|
3483 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_parent); |
|
3484 Py_INCREF(__pyx_v_index); |
|
3485 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_index); |
|
3486 __pyx_2 = PyObject_CallObject(__pyx_5, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; goto __pyx_L1;} |
|
3487 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
3488 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
3489 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
3490 |
|
3491 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":711 */ |
|
3492 __pyx_1 = (__pyx_v_self->parsed_event.type == YAML_SCALAR_EVENT); |
|
3493 if (__pyx_1) { |
|
3494 |
|
3495 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":712 */ |
|
3496 __pyx_4 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_scalar_node(__pyx_v_self,__pyx_v_anchor); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 712; goto __pyx_L1;} |
|
3497 Py_DECREF(__pyx_v_node); |
|
3498 __pyx_v_node = __pyx_4; |
|
3499 __pyx_4 = 0; |
|
3500 goto __pyx_L7; |
|
3501 } |
|
3502 __pyx_1 = (__pyx_v_self->parsed_event.type == YAML_SEQUENCE_START_EVENT); |
|
3503 if (__pyx_1) { |
|
3504 |
|
3505 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":714 */ |
|
3506 __pyx_5 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_sequence_node(__pyx_v_self,__pyx_v_anchor); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 714; goto __pyx_L1;} |
|
3507 Py_DECREF(__pyx_v_node); |
|
3508 __pyx_v_node = __pyx_5; |
|
3509 __pyx_5 = 0; |
|
3510 goto __pyx_L7; |
|
3511 } |
|
3512 __pyx_1 = (__pyx_v_self->parsed_event.type == YAML_MAPPING_START_EVENT); |
|
3513 if (__pyx_1) { |
|
3514 |
|
3515 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":716 */ |
|
3516 __pyx_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_mapping_node(__pyx_v_self,__pyx_v_anchor); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; goto __pyx_L1;} |
|
3517 Py_DECREF(__pyx_v_node); |
|
3518 __pyx_v_node = __pyx_3; |
|
3519 __pyx_3 = 0; |
|
3520 goto __pyx_L7; |
|
3521 } |
|
3522 __pyx_L7:; |
|
3523 |
|
3524 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":717 */ |
|
3525 __pyx_2 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_ascend_resolver); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; goto __pyx_L1;} |
|
3526 __pyx_4 = PyTuple_New(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; goto __pyx_L1;} |
|
3527 __pyx_5 = PyObject_CallObject(__pyx_2, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; goto __pyx_L1;} |
|
3528 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
3529 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
3530 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
3531 |
|
3532 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":718 */ |
|
3533 Py_INCREF(__pyx_v_node); |
|
3534 __pyx_r = __pyx_v_node; |
|
3535 goto __pyx_L0; |
|
3536 |
|
3537 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
3538 goto __pyx_L0; |
|
3539 __pyx_L1:; |
|
3540 Py_XDECREF(__pyx_2); |
|
3541 Py_XDECREF(__pyx_3); |
|
3542 Py_XDECREF(__pyx_4); |
|
3543 Py_XDECREF(__pyx_5); |
|
3544 __Pyx_AddTraceback("_yaml.CParser._compose_node"); |
|
3545 __pyx_r = 0; |
|
3546 __pyx_L0:; |
|
3547 Py_DECREF(__pyx_v_anchor); |
|
3548 Py_DECREF(__pyx_v_mark); |
|
3549 Py_DECREF(__pyx_v_node); |
|
3550 Py_DECREF(__pyx_v_self); |
|
3551 Py_DECREF(__pyx_v_parent); |
|
3552 Py_DECREF(__pyx_v_index); |
|
3553 return __pyx_r; |
|
3554 } |
|
3555 |
|
3556 static PyObject *__pyx_n_resolve; |
|
3557 |
|
3558 static PyObject *__pyx_k64p; |
|
3559 static PyObject *__pyx_k65p; |
|
3560 static PyObject *__pyx_k66p; |
|
3561 static PyObject *__pyx_k67p; |
|
3562 static PyObject *__pyx_k68p; |
|
3563 |
|
3564 static char (__pyx_k62[]) = "strict"; |
|
3565 static char (__pyx_k63[]) = "strict"; |
|
3566 static char (__pyx_k64[]) = ""; |
|
3567 static char (__pyx_k65[]) = "\'"; |
|
3568 static char (__pyx_k66[]) = "\""; |
|
3569 static char (__pyx_k67[]) = "|"; |
|
3570 static char (__pyx_k68[]) = ">"; |
|
3571 |
|
3572 static PyObject *__pyx_f_5_yaml_7CParser__compose_scalar_node(struct __pyx_obj_5_yaml_CParser *__pyx_v_self,PyObject *__pyx_v_anchor) { |
|
3573 PyObject *__pyx_v_start_mark; |
|
3574 PyObject *__pyx_v_end_mark; |
|
3575 PyObject *__pyx_v_value; |
|
3576 PyObject *__pyx_v_plain_implicit; |
|
3577 PyObject *__pyx_v_quoted_implicit; |
|
3578 PyObject *__pyx_v_tag; |
|
3579 PyObject *__pyx_v_style; |
|
3580 PyObject *__pyx_v_node; |
|
3581 PyObject *__pyx_r; |
|
3582 PyObject *__pyx_1 = 0; |
|
3583 PyObject *__pyx_2 = 0; |
|
3584 PyObject *__pyx_3 = 0; |
|
3585 PyObject *__pyx_4 = 0; |
|
3586 int __pyx_5; |
|
3587 Py_INCREF(__pyx_v_self); |
|
3588 Py_INCREF(__pyx_v_anchor); |
|
3589 __pyx_v_start_mark = Py_None; Py_INCREF(Py_None); |
|
3590 __pyx_v_end_mark = Py_None; Py_INCREF(Py_None); |
|
3591 __pyx_v_value = Py_None; Py_INCREF(Py_None); |
|
3592 __pyx_v_plain_implicit = Py_None; Py_INCREF(Py_None); |
|
3593 __pyx_v_quoted_implicit = Py_None; Py_INCREF(Py_None); |
|
3594 __pyx_v_tag = Py_None; Py_INCREF(Py_None); |
|
3595 __pyx_v_style = Py_None; Py_INCREF(Py_None); |
|
3596 __pyx_v_node = Py_None; Py_INCREF(Py_None); |
|
3597 |
|
3598 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":721 */ |
|
3599 __pyx_1 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.index); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 722; goto __pyx_L1;} |
|
3600 __pyx_2 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.line); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; goto __pyx_L1;} |
|
3601 __pyx_3 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.column); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 724; goto __pyx_L1;} |
|
3602 __pyx_4 = PyTuple_New(6); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 721; goto __pyx_L1;} |
|
3603 Py_INCREF(__pyx_v_self->stream_name); |
|
3604 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self->stream_name); |
|
3605 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_1); |
|
3606 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_2); |
|
3607 PyTuple_SET_ITEM(__pyx_4, 3, __pyx_3); |
|
3608 Py_INCREF(Py_None); |
|
3609 PyTuple_SET_ITEM(__pyx_4, 4, Py_None); |
|
3610 Py_INCREF(Py_None); |
|
3611 PyTuple_SET_ITEM(__pyx_4, 5, Py_None); |
|
3612 __pyx_1 = 0; |
|
3613 __pyx_2 = 0; |
|
3614 __pyx_3 = 0; |
|
3615 __pyx_1 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 721; goto __pyx_L1;} |
|
3616 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
3617 Py_DECREF(__pyx_v_start_mark); |
|
3618 __pyx_v_start_mark = __pyx_1; |
|
3619 __pyx_1 = 0; |
|
3620 |
|
3621 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":726 */ |
|
3622 __pyx_2 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.index); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; goto __pyx_L1;} |
|
3623 __pyx_3 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.line); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 728; goto __pyx_L1;} |
|
3624 __pyx_4 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.column); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; goto __pyx_L1;} |
|
3625 __pyx_1 = PyTuple_New(6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 726; goto __pyx_L1;} |
|
3626 Py_INCREF(__pyx_v_self->stream_name); |
|
3627 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self->stream_name); |
|
3628 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_2); |
|
3629 PyTuple_SET_ITEM(__pyx_1, 2, __pyx_3); |
|
3630 PyTuple_SET_ITEM(__pyx_1, 3, __pyx_4); |
|
3631 Py_INCREF(Py_None); |
|
3632 PyTuple_SET_ITEM(__pyx_1, 4, Py_None); |
|
3633 Py_INCREF(Py_None); |
|
3634 PyTuple_SET_ITEM(__pyx_1, 5, Py_None); |
|
3635 __pyx_2 = 0; |
|
3636 __pyx_3 = 0; |
|
3637 __pyx_4 = 0; |
|
3638 __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 726; goto __pyx_L1;} |
|
3639 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
3640 Py_DECREF(__pyx_v_end_mark); |
|
3641 __pyx_v_end_mark = __pyx_2; |
|
3642 __pyx_2 = 0; |
|
3643 |
|
3644 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":731 */ |
|
3645 __pyx_3 = PyUnicode_DecodeUTF8(__pyx_v_self->parsed_event.data.scalar.value,__pyx_v_self->parsed_event.data.scalar.length,__pyx_k62); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 731; goto __pyx_L1;} |
|
3646 Py_DECREF(__pyx_v_value); |
|
3647 __pyx_v_value = __pyx_3; |
|
3648 __pyx_3 = 0; |
|
3649 |
|
3650 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":733 */ |
|
3651 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; goto __pyx_L1;} |
|
3652 Py_DECREF(__pyx_v_plain_implicit); |
|
3653 __pyx_v_plain_implicit = __pyx_4; |
|
3654 __pyx_4 = 0; |
|
3655 |
|
3656 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":734 */ |
|
3657 __pyx_5 = (__pyx_v_self->parsed_event.data.scalar.plain_implicit == 1); |
|
3658 if (__pyx_5) { |
|
3659 |
|
3660 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":735 */ |
|
3661 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 735; goto __pyx_L1;} |
|
3662 Py_DECREF(__pyx_v_plain_implicit); |
|
3663 __pyx_v_plain_implicit = __pyx_1; |
|
3664 __pyx_1 = 0; |
|
3665 goto __pyx_L2; |
|
3666 } |
|
3667 __pyx_L2:; |
|
3668 |
|
3669 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":736 */ |
|
3670 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 736; goto __pyx_L1;} |
|
3671 Py_DECREF(__pyx_v_quoted_implicit); |
|
3672 __pyx_v_quoted_implicit = __pyx_2; |
|
3673 __pyx_2 = 0; |
|
3674 |
|
3675 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":737 */ |
|
3676 __pyx_5 = (__pyx_v_self->parsed_event.data.scalar.quoted_implicit == 1); |
|
3677 if (__pyx_5) { |
|
3678 |
|
3679 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":738 */ |
|
3680 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 738; goto __pyx_L1;} |
|
3681 Py_DECREF(__pyx_v_quoted_implicit); |
|
3682 __pyx_v_quoted_implicit = __pyx_3; |
|
3683 __pyx_3 = 0; |
|
3684 goto __pyx_L3; |
|
3685 } |
|
3686 __pyx_L3:; |
|
3687 |
|
3688 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":739 */ |
|
3689 __pyx_5 = (__pyx_v_self->parsed_event.data.scalar.tag == 0); |
|
3690 if (!__pyx_5) { |
|
3691 __pyx_5 = ((__pyx_v_self->parsed_event.data.scalar.tag[0]) == '!'); |
|
3692 if (__pyx_5) { |
|
3693 __pyx_5 = ((__pyx_v_self->parsed_event.data.scalar.tag[1]) == '\0'); |
|
3694 } |
|
3695 } |
|
3696 if (__pyx_5) { |
|
3697 |
|
3698 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":742 */ |
|
3699 __pyx_4 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_resolve); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; goto __pyx_L1;} |
|
3700 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_ScalarNode); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; goto __pyx_L1;} |
|
3701 __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; goto __pyx_L1;} |
|
3702 Py_INCREF(__pyx_v_plain_implicit); |
|
3703 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_plain_implicit); |
|
3704 Py_INCREF(__pyx_v_quoted_implicit); |
|
3705 PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_quoted_implicit); |
|
3706 __pyx_3 = PyTuple_New(3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; goto __pyx_L1;} |
|
3707 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1); |
|
3708 Py_INCREF(__pyx_v_value); |
|
3709 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_value); |
|
3710 PyTuple_SET_ITEM(__pyx_3, 2, __pyx_2); |
|
3711 __pyx_1 = 0; |
|
3712 __pyx_2 = 0; |
|
3713 __pyx_1 = PyObject_CallObject(__pyx_4, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 742; goto __pyx_L1;} |
|
3714 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
3715 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
3716 Py_DECREF(__pyx_v_tag); |
|
3717 __pyx_v_tag = __pyx_1; |
|
3718 __pyx_1 = 0; |
|
3719 goto __pyx_L4; |
|
3720 } |
|
3721 /*else*/ { |
|
3722 |
|
3723 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":744 */ |
|
3724 __pyx_2 = PyUnicode_DecodeUTF8(__pyx_v_self->parsed_event.data.scalar.tag,strlen(__pyx_v_self->parsed_event.data.scalar.tag),__pyx_k63); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 744; goto __pyx_L1;} |
|
3725 Py_DECREF(__pyx_v_tag); |
|
3726 __pyx_v_tag = __pyx_2; |
|
3727 __pyx_2 = 0; |
|
3728 } |
|
3729 __pyx_L4:; |
|
3730 |
|
3731 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":746 */ |
|
3732 Py_INCREF(Py_None); |
|
3733 Py_DECREF(__pyx_v_style); |
|
3734 __pyx_v_style = Py_None; |
|
3735 |
|
3736 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":747 */ |
|
3737 __pyx_5 = (__pyx_v_self->parsed_event.data.scalar.style == YAML_PLAIN_SCALAR_STYLE); |
|
3738 if (__pyx_5) { |
|
3739 |
|
3740 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":748 */ |
|
3741 Py_INCREF(__pyx_k64p); |
|
3742 Py_DECREF(__pyx_v_style); |
|
3743 __pyx_v_style = __pyx_k64p; |
|
3744 goto __pyx_L5; |
|
3745 } |
|
3746 __pyx_5 = (__pyx_v_self->parsed_event.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE); |
|
3747 if (__pyx_5) { |
|
3748 |
|
3749 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":750 */ |
|
3750 Py_INCREF(__pyx_k65p); |
|
3751 Py_DECREF(__pyx_v_style); |
|
3752 __pyx_v_style = __pyx_k65p; |
|
3753 goto __pyx_L5; |
|
3754 } |
|
3755 __pyx_5 = (__pyx_v_self->parsed_event.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE); |
|
3756 if (__pyx_5) { |
|
3757 |
|
3758 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":752 */ |
|
3759 Py_INCREF(__pyx_k66p); |
|
3760 Py_DECREF(__pyx_v_style); |
|
3761 __pyx_v_style = __pyx_k66p; |
|
3762 goto __pyx_L5; |
|
3763 } |
|
3764 __pyx_5 = (__pyx_v_self->parsed_event.data.scalar.style == YAML_LITERAL_SCALAR_STYLE); |
|
3765 if (__pyx_5) { |
|
3766 |
|
3767 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":754 */ |
|
3768 Py_INCREF(__pyx_k67p); |
|
3769 Py_DECREF(__pyx_v_style); |
|
3770 __pyx_v_style = __pyx_k67p; |
|
3771 goto __pyx_L5; |
|
3772 } |
|
3773 __pyx_5 = (__pyx_v_self->parsed_event.data.scalar.style == YAML_FOLDED_SCALAR_STYLE); |
|
3774 if (__pyx_5) { |
|
3775 |
|
3776 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":756 */ |
|
3777 Py_INCREF(__pyx_k68p); |
|
3778 Py_DECREF(__pyx_v_style); |
|
3779 __pyx_v_style = __pyx_k68p; |
|
3780 goto __pyx_L5; |
|
3781 } |
|
3782 __pyx_L5:; |
|
3783 |
|
3784 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":757 */ |
|
3785 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_ScalarNode); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 757; goto __pyx_L1;} |
|
3786 __pyx_3 = PyTuple_New(5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 757; goto __pyx_L1;} |
|
3787 Py_INCREF(__pyx_v_tag); |
|
3788 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_tag); |
|
3789 Py_INCREF(__pyx_v_value); |
|
3790 PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_value); |
|
3791 Py_INCREF(__pyx_v_start_mark); |
|
3792 PyTuple_SET_ITEM(__pyx_3, 2, __pyx_v_start_mark); |
|
3793 Py_INCREF(__pyx_v_end_mark); |
|
3794 PyTuple_SET_ITEM(__pyx_3, 3, __pyx_v_end_mark); |
|
3795 Py_INCREF(__pyx_v_style); |
|
3796 PyTuple_SET_ITEM(__pyx_3, 4, __pyx_v_style); |
|
3797 __pyx_1 = PyObject_CallObject(__pyx_4, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 757; goto __pyx_L1;} |
|
3798 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
3799 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
3800 Py_DECREF(__pyx_v_node); |
|
3801 __pyx_v_node = __pyx_1; |
|
3802 __pyx_1 = 0; |
|
3803 |
|
3804 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":758 */ |
|
3805 __pyx_5 = __pyx_v_anchor != Py_None; |
|
3806 if (__pyx_5) { |
|
3807 |
|
3808 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":759 */ |
|
3809 if (PyObject_SetItem(__pyx_v_self->anchors, __pyx_v_anchor, __pyx_v_node) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; goto __pyx_L1;} |
|
3810 goto __pyx_L6; |
|
3811 } |
|
3812 __pyx_L6:; |
|
3813 |
|
3814 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":760 */ |
|
3815 yaml_event_delete((&__pyx_v_self->parsed_event)); |
|
3816 |
|
3817 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":761 */ |
|
3818 Py_INCREF(__pyx_v_node); |
|
3819 __pyx_r = __pyx_v_node; |
|
3820 goto __pyx_L0; |
|
3821 |
|
3822 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
3823 goto __pyx_L0; |
|
3824 __pyx_L1:; |
|
3825 Py_XDECREF(__pyx_1); |
|
3826 Py_XDECREF(__pyx_2); |
|
3827 Py_XDECREF(__pyx_3); |
|
3828 Py_XDECREF(__pyx_4); |
|
3829 __Pyx_AddTraceback("_yaml.CParser._compose_scalar_node"); |
|
3830 __pyx_r = 0; |
|
3831 __pyx_L0:; |
|
3832 Py_DECREF(__pyx_v_start_mark); |
|
3833 Py_DECREF(__pyx_v_end_mark); |
|
3834 Py_DECREF(__pyx_v_value); |
|
3835 Py_DECREF(__pyx_v_plain_implicit); |
|
3836 Py_DECREF(__pyx_v_quoted_implicit); |
|
3837 Py_DECREF(__pyx_v_tag); |
|
3838 Py_DECREF(__pyx_v_style); |
|
3839 Py_DECREF(__pyx_v_node); |
|
3840 Py_DECREF(__pyx_v_self); |
|
3841 Py_DECREF(__pyx_v_anchor); |
|
3842 return __pyx_r; |
|
3843 } |
|
3844 |
|
3845 static PyObject *__pyx_n_append; |
|
3846 static PyObject *__pyx_n_end_mark; |
|
3847 |
|
3848 static char (__pyx_k69[]) = "strict"; |
|
3849 |
|
3850 static PyObject *__pyx_f_5_yaml_7CParser__compose_sequence_node(struct __pyx_obj_5_yaml_CParser *__pyx_v_self,PyObject *__pyx_v_anchor) { |
|
3851 int __pyx_v_index; |
|
3852 PyObject *__pyx_v_start_mark; |
|
3853 PyObject *__pyx_v_implicit; |
|
3854 PyObject *__pyx_v_tag; |
|
3855 PyObject *__pyx_v_flow_style; |
|
3856 PyObject *__pyx_v_value; |
|
3857 PyObject *__pyx_v_node; |
|
3858 PyObject *__pyx_r; |
|
3859 PyObject *__pyx_1 = 0; |
|
3860 PyObject *__pyx_2 = 0; |
|
3861 PyObject *__pyx_3 = 0; |
|
3862 PyObject *__pyx_4 = 0; |
|
3863 int __pyx_5; |
|
3864 Py_INCREF(__pyx_v_self); |
|
3865 Py_INCREF(__pyx_v_anchor); |
|
3866 __pyx_v_start_mark = Py_None; Py_INCREF(Py_None); |
|
3867 __pyx_v_implicit = Py_None; Py_INCREF(Py_None); |
|
3868 __pyx_v_tag = Py_None; Py_INCREF(Py_None); |
|
3869 __pyx_v_flow_style = Py_None; Py_INCREF(Py_None); |
|
3870 __pyx_v_value = Py_None; Py_INCREF(Py_None); |
|
3871 __pyx_v_node = Py_None; Py_INCREF(Py_None); |
|
3872 |
|
3873 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":765 */ |
|
3874 __pyx_1 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.index); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; goto __pyx_L1;} |
|
3875 __pyx_2 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.line); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; goto __pyx_L1;} |
|
3876 __pyx_3 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.column); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; goto __pyx_L1;} |
|
3877 __pyx_4 = PyTuple_New(6); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; goto __pyx_L1;} |
|
3878 Py_INCREF(__pyx_v_self->stream_name); |
|
3879 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self->stream_name); |
|
3880 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_1); |
|
3881 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_2); |
|
3882 PyTuple_SET_ITEM(__pyx_4, 3, __pyx_3); |
|
3883 Py_INCREF(Py_None); |
|
3884 PyTuple_SET_ITEM(__pyx_4, 4, Py_None); |
|
3885 Py_INCREF(Py_None); |
|
3886 PyTuple_SET_ITEM(__pyx_4, 5, Py_None); |
|
3887 __pyx_1 = 0; |
|
3888 __pyx_2 = 0; |
|
3889 __pyx_3 = 0; |
|
3890 __pyx_1 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; goto __pyx_L1;} |
|
3891 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
3892 Py_DECREF(__pyx_v_start_mark); |
|
3893 __pyx_v_start_mark = __pyx_1; |
|
3894 __pyx_1 = 0; |
|
3895 |
|
3896 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":770 */ |
|
3897 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; goto __pyx_L1;} |
|
3898 Py_DECREF(__pyx_v_implicit); |
|
3899 __pyx_v_implicit = __pyx_2; |
|
3900 __pyx_2 = 0; |
|
3901 |
|
3902 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":771 */ |
|
3903 __pyx_5 = (__pyx_v_self->parsed_event.data.sequence_start.implicit == 1); |
|
3904 if (__pyx_5) { |
|
3905 |
|
3906 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":772 */ |
|
3907 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; goto __pyx_L1;} |
|
3908 Py_DECREF(__pyx_v_implicit); |
|
3909 __pyx_v_implicit = __pyx_3; |
|
3910 __pyx_3 = 0; |
|
3911 goto __pyx_L2; |
|
3912 } |
|
3913 __pyx_L2:; |
|
3914 |
|
3915 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":773 */ |
|
3916 __pyx_5 = (__pyx_v_self->parsed_event.data.sequence_start.tag == 0); |
|
3917 if (!__pyx_5) { |
|
3918 __pyx_5 = ((__pyx_v_self->parsed_event.data.sequence_start.tag[0]) == '!'); |
|
3919 if (__pyx_5) { |
|
3920 __pyx_5 = ((__pyx_v_self->parsed_event.data.sequence_start.tag[1]) == '\0'); |
|
3921 } |
|
3922 } |
|
3923 if (__pyx_5) { |
|
3924 |
|
3925 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":776 */ |
|
3926 __pyx_4 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_resolve); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; goto __pyx_L1;} |
|
3927 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_SequenceNode); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; goto __pyx_L1;} |
|
3928 __pyx_2 = PyTuple_New(3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; goto __pyx_L1;} |
|
3929 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); |
|
3930 Py_INCREF(Py_None); |
|
3931 PyTuple_SET_ITEM(__pyx_2, 1, Py_None); |
|
3932 Py_INCREF(__pyx_v_implicit); |
|
3933 PyTuple_SET_ITEM(__pyx_2, 2, __pyx_v_implicit); |
|
3934 __pyx_1 = 0; |
|
3935 __pyx_3 = PyObject_CallObject(__pyx_4, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; goto __pyx_L1;} |
|
3936 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
3937 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
3938 Py_DECREF(__pyx_v_tag); |
|
3939 __pyx_v_tag = __pyx_3; |
|
3940 __pyx_3 = 0; |
|
3941 goto __pyx_L3; |
|
3942 } |
|
3943 /*else*/ { |
|
3944 |
|
3945 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":778 */ |
|
3946 __pyx_1 = PyUnicode_DecodeUTF8(__pyx_v_self->parsed_event.data.sequence_start.tag,strlen(__pyx_v_self->parsed_event.data.sequence_start.tag),__pyx_k69); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; goto __pyx_L1;} |
|
3947 Py_DECREF(__pyx_v_tag); |
|
3948 __pyx_v_tag = __pyx_1; |
|
3949 __pyx_1 = 0; |
|
3950 } |
|
3951 __pyx_L3:; |
|
3952 |
|
3953 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":780 */ |
|
3954 Py_INCREF(Py_None); |
|
3955 Py_DECREF(__pyx_v_flow_style); |
|
3956 __pyx_v_flow_style = Py_None; |
|
3957 |
|
3958 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":781 */ |
|
3959 __pyx_5 = (__pyx_v_self->parsed_event.data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE); |
|
3960 if (__pyx_5) { |
|
3961 |
|
3962 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":782 */ |
|
3963 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 782; goto __pyx_L1;} |
|
3964 Py_DECREF(__pyx_v_flow_style); |
|
3965 __pyx_v_flow_style = __pyx_4; |
|
3966 __pyx_4 = 0; |
|
3967 goto __pyx_L4; |
|
3968 } |
|
3969 __pyx_5 = (__pyx_v_self->parsed_event.data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE); |
|
3970 if (__pyx_5) { |
|
3971 |
|
3972 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":784 */ |
|
3973 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; goto __pyx_L1;} |
|
3974 Py_DECREF(__pyx_v_flow_style); |
|
3975 __pyx_v_flow_style = __pyx_2; |
|
3976 __pyx_2 = 0; |
|
3977 goto __pyx_L4; |
|
3978 } |
|
3979 __pyx_L4:; |
|
3980 |
|
3981 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":785 */ |
|
3982 __pyx_3 = PyList_New(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; goto __pyx_L1;} |
|
3983 Py_DECREF(__pyx_v_value); |
|
3984 __pyx_v_value = __pyx_3; |
|
3985 __pyx_3 = 0; |
|
3986 |
|
3987 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":786 */ |
|
3988 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_SequenceNode); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; goto __pyx_L1;} |
|
3989 __pyx_4 = PyTuple_New(5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; goto __pyx_L1;} |
|
3990 Py_INCREF(__pyx_v_tag); |
|
3991 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_tag); |
|
3992 Py_INCREF(__pyx_v_value); |
|
3993 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_value); |
|
3994 Py_INCREF(__pyx_v_start_mark); |
|
3995 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_v_start_mark); |
|
3996 Py_INCREF(Py_None); |
|
3997 PyTuple_SET_ITEM(__pyx_4, 3, Py_None); |
|
3998 Py_INCREF(__pyx_v_flow_style); |
|
3999 PyTuple_SET_ITEM(__pyx_4, 4, __pyx_v_flow_style); |
|
4000 __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; goto __pyx_L1;} |
|
4001 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4002 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
4003 Py_DECREF(__pyx_v_node); |
|
4004 __pyx_v_node = __pyx_2; |
|
4005 __pyx_2 = 0; |
|
4006 |
|
4007 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":787 */ |
|
4008 __pyx_5 = __pyx_v_anchor != Py_None; |
|
4009 if (__pyx_5) { |
|
4010 |
|
4011 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":788 */ |
|
4012 if (PyObject_SetItem(__pyx_v_self->anchors, __pyx_v_anchor, __pyx_v_node) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 788; goto __pyx_L1;} |
|
4013 goto __pyx_L5; |
|
4014 } |
|
4015 __pyx_L5:; |
|
4016 |
|
4017 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":789 */ |
|
4018 yaml_event_delete((&__pyx_v_self->parsed_event)); |
|
4019 |
|
4020 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":790 */ |
|
4021 __pyx_v_index = 0; |
|
4022 |
|
4023 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":791 */ |
|
4024 __pyx_5 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parse_next_event(__pyx_v_self); if (__pyx_5 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; goto __pyx_L1;} |
|
4025 |
|
4026 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":792 */ |
|
4027 while (1) { |
|
4028 __pyx_L6:; |
|
4029 __pyx_5 = (__pyx_v_self->parsed_event.type != YAML_SEQUENCE_END_EVENT); |
|
4030 if (!__pyx_5) break; |
|
4031 |
|
4032 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":793 */ |
|
4033 __pyx_3 = PyObject_GetAttr(__pyx_v_value, __pyx_n_append); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; goto __pyx_L1;} |
|
4034 __pyx_1 = PyInt_FromLong(__pyx_v_index); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; goto __pyx_L1;} |
|
4035 __pyx_4 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_node(__pyx_v_self,__pyx_v_node,__pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; goto __pyx_L1;} |
|
4036 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4037 __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; goto __pyx_L1;} |
|
4038 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_4); |
|
4039 __pyx_4 = 0; |
|
4040 __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; goto __pyx_L1;} |
|
4041 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
4042 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
4043 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4044 |
|
4045 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":794 */ |
|
4046 __pyx_v_index = (__pyx_v_index + 1); |
|
4047 |
|
4048 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":795 */ |
|
4049 __pyx_5 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parse_next_event(__pyx_v_self); if (__pyx_5 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; goto __pyx_L1;} |
|
4050 } |
|
4051 __pyx_L7:; |
|
4052 |
|
4053 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":796 */ |
|
4054 __pyx_4 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.index); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; goto __pyx_L1;} |
|
4055 __pyx_3 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.line); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 798; goto __pyx_L1;} |
|
4056 __pyx_2 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.column); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; goto __pyx_L1;} |
|
4057 __pyx_1 = PyTuple_New(6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; goto __pyx_L1;} |
|
4058 Py_INCREF(__pyx_v_self->stream_name); |
|
4059 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self->stream_name); |
|
4060 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_4); |
|
4061 PyTuple_SET_ITEM(__pyx_1, 2, __pyx_3); |
|
4062 PyTuple_SET_ITEM(__pyx_1, 3, __pyx_2); |
|
4063 Py_INCREF(Py_None); |
|
4064 PyTuple_SET_ITEM(__pyx_1, 4, Py_None); |
|
4065 Py_INCREF(Py_None); |
|
4066 PyTuple_SET_ITEM(__pyx_1, 5, Py_None); |
|
4067 __pyx_4 = 0; |
|
4068 __pyx_3 = 0; |
|
4069 __pyx_2 = 0; |
|
4070 __pyx_4 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; goto __pyx_L1;} |
|
4071 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4072 if (PyObject_SetAttr(__pyx_v_node, __pyx_n_end_mark, __pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 796; goto __pyx_L1;} |
|
4073 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
4074 |
|
4075 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":801 */ |
|
4076 yaml_event_delete((&__pyx_v_self->parsed_event)); |
|
4077 |
|
4078 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":802 */ |
|
4079 Py_INCREF(__pyx_v_node); |
|
4080 __pyx_r = __pyx_v_node; |
|
4081 goto __pyx_L0; |
|
4082 |
|
4083 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
4084 goto __pyx_L0; |
|
4085 __pyx_L1:; |
|
4086 Py_XDECREF(__pyx_1); |
|
4087 Py_XDECREF(__pyx_2); |
|
4088 Py_XDECREF(__pyx_3); |
|
4089 Py_XDECREF(__pyx_4); |
|
4090 __Pyx_AddTraceback("_yaml.CParser._compose_sequence_node"); |
|
4091 __pyx_r = 0; |
|
4092 __pyx_L0:; |
|
4093 Py_DECREF(__pyx_v_start_mark); |
|
4094 Py_DECREF(__pyx_v_implicit); |
|
4095 Py_DECREF(__pyx_v_tag); |
|
4096 Py_DECREF(__pyx_v_flow_style); |
|
4097 Py_DECREF(__pyx_v_value); |
|
4098 Py_DECREF(__pyx_v_node); |
|
4099 Py_DECREF(__pyx_v_self); |
|
4100 Py_DECREF(__pyx_v_anchor); |
|
4101 return __pyx_r; |
|
4102 } |
|
4103 |
|
4104 static char (__pyx_k70[]) = "strict"; |
|
4105 |
|
4106 static PyObject *__pyx_f_5_yaml_7CParser__compose_mapping_node(struct __pyx_obj_5_yaml_CParser *__pyx_v_self,PyObject *__pyx_v_anchor) { |
|
4107 PyObject *__pyx_v_start_mark; |
|
4108 PyObject *__pyx_v_implicit; |
|
4109 PyObject *__pyx_v_tag; |
|
4110 PyObject *__pyx_v_flow_style; |
|
4111 PyObject *__pyx_v_value; |
|
4112 PyObject *__pyx_v_node; |
|
4113 PyObject *__pyx_v_item_key; |
|
4114 PyObject *__pyx_v_item_value; |
|
4115 PyObject *__pyx_r; |
|
4116 PyObject *__pyx_1 = 0; |
|
4117 PyObject *__pyx_2 = 0; |
|
4118 PyObject *__pyx_3 = 0; |
|
4119 PyObject *__pyx_4 = 0; |
|
4120 int __pyx_5; |
|
4121 Py_INCREF(__pyx_v_self); |
|
4122 Py_INCREF(__pyx_v_anchor); |
|
4123 __pyx_v_start_mark = Py_None; Py_INCREF(Py_None); |
|
4124 __pyx_v_implicit = Py_None; Py_INCREF(Py_None); |
|
4125 __pyx_v_tag = Py_None; Py_INCREF(Py_None); |
|
4126 __pyx_v_flow_style = Py_None; Py_INCREF(Py_None); |
|
4127 __pyx_v_value = Py_None; Py_INCREF(Py_None); |
|
4128 __pyx_v_node = Py_None; Py_INCREF(Py_None); |
|
4129 __pyx_v_item_key = Py_None; Py_INCREF(Py_None); |
|
4130 __pyx_v_item_value = Py_None; Py_INCREF(Py_None); |
|
4131 |
|
4132 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":805 */ |
|
4133 __pyx_1 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.index); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; goto __pyx_L1;} |
|
4134 __pyx_2 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.line); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; goto __pyx_L1;} |
|
4135 __pyx_3 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.column); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; goto __pyx_L1;} |
|
4136 __pyx_4 = PyTuple_New(6); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; goto __pyx_L1;} |
|
4137 Py_INCREF(__pyx_v_self->stream_name); |
|
4138 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_self->stream_name); |
|
4139 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_1); |
|
4140 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_2); |
|
4141 PyTuple_SET_ITEM(__pyx_4, 3, __pyx_3); |
|
4142 Py_INCREF(Py_None); |
|
4143 PyTuple_SET_ITEM(__pyx_4, 4, Py_None); |
|
4144 Py_INCREF(Py_None); |
|
4145 PyTuple_SET_ITEM(__pyx_4, 5, Py_None); |
|
4146 __pyx_1 = 0; |
|
4147 __pyx_2 = 0; |
|
4148 __pyx_3 = 0; |
|
4149 __pyx_1 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 805; goto __pyx_L1;} |
|
4150 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
4151 Py_DECREF(__pyx_v_start_mark); |
|
4152 __pyx_v_start_mark = __pyx_1; |
|
4153 __pyx_1 = 0; |
|
4154 |
|
4155 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":810 */ |
|
4156 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 810; goto __pyx_L1;} |
|
4157 Py_DECREF(__pyx_v_implicit); |
|
4158 __pyx_v_implicit = __pyx_2; |
|
4159 __pyx_2 = 0; |
|
4160 |
|
4161 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":811 */ |
|
4162 __pyx_5 = (__pyx_v_self->parsed_event.data.mapping_start.implicit == 1); |
|
4163 if (__pyx_5) { |
|
4164 |
|
4165 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":812 */ |
|
4166 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; goto __pyx_L1;} |
|
4167 Py_DECREF(__pyx_v_implicit); |
|
4168 __pyx_v_implicit = __pyx_3; |
|
4169 __pyx_3 = 0; |
|
4170 goto __pyx_L2; |
|
4171 } |
|
4172 __pyx_L2:; |
|
4173 |
|
4174 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":813 */ |
|
4175 __pyx_5 = (__pyx_v_self->parsed_event.data.mapping_start.tag == 0); |
|
4176 if (!__pyx_5) { |
|
4177 __pyx_5 = ((__pyx_v_self->parsed_event.data.mapping_start.tag[0]) == '!'); |
|
4178 if (__pyx_5) { |
|
4179 __pyx_5 = ((__pyx_v_self->parsed_event.data.mapping_start.tag[1]) == '\0'); |
|
4180 } |
|
4181 } |
|
4182 if (__pyx_5) { |
|
4183 |
|
4184 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":816 */ |
|
4185 __pyx_4 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_resolve); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; goto __pyx_L1;} |
|
4186 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_MappingNode); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; goto __pyx_L1;} |
|
4187 __pyx_2 = PyTuple_New(3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; goto __pyx_L1;} |
|
4188 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1); |
|
4189 Py_INCREF(Py_None); |
|
4190 PyTuple_SET_ITEM(__pyx_2, 1, Py_None); |
|
4191 Py_INCREF(__pyx_v_implicit); |
|
4192 PyTuple_SET_ITEM(__pyx_2, 2, __pyx_v_implicit); |
|
4193 __pyx_1 = 0; |
|
4194 __pyx_3 = PyObject_CallObject(__pyx_4, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; goto __pyx_L1;} |
|
4195 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
4196 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
4197 Py_DECREF(__pyx_v_tag); |
|
4198 __pyx_v_tag = __pyx_3; |
|
4199 __pyx_3 = 0; |
|
4200 goto __pyx_L3; |
|
4201 } |
|
4202 /*else*/ { |
|
4203 |
|
4204 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":818 */ |
|
4205 __pyx_1 = PyUnicode_DecodeUTF8(__pyx_v_self->parsed_event.data.mapping_start.tag,strlen(__pyx_v_self->parsed_event.data.mapping_start.tag),__pyx_k70); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 818; goto __pyx_L1;} |
|
4206 Py_DECREF(__pyx_v_tag); |
|
4207 __pyx_v_tag = __pyx_1; |
|
4208 __pyx_1 = 0; |
|
4209 } |
|
4210 __pyx_L3:; |
|
4211 |
|
4212 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":820 */ |
|
4213 Py_INCREF(Py_None); |
|
4214 Py_DECREF(__pyx_v_flow_style); |
|
4215 __pyx_v_flow_style = Py_None; |
|
4216 |
|
4217 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":821 */ |
|
4218 __pyx_5 = (__pyx_v_self->parsed_event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE); |
|
4219 if (__pyx_5) { |
|
4220 |
|
4221 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":822 */ |
|
4222 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;} |
|
4223 Py_DECREF(__pyx_v_flow_style); |
|
4224 __pyx_v_flow_style = __pyx_4; |
|
4225 __pyx_4 = 0; |
|
4226 goto __pyx_L4; |
|
4227 } |
|
4228 __pyx_5 = (__pyx_v_self->parsed_event.data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE); |
|
4229 if (__pyx_5) { |
|
4230 |
|
4231 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":824 */ |
|
4232 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 824; goto __pyx_L1;} |
|
4233 Py_DECREF(__pyx_v_flow_style); |
|
4234 __pyx_v_flow_style = __pyx_2; |
|
4235 __pyx_2 = 0; |
|
4236 goto __pyx_L4; |
|
4237 } |
|
4238 __pyx_L4:; |
|
4239 |
|
4240 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":825 */ |
|
4241 __pyx_3 = PyList_New(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; goto __pyx_L1;} |
|
4242 Py_DECREF(__pyx_v_value); |
|
4243 __pyx_v_value = __pyx_3; |
|
4244 __pyx_3 = 0; |
|
4245 |
|
4246 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":826 */ |
|
4247 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_MappingNode); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; goto __pyx_L1;} |
|
4248 __pyx_4 = PyTuple_New(5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; goto __pyx_L1;} |
|
4249 Py_INCREF(__pyx_v_tag); |
|
4250 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_tag); |
|
4251 Py_INCREF(__pyx_v_value); |
|
4252 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_value); |
|
4253 Py_INCREF(__pyx_v_start_mark); |
|
4254 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_v_start_mark); |
|
4255 Py_INCREF(Py_None); |
|
4256 PyTuple_SET_ITEM(__pyx_4, 3, Py_None); |
|
4257 Py_INCREF(__pyx_v_flow_style); |
|
4258 PyTuple_SET_ITEM(__pyx_4, 4, __pyx_v_flow_style); |
|
4259 __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; goto __pyx_L1;} |
|
4260 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4261 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
4262 Py_DECREF(__pyx_v_node); |
|
4263 __pyx_v_node = __pyx_2; |
|
4264 __pyx_2 = 0; |
|
4265 |
|
4266 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":827 */ |
|
4267 __pyx_5 = __pyx_v_anchor != Py_None; |
|
4268 if (__pyx_5) { |
|
4269 |
|
4270 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":828 */ |
|
4271 if (PyObject_SetItem(__pyx_v_self->anchors, __pyx_v_anchor, __pyx_v_node) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; goto __pyx_L1;} |
|
4272 goto __pyx_L5; |
|
4273 } |
|
4274 __pyx_L5:; |
|
4275 |
|
4276 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":829 */ |
|
4277 yaml_event_delete((&__pyx_v_self->parsed_event)); |
|
4278 |
|
4279 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":830 */ |
|
4280 __pyx_5 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parse_next_event(__pyx_v_self); if (__pyx_5 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; goto __pyx_L1;} |
|
4281 |
|
4282 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":831 */ |
|
4283 while (1) { |
|
4284 __pyx_L6:; |
|
4285 __pyx_5 = (__pyx_v_self->parsed_event.type != YAML_MAPPING_END_EVENT); |
|
4286 if (!__pyx_5) break; |
|
4287 |
|
4288 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":832 */ |
|
4289 __pyx_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_node(__pyx_v_self,__pyx_v_node,Py_None); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; goto __pyx_L1;} |
|
4290 Py_DECREF(__pyx_v_item_key); |
|
4291 __pyx_v_item_key = __pyx_3; |
|
4292 __pyx_3 = 0; |
|
4293 |
|
4294 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":833 */ |
|
4295 __pyx_1 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_node(__pyx_v_self,__pyx_v_node,__pyx_v_item_key); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 833; goto __pyx_L1;} |
|
4296 Py_DECREF(__pyx_v_item_value); |
|
4297 __pyx_v_item_value = __pyx_1; |
|
4298 __pyx_1 = 0; |
|
4299 |
|
4300 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":834 */ |
|
4301 __pyx_4 = PyObject_GetAttr(__pyx_v_value, __pyx_n_append); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; goto __pyx_L1;} |
|
4302 __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; goto __pyx_L1;} |
|
4303 Py_INCREF(__pyx_v_item_key); |
|
4304 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_item_key); |
|
4305 Py_INCREF(__pyx_v_item_value); |
|
4306 PyTuple_SET_ITEM(__pyx_2, 1, __pyx_v_item_value); |
|
4307 __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; goto __pyx_L1;} |
|
4308 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2); |
|
4309 __pyx_2 = 0; |
|
4310 __pyx_1 = PyObject_CallObject(__pyx_4, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; goto __pyx_L1;} |
|
4311 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
4312 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
4313 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4314 |
|
4315 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":835 */ |
|
4316 __pyx_5 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parse_next_event(__pyx_v_self); if (__pyx_5 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 835; goto __pyx_L1;} |
|
4317 } |
|
4318 __pyx_L7:; |
|
4319 |
|
4320 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":836 */ |
|
4321 __pyx_2 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.index); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 837; goto __pyx_L1;} |
|
4322 __pyx_4 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.line); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; goto __pyx_L1;} |
|
4323 __pyx_3 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.column); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; goto __pyx_L1;} |
|
4324 __pyx_1 = PyTuple_New(6); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; goto __pyx_L1;} |
|
4325 Py_INCREF(__pyx_v_self->stream_name); |
|
4326 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_self->stream_name); |
|
4327 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_2); |
|
4328 PyTuple_SET_ITEM(__pyx_1, 2, __pyx_4); |
|
4329 PyTuple_SET_ITEM(__pyx_1, 3, __pyx_3); |
|
4330 Py_INCREF(Py_None); |
|
4331 PyTuple_SET_ITEM(__pyx_1, 4, Py_None); |
|
4332 Py_INCREF(Py_None); |
|
4333 PyTuple_SET_ITEM(__pyx_1, 5, Py_None); |
|
4334 __pyx_2 = 0; |
|
4335 __pyx_4 = 0; |
|
4336 __pyx_3 = 0; |
|
4337 __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_5_yaml_Mark), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; goto __pyx_L1;} |
|
4338 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4339 if (PyObject_SetAttr(__pyx_v_node, __pyx_n_end_mark, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; goto __pyx_L1;} |
|
4340 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
4341 |
|
4342 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":841 */ |
|
4343 yaml_event_delete((&__pyx_v_self->parsed_event)); |
|
4344 |
|
4345 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":842 */ |
|
4346 Py_INCREF(__pyx_v_node); |
|
4347 __pyx_r = __pyx_v_node; |
|
4348 goto __pyx_L0; |
|
4349 |
|
4350 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
4351 goto __pyx_L0; |
|
4352 __pyx_L1:; |
|
4353 Py_XDECREF(__pyx_1); |
|
4354 Py_XDECREF(__pyx_2); |
|
4355 Py_XDECREF(__pyx_3); |
|
4356 Py_XDECREF(__pyx_4); |
|
4357 __Pyx_AddTraceback("_yaml.CParser._compose_mapping_node"); |
|
4358 __pyx_r = 0; |
|
4359 __pyx_L0:; |
|
4360 Py_DECREF(__pyx_v_start_mark); |
|
4361 Py_DECREF(__pyx_v_implicit); |
|
4362 Py_DECREF(__pyx_v_tag); |
|
4363 Py_DECREF(__pyx_v_flow_style); |
|
4364 Py_DECREF(__pyx_v_value); |
|
4365 Py_DECREF(__pyx_v_node); |
|
4366 Py_DECREF(__pyx_v_item_key); |
|
4367 Py_DECREF(__pyx_v_item_value); |
|
4368 Py_DECREF(__pyx_v_self); |
|
4369 Py_DECREF(__pyx_v_anchor); |
|
4370 return __pyx_r; |
|
4371 } |
|
4372 |
|
4373 static int __pyx_f_5_yaml_7CParser__parse_next_event(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) { |
|
4374 PyObject *__pyx_v_error; |
|
4375 int __pyx_r; |
|
4376 int __pyx_1; |
|
4377 int __pyx_2; |
|
4378 PyObject *__pyx_3 = 0; |
|
4379 Py_INCREF(__pyx_v_self); |
|
4380 __pyx_v_error = Py_None; Py_INCREF(Py_None); |
|
4381 |
|
4382 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":845 */ |
|
4383 __pyx_1 = (__pyx_v_self->parsed_event.type == YAML_NO_EVENT); |
|
4384 if (__pyx_1) { |
|
4385 |
|
4386 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":846 */ |
|
4387 __pyx_1 = yaml_parser_parse((&__pyx_v_self->parser),(&__pyx_v_self->parsed_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 846; goto __pyx_L1;} |
|
4388 __pyx_2 = (__pyx_1 == 0); |
|
4389 if (__pyx_2) { |
|
4390 |
|
4391 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":847 */ |
|
4392 __pyx_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parser_error(__pyx_v_self); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; goto __pyx_L1;} |
|
4393 Py_DECREF(__pyx_v_error); |
|
4394 __pyx_v_error = __pyx_3; |
|
4395 __pyx_3 = 0; |
|
4396 |
|
4397 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":848 */ |
|
4398 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
4399 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; goto __pyx_L1;} |
|
4400 goto __pyx_L3; |
|
4401 } |
|
4402 __pyx_L3:; |
|
4403 goto __pyx_L2; |
|
4404 } |
|
4405 __pyx_L2:; |
|
4406 |
|
4407 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":849 */ |
|
4408 __pyx_r = 1; |
|
4409 goto __pyx_L0; |
|
4410 |
|
4411 __pyx_r = 0; |
|
4412 goto __pyx_L0; |
|
4413 __pyx_L1:; |
|
4414 Py_XDECREF(__pyx_3); |
|
4415 __Pyx_AddTraceback("_yaml.CParser._parse_next_event"); |
|
4416 __pyx_r = 0; |
|
4417 __pyx_L0:; |
|
4418 Py_DECREF(__pyx_v_error); |
|
4419 Py_DECREF(__pyx_v_self); |
|
4420 return __pyx_r; |
|
4421 } |
|
4422 |
|
4423 static PyObject *__pyx_k71p; |
|
4424 static PyObject *__pyx_k72p; |
|
4425 |
|
4426 static char (__pyx_k71[]) = "a string value is expected"; |
|
4427 static char (__pyx_k72[]) = "a string value it too long"; |
|
4428 |
|
4429 static int __pyx_f_5_yaml_input_handler(void (*__pyx_v_data),char (*__pyx_v_buffer),int __pyx_v_size,int (*__pyx_v_read)) { |
|
4430 struct __pyx_obj_5_yaml_CParser *__pyx_v_parser; |
|
4431 PyObject *__pyx_v_value; |
|
4432 int __pyx_r; |
|
4433 PyObject *__pyx_1 = 0; |
|
4434 PyObject *__pyx_2 = 0; |
|
4435 PyObject *__pyx_3 = 0; |
|
4436 int __pyx_4; |
|
4437 __pyx_v_parser = ((struct __pyx_obj_5_yaml_CParser *)Py_None); Py_INCREF(Py_None); |
|
4438 __pyx_v_value = Py_None; Py_INCREF(Py_None); |
|
4439 |
|
4440 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":853 */ |
|
4441 __pyx_1 = (PyObject *)__pyx_v_data; |
|
4442 Py_INCREF(__pyx_1); |
|
4443 Py_DECREF(((PyObject *)__pyx_v_parser)); |
|
4444 __pyx_v_parser = ((struct __pyx_obj_5_yaml_CParser *)__pyx_1); |
|
4445 __pyx_1 = 0; |
|
4446 |
|
4447 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":854 */ |
|
4448 __pyx_1 = PyObject_GetAttr(__pyx_v_parser->stream, __pyx_n_read); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 854; goto __pyx_L1;} |
|
4449 __pyx_2 = PyInt_FromLong(__pyx_v_size); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 854; goto __pyx_L1;} |
|
4450 __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 854; goto __pyx_L1;} |
|
4451 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2); |
|
4452 __pyx_2 = 0; |
|
4453 __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 854; goto __pyx_L1;} |
|
4454 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4455 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
4456 Py_DECREF(__pyx_v_value); |
|
4457 __pyx_v_value = __pyx_2; |
|
4458 __pyx_2 = 0; |
|
4459 |
|
4460 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":855 */ |
|
4461 __pyx_4 = (PyString_CheckExact(__pyx_v_value) == 0); |
|
4462 if (__pyx_4) { |
|
4463 |
|
4464 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":856 */ |
|
4465 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 856; goto __pyx_L1;} |
|
4466 __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 856; goto __pyx_L1;} |
|
4467 Py_INCREF(__pyx_k71p); |
|
4468 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k71p); |
|
4469 __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 856; goto __pyx_L1;} |
|
4470 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4471 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
4472 __Pyx_Raise(__pyx_2, 0, 0); |
|
4473 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
4474 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 856; goto __pyx_L1;} |
|
4475 goto __pyx_L2; |
|
4476 } |
|
4477 __pyx_L2:; |
|
4478 |
|
4479 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":857 */ |
|
4480 __pyx_4 = (PyString_GET_SIZE(__pyx_v_value) > __pyx_v_size); |
|
4481 if (__pyx_4) { |
|
4482 |
|
4483 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":858 */ |
|
4484 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; goto __pyx_L1;} |
|
4485 __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; goto __pyx_L1;} |
|
4486 Py_INCREF(__pyx_k72p); |
|
4487 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k72p); |
|
4488 __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; goto __pyx_L1;} |
|
4489 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4490 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
4491 __Pyx_Raise(__pyx_2, 0, 0); |
|
4492 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
4493 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; goto __pyx_L1;} |
|
4494 goto __pyx_L3; |
|
4495 } |
|
4496 __pyx_L3:; |
|
4497 |
|
4498 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":859 */ |
|
4499 memcpy(__pyx_v_buffer,PyString_AS_STRING(__pyx_v_value),PyString_GET_SIZE(__pyx_v_value)); |
|
4500 |
|
4501 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":860 */ |
|
4502 (__pyx_v_read[0]) = PyString_GET_SIZE(__pyx_v_value); |
|
4503 |
|
4504 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":861 */ |
|
4505 __pyx_r = 1; |
|
4506 goto __pyx_L0; |
|
4507 |
|
4508 __pyx_r = 0; |
|
4509 goto __pyx_L0; |
|
4510 __pyx_L1:; |
|
4511 Py_XDECREF(__pyx_1); |
|
4512 Py_XDECREF(__pyx_2); |
|
4513 Py_XDECREF(__pyx_3); |
|
4514 __Pyx_AddTraceback("_yaml.input_handler"); |
|
4515 __pyx_r = 0; |
|
4516 __pyx_L0:; |
|
4517 Py_DECREF(__pyx_v_parser); |
|
4518 Py_DECREF(__pyx_v_value); |
|
4519 return __pyx_r; |
|
4520 } |
|
4521 |
|
4522 static PyObject *__pyx_k73p; |
|
4523 static PyObject *__pyx_k74p; |
|
4524 static PyObject *__pyx_k75p; |
|
4525 static PyObject *__pyx_k76p; |
|
4526 static PyObject *__pyx_k77p; |
|
4527 |
|
4528 static char (__pyx_k73[]) = "\r"; |
|
4529 static char (__pyx_k74[]) = "\n"; |
|
4530 static char (__pyx_k75[]) = "\r\n"; |
|
4531 static char (__pyx_k76[]) = "utf-16-le"; |
|
4532 static char (__pyx_k77[]) = "utf-16-be"; |
|
4533 |
|
4534 static int __pyx_f_5_yaml_8CEmitter___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
4535 static int __pyx_f_5_yaml_8CEmitter___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
4536 PyObject *__pyx_v_stream = 0; |
|
4537 PyObject *__pyx_v_canonical = 0; |
|
4538 PyObject *__pyx_v_indent = 0; |
|
4539 PyObject *__pyx_v_width = 0; |
|
4540 PyObject *__pyx_v_allow_unicode = 0; |
|
4541 PyObject *__pyx_v_line_break = 0; |
|
4542 PyObject *__pyx_v_encoding = 0; |
|
4543 PyObject *__pyx_v_explicit_start = 0; |
|
4544 PyObject *__pyx_v_explicit_end = 0; |
|
4545 PyObject *__pyx_v_version = 0; |
|
4546 PyObject *__pyx_v_tags = 0; |
|
4547 int __pyx_r; |
|
4548 int __pyx_1; |
|
4549 PyObject *__pyx_2 = 0; |
|
4550 static char *__pyx_argnames[] = {"stream","canonical","indent","width","allow_unicode","line_break","encoding","explicit_start","explicit_end","version","tags",0}; |
|
4551 __pyx_v_canonical = __pyx_k2; |
|
4552 __pyx_v_indent = __pyx_k3; |
|
4553 __pyx_v_width = __pyx_k4; |
|
4554 __pyx_v_allow_unicode = __pyx_k5; |
|
4555 __pyx_v_line_break = __pyx_k6; |
|
4556 __pyx_v_encoding = __pyx_k7; |
|
4557 __pyx_v_explicit_start = __pyx_k8; |
|
4558 __pyx_v_explicit_end = __pyx_k9; |
|
4559 __pyx_v_version = __pyx_k10; |
|
4560 __pyx_v_tags = __pyx_k11; |
|
4561 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O|OOOOOOOOOO", __pyx_argnames, &__pyx_v_stream, &__pyx_v_canonical, &__pyx_v_indent, &__pyx_v_width, &__pyx_v_allow_unicode, &__pyx_v_line_break, &__pyx_v_encoding, &__pyx_v_explicit_start, &__pyx_v_explicit_end, &__pyx_v_version, &__pyx_v_tags)) return -1; |
|
4562 Py_INCREF(__pyx_v_self); |
|
4563 Py_INCREF(__pyx_v_stream); |
|
4564 Py_INCREF(__pyx_v_canonical); |
|
4565 Py_INCREF(__pyx_v_indent); |
|
4566 Py_INCREF(__pyx_v_width); |
|
4567 Py_INCREF(__pyx_v_allow_unicode); |
|
4568 Py_INCREF(__pyx_v_line_break); |
|
4569 Py_INCREF(__pyx_v_encoding); |
|
4570 Py_INCREF(__pyx_v_explicit_start); |
|
4571 Py_INCREF(__pyx_v_explicit_end); |
|
4572 Py_INCREF(__pyx_v_version); |
|
4573 Py_INCREF(__pyx_v_tags); |
|
4574 |
|
4575 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":883 */ |
|
4576 __pyx_1 = (yaml_emitter_initialize((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter)) == 0); |
|
4577 if (__pyx_1) { |
|
4578 |
|
4579 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":884 */ |
|
4580 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 884; goto __pyx_L1;} |
|
4581 __Pyx_Raise(__pyx_2, 0, 0); |
|
4582 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
4583 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 884; goto __pyx_L1;} |
|
4584 goto __pyx_L2; |
|
4585 } |
|
4586 __pyx_L2:; |
|
4587 |
|
4588 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":885 */ |
|
4589 Py_INCREF(__pyx_v_stream); |
|
4590 Py_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->stream); |
|
4591 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->stream = __pyx_v_stream; |
|
4592 |
|
4593 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":886 */ |
|
4594 yaml_emitter_set_output((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter),__pyx_f_5_yaml_output_handler,((void (*))__pyx_v_self)); |
|
4595 |
|
4596 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":887 */ |
|
4597 __pyx_1 = __pyx_v_canonical != Py_None; |
|
4598 if (__pyx_1) { |
|
4599 |
|
4600 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":888 */ |
|
4601 yaml_emitter_set_canonical((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter),1); |
|
4602 goto __pyx_L3; |
|
4603 } |
|
4604 __pyx_L3:; |
|
4605 |
|
4606 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":889 */ |
|
4607 __pyx_1 = __pyx_v_indent != Py_None; |
|
4608 if (__pyx_1) { |
|
4609 |
|
4610 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":890 */ |
|
4611 __pyx_1 = PyInt_AsLong(__pyx_v_indent); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 890; goto __pyx_L1;} |
|
4612 yaml_emitter_set_indent((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter),__pyx_1); |
|
4613 goto __pyx_L4; |
|
4614 } |
|
4615 __pyx_L4:; |
|
4616 |
|
4617 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":891 */ |
|
4618 __pyx_1 = __pyx_v_width != Py_None; |
|
4619 if (__pyx_1) { |
|
4620 |
|
4621 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":892 */ |
|
4622 __pyx_1 = PyInt_AsLong(__pyx_v_width); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; goto __pyx_L1;} |
|
4623 yaml_emitter_set_width((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter),__pyx_1); |
|
4624 goto __pyx_L5; |
|
4625 } |
|
4626 __pyx_L5:; |
|
4627 |
|
4628 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":893 */ |
|
4629 __pyx_1 = __pyx_v_allow_unicode != Py_None; |
|
4630 if (__pyx_1) { |
|
4631 |
|
4632 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":894 */ |
|
4633 yaml_emitter_set_unicode((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter),1); |
|
4634 goto __pyx_L6; |
|
4635 } |
|
4636 __pyx_L6:; |
|
4637 |
|
4638 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":895 */ |
|
4639 __pyx_1 = __pyx_v_line_break != Py_None; |
|
4640 if (__pyx_1) { |
|
4641 |
|
4642 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":896 */ |
|
4643 if (PyObject_Cmp(__pyx_v_line_break, __pyx_k73p, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; goto __pyx_L1;} |
|
4644 __pyx_1 = __pyx_1 == 0; |
|
4645 if (__pyx_1) { |
|
4646 |
|
4647 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":897 */ |
|
4648 yaml_emitter_set_break((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter),YAML_CR_BREAK); |
|
4649 goto __pyx_L8; |
|
4650 } |
|
4651 if (PyObject_Cmp(__pyx_v_line_break, __pyx_k74p, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; goto __pyx_L1;} |
|
4652 __pyx_1 = __pyx_1 == 0; |
|
4653 if (__pyx_1) { |
|
4654 |
|
4655 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":899 */ |
|
4656 yaml_emitter_set_break((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter),YAML_LN_BREAK); |
|
4657 goto __pyx_L8; |
|
4658 } |
|
4659 if (PyObject_Cmp(__pyx_v_line_break, __pyx_k75p, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; goto __pyx_L1;} |
|
4660 __pyx_1 = __pyx_1 == 0; |
|
4661 if (__pyx_1) { |
|
4662 |
|
4663 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":901 */ |
|
4664 yaml_emitter_set_break((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter),YAML_CRLN_BREAK); |
|
4665 goto __pyx_L8; |
|
4666 } |
|
4667 __pyx_L8:; |
|
4668 goto __pyx_L7; |
|
4669 } |
|
4670 __pyx_L7:; |
|
4671 |
|
4672 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":902 */ |
|
4673 if (PyObject_Cmp(__pyx_v_encoding, __pyx_k76p, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 902; goto __pyx_L1;} |
|
4674 __pyx_1 = __pyx_1 == 0; |
|
4675 if (__pyx_1) { |
|
4676 |
|
4677 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":903 */ |
|
4678 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_encoding = YAML_UTF16LE_ENCODING; |
|
4679 goto __pyx_L9; |
|
4680 } |
|
4681 if (PyObject_Cmp(__pyx_v_encoding, __pyx_k77p, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; goto __pyx_L1;} |
|
4682 __pyx_1 = __pyx_1 == 0; |
|
4683 if (__pyx_1) { |
|
4684 |
|
4685 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":905 */ |
|
4686 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_encoding = YAML_UTF16BE_ENCODING; |
|
4687 goto __pyx_L9; |
|
4688 } |
|
4689 /*else*/ { |
|
4690 |
|
4691 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":907 */ |
|
4692 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_encoding = YAML_UTF8_ENCODING; |
|
4693 } |
|
4694 __pyx_L9:; |
|
4695 |
|
4696 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":908 */ |
|
4697 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->document_start_implicit = 1; |
|
4698 |
|
4699 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":909 */ |
|
4700 __pyx_1 = PyObject_IsTrue(__pyx_v_explicit_start); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 909; goto __pyx_L1;} |
|
4701 if (__pyx_1) { |
|
4702 |
|
4703 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":910 */ |
|
4704 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->document_start_implicit = 0; |
|
4705 goto __pyx_L10; |
|
4706 } |
|
4707 __pyx_L10:; |
|
4708 |
|
4709 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":911 */ |
|
4710 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->document_end_implicit = 1; |
|
4711 |
|
4712 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":912 */ |
|
4713 __pyx_1 = PyObject_IsTrue(__pyx_v_explicit_end); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; goto __pyx_L1;} |
|
4714 if (__pyx_1) { |
|
4715 |
|
4716 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":913 */ |
|
4717 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->document_end_implicit = 0; |
|
4718 goto __pyx_L11; |
|
4719 } |
|
4720 __pyx_L11:; |
|
4721 |
|
4722 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":914 */ |
|
4723 Py_INCREF(__pyx_v_version); |
|
4724 Py_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_version); |
|
4725 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_version = __pyx_v_version; |
|
4726 |
|
4727 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":915 */ |
|
4728 Py_INCREF(__pyx_v_tags); |
|
4729 Py_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags); |
|
4730 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags = __pyx_v_tags; |
|
4731 |
|
4732 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":916 */ |
|
4733 __pyx_2 = PyDict_New(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; goto __pyx_L1;} |
|
4734 Py_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->serialized_nodes); |
|
4735 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->serialized_nodes = __pyx_2; |
|
4736 __pyx_2 = 0; |
|
4737 |
|
4738 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":917 */ |
|
4739 __pyx_2 = PyDict_New(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; goto __pyx_L1;} |
|
4740 Py_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->anchors); |
|
4741 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->anchors = __pyx_2; |
|
4742 __pyx_2 = 0; |
|
4743 |
|
4744 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":918 */ |
|
4745 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->last_alias_id = 0; |
|
4746 |
|
4747 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":919 */ |
|
4748 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed = (-1); |
|
4749 |
|
4750 __pyx_r = 0; |
|
4751 goto __pyx_L0; |
|
4752 __pyx_L1:; |
|
4753 Py_XDECREF(__pyx_2); |
|
4754 __Pyx_AddTraceback("_yaml.CEmitter.__init__"); |
|
4755 __pyx_r = -1; |
|
4756 __pyx_L0:; |
|
4757 Py_DECREF(__pyx_v_self); |
|
4758 Py_DECREF(__pyx_v_stream); |
|
4759 Py_DECREF(__pyx_v_canonical); |
|
4760 Py_DECREF(__pyx_v_indent); |
|
4761 Py_DECREF(__pyx_v_width); |
|
4762 Py_DECREF(__pyx_v_allow_unicode); |
|
4763 Py_DECREF(__pyx_v_line_break); |
|
4764 Py_DECREF(__pyx_v_encoding); |
|
4765 Py_DECREF(__pyx_v_explicit_start); |
|
4766 Py_DECREF(__pyx_v_explicit_end); |
|
4767 Py_DECREF(__pyx_v_version); |
|
4768 Py_DECREF(__pyx_v_tags); |
|
4769 return __pyx_r; |
|
4770 } |
|
4771 |
|
4772 static void __pyx_f_5_yaml_8CEmitter___dealloc__(PyObject *__pyx_v_self); /*proto*/ |
|
4773 static void __pyx_f_5_yaml_8CEmitter___dealloc__(PyObject *__pyx_v_self) { |
|
4774 Py_INCREF(__pyx_v_self); |
|
4775 |
|
4776 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":922 */ |
|
4777 yaml_emitter_delete((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter)); |
|
4778 |
|
4779 goto __pyx_L0; |
|
4780 __pyx_L1:; |
|
4781 __Pyx_AddTraceback("_yaml.CEmitter.__dealloc__"); |
|
4782 __pyx_L0:; |
|
4783 Py_DECREF(__pyx_v_self); |
|
4784 } |
|
4785 |
|
4786 static PyObject *__pyx_k78p; |
|
4787 |
|
4788 static char (__pyx_k78[]) = "no emitter error"; |
|
4789 |
|
4790 static PyObject *__pyx_f_5_yaml_8CEmitter__emitter_error(struct __pyx_obj_5_yaml_CEmitter *__pyx_v_self) { |
|
4791 PyObject *__pyx_r; |
|
4792 int __pyx_1; |
|
4793 PyObject *__pyx_2 = 0; |
|
4794 PyObject *__pyx_3 = 0; |
|
4795 PyObject *__pyx_4 = 0; |
|
4796 Py_INCREF(__pyx_v_self); |
|
4797 |
|
4798 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":925 */ |
|
4799 __pyx_1 = (__pyx_v_self->emitter.error == YAML_MEMORY_ERROR); |
|
4800 if (__pyx_1) { |
|
4801 |
|
4802 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":926 */ |
|
4803 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; goto __pyx_L1;} |
|
4804 __pyx_r = __pyx_2; |
|
4805 __pyx_2 = 0; |
|
4806 goto __pyx_L0; |
|
4807 goto __pyx_L2; |
|
4808 } |
|
4809 __pyx_1 = (__pyx_v_self->emitter.error == YAML_EMITTER_ERROR); |
|
4810 if (__pyx_1) { |
|
4811 |
|
4812 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":928 */ |
|
4813 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_EmitterError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 928; goto __pyx_L1;} |
|
4814 __pyx_3 = PyString_FromString(__pyx_v_self->emitter.problem); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 928; goto __pyx_L1;} |
|
4815 __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 928; goto __pyx_L1;} |
|
4816 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3); |
|
4817 __pyx_3 = 0; |
|
4818 __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 928; goto __pyx_L1;} |
|
4819 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
4820 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
4821 __pyx_r = __pyx_3; |
|
4822 __pyx_3 = 0; |
|
4823 goto __pyx_L0; |
|
4824 goto __pyx_L2; |
|
4825 } |
|
4826 __pyx_L2:; |
|
4827 |
|
4828 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":929 */ |
|
4829 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; goto __pyx_L1;} |
|
4830 __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; goto __pyx_L1;} |
|
4831 Py_INCREF(__pyx_k78p); |
|
4832 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k78p); |
|
4833 __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; goto __pyx_L1;} |
|
4834 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
4835 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
4836 __Pyx_Raise(__pyx_3, 0, 0); |
|
4837 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
4838 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; goto __pyx_L1;} |
|
4839 |
|
4840 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
4841 goto __pyx_L0; |
|
4842 __pyx_L1:; |
|
4843 Py_XDECREF(__pyx_2); |
|
4844 Py_XDECREF(__pyx_3); |
|
4845 Py_XDECREF(__pyx_4); |
|
4846 __Pyx_AddTraceback("_yaml.CEmitter._emitter_error"); |
|
4847 __pyx_r = 0; |
|
4848 __pyx_L0:; |
|
4849 Py_DECREF(__pyx_v_self); |
|
4850 return __pyx_r; |
|
4851 } |
|
4852 |
|
4853 static PyObject *__pyx_n_encoding; |
|
4854 static PyObject *__pyx_n_version; |
|
4855 static PyObject *__pyx_n_tags; |
|
4856 static PyObject *__pyx_n_len; |
|
4857 static PyObject *__pyx_n_explicit; |
|
4858 static PyObject *__pyx_n_anchor; |
|
4859 static PyObject *__pyx_n_tag; |
|
4860 static PyObject *__pyx_n_value; |
|
4861 static PyObject *__pyx_n_implicit; |
|
4862 static PyObject *__pyx_n_style; |
|
4863 static PyObject *__pyx_n_flow_style; |
|
4864 |
|
4865 static PyObject *__pyx_k79p; |
|
4866 static PyObject *__pyx_k80p; |
|
4867 static PyObject *__pyx_k81p; |
|
4868 static PyObject *__pyx_k82p; |
|
4869 static PyObject *__pyx_k83p; |
|
4870 static PyObject *__pyx_k84p; |
|
4871 static PyObject *__pyx_k85p; |
|
4872 static PyObject *__pyx_k86p; |
|
4873 static PyObject *__pyx_k87p; |
|
4874 static PyObject *__pyx_k88p; |
|
4875 static PyObject *__pyx_k89p; |
|
4876 static PyObject *__pyx_k90p; |
|
4877 static PyObject *__pyx_k91p; |
|
4878 static PyObject *__pyx_k92p; |
|
4879 static PyObject *__pyx_k93p; |
|
4880 static PyObject *__pyx_k94p; |
|
4881 static PyObject *__pyx_k95p; |
|
4882 static PyObject *__pyx_k96p; |
|
4883 |
|
4884 static char (__pyx_k79[]) = "utf-16-le"; |
|
4885 static char (__pyx_k80[]) = "utf-16-be"; |
|
4886 static char (__pyx_k81[]) = "too many tags"; |
|
4887 static char (__pyx_k82[]) = "tag handle must be a string"; |
|
4888 static char (__pyx_k83[]) = "tag prefix must be a string"; |
|
4889 static char (__pyx_k84[]) = "anchor must be a string"; |
|
4890 static char (__pyx_k85[]) = "anchor must be a string"; |
|
4891 static char (__pyx_k86[]) = "tag must be a string"; |
|
4892 static char (__pyx_k87[]) = "value must be a string"; |
|
4893 static char (__pyx_k88[]) = "\'"; |
|
4894 static char (__pyx_k89[]) = "\""; |
|
4895 static char (__pyx_k90[]) = "|"; |
|
4896 static char (__pyx_k91[]) = ">"; |
|
4897 static char (__pyx_k92[]) = "anchor must be a string"; |
|
4898 static char (__pyx_k93[]) = "tag must be a string"; |
|
4899 static char (__pyx_k94[]) = "anchor must be a string"; |
|
4900 static char (__pyx_k95[]) = "tag must be a string"; |
|
4901 static char (__pyx_k96[]) = "invalid event %s"; |
|
4902 |
|
4903 static int __pyx_f_5_yaml_8CEmitter__object_to_event(struct __pyx_obj_5_yaml_CEmitter *__pyx_v_self,PyObject *__pyx_v_event_object,yaml_event_t (*__pyx_v_event)) { |
|
4904 yaml_encoding_t __pyx_v_encoding; |
|
4905 yaml_version_directive_t __pyx_v_version_directive_value; |
|
4906 yaml_version_directive_t (*__pyx_v_version_directive); |
|
4907 yaml_tag_directive_t (__pyx_v_tag_directives_value[128]); |
|
4908 yaml_tag_directive_t (*__pyx_v_tag_directives_start); |
|
4909 yaml_tag_directive_t (*__pyx_v_tag_directives_end); |
|
4910 int __pyx_v_implicit; |
|
4911 int __pyx_v_plain_implicit; |
|
4912 int __pyx_v_quoted_implicit; |
|
4913 char (*__pyx_v_anchor); |
|
4914 char (*__pyx_v_tag); |
|
4915 char (*__pyx_v_value); |
|
4916 int __pyx_v_length; |
|
4917 yaml_scalar_style_t __pyx_v_scalar_style; |
|
4918 yaml_sequence_style_t __pyx_v_sequence_style; |
|
4919 yaml_mapping_style_t __pyx_v_mapping_style; |
|
4920 PyObject *__pyx_v_event_class; |
|
4921 PyObject *__pyx_v_cache; |
|
4922 PyObject *__pyx_v_handle; |
|
4923 PyObject *__pyx_v_prefix; |
|
4924 PyObject *__pyx_v_anchor_object; |
|
4925 PyObject *__pyx_v_tag_object; |
|
4926 PyObject *__pyx_v_value_object; |
|
4927 PyObject *__pyx_v_style_object; |
|
4928 int __pyx_r; |
|
4929 PyObject *__pyx_1 = 0; |
|
4930 int __pyx_2; |
|
4931 PyObject *__pyx_3 = 0; |
|
4932 PyObject *__pyx_4 = 0; |
|
4933 PyObject *__pyx_5 = 0; |
|
4934 Py_INCREF(__pyx_v_self); |
|
4935 Py_INCREF(__pyx_v_event_object); |
|
4936 __pyx_v_event_class = Py_None; Py_INCREF(Py_None); |
|
4937 __pyx_v_cache = Py_None; Py_INCREF(Py_None); |
|
4938 __pyx_v_handle = Py_None; Py_INCREF(Py_None); |
|
4939 __pyx_v_prefix = Py_None; Py_INCREF(Py_None); |
|
4940 __pyx_v_anchor_object = Py_None; Py_INCREF(Py_None); |
|
4941 __pyx_v_tag_object = Py_None; Py_INCREF(Py_None); |
|
4942 __pyx_v_value_object = Py_None; Py_INCREF(Py_None); |
|
4943 __pyx_v_style_object = Py_None; Py_INCREF(Py_None); |
|
4944 |
|
4945 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":948 */ |
|
4946 __pyx_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n___class__); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; goto __pyx_L1;} |
|
4947 Py_DECREF(__pyx_v_event_class); |
|
4948 __pyx_v_event_class = __pyx_1; |
|
4949 __pyx_1 = 0; |
|
4950 |
|
4951 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":949 */ |
|
4952 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_StreamStartEvent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; goto __pyx_L1;} |
|
4953 __pyx_2 = __pyx_v_event_class == __pyx_1; |
|
4954 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4955 if (__pyx_2) { |
|
4956 |
|
4957 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":950 */ |
|
4958 __pyx_v_encoding = YAML_UTF8_ENCODING; |
|
4959 |
|
4960 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":951 */ |
|
4961 __pyx_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_encoding); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; goto __pyx_L1;} |
|
4962 if (PyObject_Cmp(__pyx_1, __pyx_k79p, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; goto __pyx_L1;} |
|
4963 __pyx_2 = __pyx_2 == 0; |
|
4964 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4965 if (__pyx_2) { |
|
4966 |
|
4967 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":952 */ |
|
4968 __pyx_v_encoding = YAML_UTF16LE_ENCODING; |
|
4969 goto __pyx_L3; |
|
4970 } |
|
4971 __pyx_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_encoding); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; goto __pyx_L1;} |
|
4972 if (PyObject_Cmp(__pyx_1, __pyx_k80p, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; goto __pyx_L1;} |
|
4973 __pyx_2 = __pyx_2 == 0; |
|
4974 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4975 if (__pyx_2) { |
|
4976 |
|
4977 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":954 */ |
|
4978 __pyx_v_encoding = YAML_UTF16BE_ENCODING; |
|
4979 goto __pyx_L3; |
|
4980 } |
|
4981 __pyx_L3:; |
|
4982 |
|
4983 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":955 */ |
|
4984 yaml_stream_start_event_initialize(__pyx_v_event,__pyx_v_encoding); |
|
4985 goto __pyx_L2; |
|
4986 } |
|
4987 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_StreamEndEvent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 956; goto __pyx_L1;} |
|
4988 __pyx_2 = __pyx_v_event_class == __pyx_1; |
|
4989 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4990 if (__pyx_2) { |
|
4991 |
|
4992 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":957 */ |
|
4993 yaml_stream_end_event_initialize(__pyx_v_event); |
|
4994 goto __pyx_L2; |
|
4995 } |
|
4996 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_DocumentStartEvent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 958; goto __pyx_L1;} |
|
4997 __pyx_2 = __pyx_v_event_class == __pyx_1; |
|
4998 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
4999 if (__pyx_2) { |
|
5000 |
|
5001 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":959 */ |
|
5002 __pyx_v_version_directive = 0; |
|
5003 |
|
5004 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":960 */ |
|
5005 __pyx_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_version); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; goto __pyx_L1;} |
|
5006 __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; goto __pyx_L1;} |
|
5007 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5008 if (__pyx_2) { |
|
5009 |
|
5010 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":961 */ |
|
5011 __pyx_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_version); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 961; goto __pyx_L1;} |
|
5012 __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 961; goto __pyx_L1;} |
|
5013 __pyx_4 = PyObject_GetItem(__pyx_1, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 961; goto __pyx_L1;} |
|
5014 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5015 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5016 __pyx_2 = PyInt_AsLong(__pyx_4); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 961; goto __pyx_L1;} |
|
5017 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5018 __pyx_v_version_directive_value.major = __pyx_2; |
|
5019 |
|
5020 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":962 */ |
|
5021 __pyx_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_version); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; goto __pyx_L1;} |
|
5022 __pyx_3 = PyInt_FromLong(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; goto __pyx_L1;} |
|
5023 __pyx_4 = PyObject_GetItem(__pyx_1, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; goto __pyx_L1;} |
|
5024 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5025 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5026 __pyx_2 = PyInt_AsLong(__pyx_4); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; goto __pyx_L1;} |
|
5027 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5028 __pyx_v_version_directive_value.minor = __pyx_2; |
|
5029 |
|
5030 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":963 */ |
|
5031 __pyx_v_version_directive = (&__pyx_v_version_directive_value); |
|
5032 goto __pyx_L4; |
|
5033 } |
|
5034 __pyx_L4:; |
|
5035 |
|
5036 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":964 */ |
|
5037 __pyx_v_tag_directives_start = 0; |
|
5038 |
|
5039 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":965 */ |
|
5040 __pyx_v_tag_directives_end = 0; |
|
5041 |
|
5042 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":966 */ |
|
5043 __pyx_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_tags); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; goto __pyx_L1;} |
|
5044 __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; goto __pyx_L1;} |
|
5045 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5046 if (__pyx_2) { |
|
5047 |
|
5048 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":967 */ |
|
5049 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_len); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 967; goto __pyx_L1;} |
|
5050 __pyx_4 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_tags); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 967; goto __pyx_L1;} |
|
5051 __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 967; goto __pyx_L1;} |
|
5052 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_4); |
|
5053 __pyx_4 = 0; |
|
5054 __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 967; goto __pyx_L1;} |
|
5055 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5056 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5057 __pyx_3 = PyInt_FromLong(128); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 967; goto __pyx_L1;} |
|
5058 if (PyObject_Cmp(__pyx_4, __pyx_3, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 967; goto __pyx_L1;} |
|
5059 __pyx_2 = __pyx_2 > 0; |
|
5060 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5061 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5062 if (__pyx_2) { |
|
5063 |
|
5064 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":968 */ |
|
5065 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; goto __pyx_L1;} |
|
5066 __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; goto __pyx_L1;} |
|
5067 Py_INCREF(__pyx_k81p); |
|
5068 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k81p); |
|
5069 __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; goto __pyx_L1;} |
|
5070 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5071 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5072 __Pyx_Raise(__pyx_3, 0, 0); |
|
5073 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5074 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; goto __pyx_L1;} |
|
5075 goto __pyx_L6; |
|
5076 } |
|
5077 __pyx_L6:; |
|
5078 |
|
5079 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":969 */ |
|
5080 __pyx_v_tag_directives_start = __pyx_v_tag_directives_value; |
|
5081 |
|
5082 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":970 */ |
|
5083 __pyx_v_tag_directives_end = __pyx_v_tag_directives_value; |
|
5084 |
|
5085 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":971 */ |
|
5086 __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; goto __pyx_L1;} |
|
5087 Py_DECREF(__pyx_v_cache); |
|
5088 __pyx_v_cache = __pyx_1; |
|
5089 __pyx_1 = 0; |
|
5090 |
|
5091 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":972 */ |
|
5092 __pyx_4 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_tags); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 972; goto __pyx_L1;} |
|
5093 __pyx_3 = PyObject_GetIter(__pyx_4); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 972; goto __pyx_L1;} |
|
5094 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5095 for (;;) { |
|
5096 __pyx_L7:; |
|
5097 __pyx_1 = PyIter_Next(__pyx_3); |
|
5098 if (!__pyx_1) { |
|
5099 if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 972; goto __pyx_L1;} |
|
5100 break; |
|
5101 } |
|
5102 Py_DECREF(__pyx_v_handle); |
|
5103 __pyx_v_handle = __pyx_1; |
|
5104 __pyx_1 = 0; |
|
5105 |
|
5106 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":973 */ |
|
5107 __pyx_4 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_tags); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 973; goto __pyx_L1;} |
|
5108 __pyx_1 = PyObject_GetItem(__pyx_4, __pyx_v_handle); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 973; goto __pyx_L1;} |
|
5109 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5110 Py_DECREF(__pyx_v_prefix); |
|
5111 __pyx_v_prefix = __pyx_1; |
|
5112 __pyx_1 = 0; |
|
5113 |
|
5114 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":974 */ |
|
5115 __pyx_2 = PyUnicode_CheckExact(__pyx_v_handle); |
|
5116 if (__pyx_2) { |
|
5117 |
|
5118 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":975 */ |
|
5119 __pyx_4 = PyUnicode_AsUTF8String(__pyx_v_handle); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 975; goto __pyx_L1;} |
|
5120 Py_DECREF(__pyx_v_handle); |
|
5121 __pyx_v_handle = __pyx_4; |
|
5122 __pyx_4 = 0; |
|
5123 |
|
5124 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":976 */ |
|
5125 __pyx_1 = PyObject_GetAttr(__pyx_v_cache, __pyx_n_append); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 976; goto __pyx_L1;} |
|
5126 __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 976; goto __pyx_L1;} |
|
5127 Py_INCREF(__pyx_v_handle); |
|
5128 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_handle); |
|
5129 __pyx_5 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 976; goto __pyx_L1;} |
|
5130 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5131 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5132 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5133 goto __pyx_L9; |
|
5134 } |
|
5135 __pyx_L9:; |
|
5136 |
|
5137 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":977 */ |
|
5138 __pyx_2 = (!PyString_CheckExact(__pyx_v_handle)); |
|
5139 if (__pyx_2) { |
|
5140 |
|
5141 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":978 */ |
|
5142 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; goto __pyx_L1;} |
|
5143 __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; goto __pyx_L1;} |
|
5144 Py_INCREF(__pyx_k82p); |
|
5145 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k82p); |
|
5146 __pyx_5 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; goto __pyx_L1;} |
|
5147 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5148 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5149 __Pyx_Raise(__pyx_5, 0, 0); |
|
5150 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5151 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; goto __pyx_L1;} |
|
5152 goto __pyx_L10; |
|
5153 } |
|
5154 __pyx_L10:; |
|
5155 |
|
5156 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":979 */ |
|
5157 __pyx_v_tag_directives_end->handle = PyString_AS_STRING(__pyx_v_handle); |
|
5158 |
|
5159 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":980 */ |
|
5160 __pyx_2 = PyUnicode_CheckExact(__pyx_v_prefix); |
|
5161 if (__pyx_2) { |
|
5162 |
|
5163 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":981 */ |
|
5164 __pyx_1 = PyUnicode_AsUTF8String(__pyx_v_prefix); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 981; goto __pyx_L1;} |
|
5165 Py_DECREF(__pyx_v_prefix); |
|
5166 __pyx_v_prefix = __pyx_1; |
|
5167 __pyx_1 = 0; |
|
5168 |
|
5169 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":982 */ |
|
5170 __pyx_4 = PyObject_GetAttr(__pyx_v_cache, __pyx_n_append); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 982; goto __pyx_L1;} |
|
5171 __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 982; goto __pyx_L1;} |
|
5172 Py_INCREF(__pyx_v_prefix); |
|
5173 PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_prefix); |
|
5174 __pyx_1 = PyObject_CallObject(__pyx_4, __pyx_5); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 982; goto __pyx_L1;} |
|
5175 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5176 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5177 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5178 goto __pyx_L11; |
|
5179 } |
|
5180 __pyx_L11:; |
|
5181 |
|
5182 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":983 */ |
|
5183 __pyx_2 = (!PyString_CheckExact(__pyx_v_prefix)); |
|
5184 if (__pyx_2) { |
|
5185 |
|
5186 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":984 */ |
|
5187 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 984; goto __pyx_L1;} |
|
5188 __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 984; goto __pyx_L1;} |
|
5189 Py_INCREF(__pyx_k83p); |
|
5190 PyTuple_SET_ITEM(__pyx_5, 0, __pyx_k83p); |
|
5191 __pyx_1 = PyObject_CallObject(__pyx_4, __pyx_5); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 984; goto __pyx_L1;} |
|
5192 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5193 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5194 __Pyx_Raise(__pyx_1, 0, 0); |
|
5195 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5196 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 984; goto __pyx_L1;} |
|
5197 goto __pyx_L12; |
|
5198 } |
|
5199 __pyx_L12:; |
|
5200 |
|
5201 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":985 */ |
|
5202 __pyx_v_tag_directives_end->prefix = PyString_AS_STRING(__pyx_v_prefix); |
|
5203 |
|
5204 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":986 */ |
|
5205 __pyx_v_tag_directives_end = (__pyx_v_tag_directives_end + 1); |
|
5206 } |
|
5207 __pyx_L8:; |
|
5208 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5209 goto __pyx_L5; |
|
5210 } |
|
5211 __pyx_L5:; |
|
5212 |
|
5213 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":987 */ |
|
5214 __pyx_v_implicit = 1; |
|
5215 |
|
5216 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":988 */ |
|
5217 __pyx_4 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_explicit); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; goto __pyx_L1;} |
|
5218 __pyx_2 = PyObject_IsTrue(__pyx_4); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; goto __pyx_L1;} |
|
5219 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5220 if (__pyx_2) { |
|
5221 |
|
5222 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":989 */ |
|
5223 __pyx_v_implicit = 0; |
|
5224 goto __pyx_L13; |
|
5225 } |
|
5226 __pyx_L13:; |
|
5227 |
|
5228 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":990 */ |
|
5229 __pyx_2 = (yaml_document_start_event_initialize(__pyx_v_event,__pyx_v_version_directive,__pyx_v_tag_directives_start,__pyx_v_tag_directives_end,__pyx_v_implicit) == 0); |
|
5230 if (__pyx_2) { |
|
5231 |
|
5232 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":992 */ |
|
5233 __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 992; goto __pyx_L1;} |
|
5234 __Pyx_Raise(__pyx_5, 0, 0); |
|
5235 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5236 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 992; goto __pyx_L1;} |
|
5237 goto __pyx_L14; |
|
5238 } |
|
5239 __pyx_L14:; |
|
5240 goto __pyx_L2; |
|
5241 } |
|
5242 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_DocumentEndEvent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; goto __pyx_L1;} |
|
5243 __pyx_2 = __pyx_v_event_class == __pyx_1; |
|
5244 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5245 if (__pyx_2) { |
|
5246 |
|
5247 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":994 */ |
|
5248 __pyx_v_implicit = 1; |
|
5249 |
|
5250 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":995 */ |
|
5251 __pyx_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_explicit); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 995; goto __pyx_L1;} |
|
5252 __pyx_2 = PyObject_IsTrue(__pyx_3); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 995; goto __pyx_L1;} |
|
5253 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5254 if (__pyx_2) { |
|
5255 |
|
5256 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":996 */ |
|
5257 __pyx_v_implicit = 0; |
|
5258 goto __pyx_L15; |
|
5259 } |
|
5260 __pyx_L15:; |
|
5261 |
|
5262 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":997 */ |
|
5263 yaml_document_end_event_initialize(__pyx_v_event,__pyx_v_implicit); |
|
5264 goto __pyx_L2; |
|
5265 } |
|
5266 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_AliasEvent); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; goto __pyx_L1;} |
|
5267 __pyx_2 = __pyx_v_event_class == __pyx_4; |
|
5268 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5269 if (__pyx_2) { |
|
5270 |
|
5271 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":999 */ |
|
5272 __pyx_v_anchor = 0; |
|
5273 |
|
5274 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1000 */ |
|
5275 __pyx_5 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_anchor); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; goto __pyx_L1;} |
|
5276 Py_DECREF(__pyx_v_anchor_object); |
|
5277 __pyx_v_anchor_object = __pyx_5; |
|
5278 __pyx_5 = 0; |
|
5279 |
|
5280 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1001 */ |
|
5281 __pyx_2 = PyUnicode_CheckExact(__pyx_v_anchor_object); |
|
5282 if (__pyx_2) { |
|
5283 |
|
5284 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1002 */ |
|
5285 __pyx_1 = PyUnicode_AsUTF8String(__pyx_v_anchor_object); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1002; goto __pyx_L1;} |
|
5286 Py_DECREF(__pyx_v_anchor_object); |
|
5287 __pyx_v_anchor_object = __pyx_1; |
|
5288 __pyx_1 = 0; |
|
5289 goto __pyx_L16; |
|
5290 } |
|
5291 __pyx_L16:; |
|
5292 |
|
5293 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1003 */ |
|
5294 __pyx_2 = (!PyString_CheckExact(__pyx_v_anchor_object)); |
|
5295 if (__pyx_2) { |
|
5296 |
|
5297 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1004 */ |
|
5298 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1004; goto __pyx_L1;} |
|
5299 __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1004; goto __pyx_L1;} |
|
5300 Py_INCREF(__pyx_k84p); |
|
5301 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k84p); |
|
5302 __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1004; goto __pyx_L1;} |
|
5303 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5304 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5305 __Pyx_Raise(__pyx_5, 0, 0); |
|
5306 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5307 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1004; goto __pyx_L1;} |
|
5308 goto __pyx_L17; |
|
5309 } |
|
5310 __pyx_L17:; |
|
5311 |
|
5312 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1005 */ |
|
5313 __pyx_v_anchor = PyString_AS_STRING(__pyx_v_anchor_object); |
|
5314 |
|
5315 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1006 */ |
|
5316 __pyx_2 = (yaml_alias_event_initialize(__pyx_v_event,__pyx_v_anchor) == 0); |
|
5317 if (__pyx_2) { |
|
5318 |
|
5319 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1007 */ |
|
5320 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1007; goto __pyx_L1;} |
|
5321 __Pyx_Raise(__pyx_1, 0, 0); |
|
5322 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5323 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1007; goto __pyx_L1;} |
|
5324 goto __pyx_L18; |
|
5325 } |
|
5326 __pyx_L18:; |
|
5327 goto __pyx_L2; |
|
5328 } |
|
5329 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_ScalarEvent); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; goto __pyx_L1;} |
|
5330 __pyx_2 = __pyx_v_event_class == __pyx_3; |
|
5331 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5332 if (__pyx_2) { |
|
5333 |
|
5334 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1009 */ |
|
5335 __pyx_v_anchor = 0; |
|
5336 |
|
5337 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1010 */ |
|
5338 __pyx_4 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_anchor); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1010; goto __pyx_L1;} |
|
5339 Py_DECREF(__pyx_v_anchor_object); |
|
5340 __pyx_v_anchor_object = __pyx_4; |
|
5341 __pyx_4 = 0; |
|
5342 |
|
5343 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1011 */ |
|
5344 __pyx_2 = __pyx_v_anchor_object != Py_None; |
|
5345 if (__pyx_2) { |
|
5346 |
|
5347 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1012 */ |
|
5348 __pyx_2 = PyUnicode_CheckExact(__pyx_v_anchor_object); |
|
5349 if (__pyx_2) { |
|
5350 |
|
5351 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1013 */ |
|
5352 __pyx_5 = PyUnicode_AsUTF8String(__pyx_v_anchor_object); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; goto __pyx_L1;} |
|
5353 Py_DECREF(__pyx_v_anchor_object); |
|
5354 __pyx_v_anchor_object = __pyx_5; |
|
5355 __pyx_5 = 0; |
|
5356 goto __pyx_L20; |
|
5357 } |
|
5358 __pyx_L20:; |
|
5359 |
|
5360 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1014 */ |
|
5361 __pyx_2 = (!PyString_CheckExact(__pyx_v_anchor_object)); |
|
5362 if (__pyx_2) { |
|
5363 |
|
5364 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1015 */ |
|
5365 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1015; goto __pyx_L1;} |
|
5366 __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1015; goto __pyx_L1;} |
|
5367 Py_INCREF(__pyx_k85p); |
|
5368 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k85p); |
|
5369 __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1015; goto __pyx_L1;} |
|
5370 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5371 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5372 __Pyx_Raise(__pyx_4, 0, 0); |
|
5373 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5374 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1015; goto __pyx_L1;} |
|
5375 goto __pyx_L21; |
|
5376 } |
|
5377 __pyx_L21:; |
|
5378 |
|
5379 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1016 */ |
|
5380 __pyx_v_anchor = PyString_AS_STRING(__pyx_v_anchor_object); |
|
5381 goto __pyx_L19; |
|
5382 } |
|
5383 __pyx_L19:; |
|
5384 |
|
5385 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1017 */ |
|
5386 __pyx_v_tag = 0; |
|
5387 |
|
5388 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1018 */ |
|
5389 __pyx_5 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_tag); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1018; goto __pyx_L1;} |
|
5390 Py_DECREF(__pyx_v_tag_object); |
|
5391 __pyx_v_tag_object = __pyx_5; |
|
5392 __pyx_5 = 0; |
|
5393 |
|
5394 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1019 */ |
|
5395 __pyx_2 = __pyx_v_tag_object != Py_None; |
|
5396 if (__pyx_2) { |
|
5397 |
|
5398 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1020 */ |
|
5399 __pyx_2 = PyUnicode_CheckExact(__pyx_v_tag_object); |
|
5400 if (__pyx_2) { |
|
5401 |
|
5402 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1021 */ |
|
5403 __pyx_1 = PyUnicode_AsUTF8String(__pyx_v_tag_object); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; goto __pyx_L1;} |
|
5404 Py_DECREF(__pyx_v_tag_object); |
|
5405 __pyx_v_tag_object = __pyx_1; |
|
5406 __pyx_1 = 0; |
|
5407 goto __pyx_L23; |
|
5408 } |
|
5409 __pyx_L23:; |
|
5410 |
|
5411 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1022 */ |
|
5412 __pyx_2 = (!PyString_CheckExact(__pyx_v_tag_object)); |
|
5413 if (__pyx_2) { |
|
5414 |
|
5415 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1023 */ |
|
5416 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1023; goto __pyx_L1;} |
|
5417 __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1023; goto __pyx_L1;} |
|
5418 Py_INCREF(__pyx_k86p); |
|
5419 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k86p); |
|
5420 __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1023; goto __pyx_L1;} |
|
5421 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5422 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5423 __Pyx_Raise(__pyx_5, 0, 0); |
|
5424 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5425 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1023; goto __pyx_L1;} |
|
5426 goto __pyx_L24; |
|
5427 } |
|
5428 __pyx_L24:; |
|
5429 |
|
5430 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1024 */ |
|
5431 __pyx_v_tag = PyString_AS_STRING(__pyx_v_tag_object); |
|
5432 goto __pyx_L22; |
|
5433 } |
|
5434 __pyx_L22:; |
|
5435 |
|
5436 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1025 */ |
|
5437 __pyx_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_value); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1025; goto __pyx_L1;} |
|
5438 Py_DECREF(__pyx_v_value_object); |
|
5439 __pyx_v_value_object = __pyx_1; |
|
5440 __pyx_1 = 0; |
|
5441 |
|
5442 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1026 */ |
|
5443 __pyx_2 = PyUnicode_CheckExact(__pyx_v_value_object); |
|
5444 if (__pyx_2) { |
|
5445 |
|
5446 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1027 */ |
|
5447 __pyx_3 = PyUnicode_AsUTF8String(__pyx_v_value_object); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; goto __pyx_L1;} |
|
5448 Py_DECREF(__pyx_v_value_object); |
|
5449 __pyx_v_value_object = __pyx_3; |
|
5450 __pyx_3 = 0; |
|
5451 goto __pyx_L25; |
|
5452 } |
|
5453 __pyx_L25:; |
|
5454 |
|
5455 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1028 */ |
|
5456 __pyx_2 = (!PyString_CheckExact(__pyx_v_value_object)); |
|
5457 if (__pyx_2) { |
|
5458 |
|
5459 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1029 */ |
|
5460 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1029; goto __pyx_L1;} |
|
5461 __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1029; goto __pyx_L1;} |
|
5462 Py_INCREF(__pyx_k87p); |
|
5463 PyTuple_SET_ITEM(__pyx_5, 0, __pyx_k87p); |
|
5464 __pyx_1 = PyObject_CallObject(__pyx_4, __pyx_5); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1029; goto __pyx_L1;} |
|
5465 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5466 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5467 __Pyx_Raise(__pyx_1, 0, 0); |
|
5468 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5469 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1029; goto __pyx_L1;} |
|
5470 goto __pyx_L26; |
|
5471 } |
|
5472 __pyx_L26:; |
|
5473 |
|
5474 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1030 */ |
|
5475 __pyx_v_value = PyString_AS_STRING(__pyx_v_value_object); |
|
5476 |
|
5477 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1031 */ |
|
5478 __pyx_v_length = PyString_GET_SIZE(__pyx_v_value_object); |
|
5479 |
|
5480 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1032 */ |
|
5481 __pyx_v_plain_implicit = 0; |
|
5482 |
|
5483 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1033 */ |
|
5484 __pyx_v_quoted_implicit = 0; |
|
5485 |
|
5486 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1034 */ |
|
5487 __pyx_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_implicit); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1034; goto __pyx_L1;} |
|
5488 __pyx_2 = __pyx_3 != Py_None; |
|
5489 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5490 if (__pyx_2) { |
|
5491 |
|
5492 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1035 */ |
|
5493 __pyx_4 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_implicit); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1035; goto __pyx_L1;} |
|
5494 __pyx_5 = PyInt_FromLong(0); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1035; goto __pyx_L1;} |
|
5495 __pyx_1 = PyObject_GetItem(__pyx_4, __pyx_5); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1035; goto __pyx_L1;} |
|
5496 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5497 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5498 __pyx_2 = PyInt_AsLong(__pyx_1); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1035; goto __pyx_L1;} |
|
5499 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5500 __pyx_v_plain_implicit = __pyx_2; |
|
5501 |
|
5502 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1036 */ |
|
5503 __pyx_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_implicit); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; goto __pyx_L1;} |
|
5504 __pyx_4 = PyInt_FromLong(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; goto __pyx_L1;} |
|
5505 __pyx_5 = PyObject_GetItem(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; goto __pyx_L1;} |
|
5506 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5507 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5508 __pyx_2 = PyInt_AsLong(__pyx_5); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; goto __pyx_L1;} |
|
5509 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5510 __pyx_v_quoted_implicit = __pyx_2; |
|
5511 goto __pyx_L27; |
|
5512 } |
|
5513 __pyx_L27:; |
|
5514 |
|
5515 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1037 */ |
|
5516 __pyx_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_style); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1037; goto __pyx_L1;} |
|
5517 Py_DECREF(__pyx_v_style_object); |
|
5518 __pyx_v_style_object = __pyx_1; |
|
5519 __pyx_1 = 0; |
|
5520 |
|
5521 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1038 */ |
|
5522 __pyx_v_scalar_style = YAML_PLAIN_SCALAR_STYLE; |
|
5523 |
|
5524 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1039 */ |
|
5525 if (PyObject_Cmp(__pyx_v_style_object, __pyx_k88p, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1039; goto __pyx_L1;} |
|
5526 __pyx_2 = __pyx_2 == 0; |
|
5527 if (__pyx_2) { |
|
5528 |
|
5529 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1040 */ |
|
5530 __pyx_v_scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE; |
|
5531 goto __pyx_L28; |
|
5532 } |
|
5533 if (PyObject_Cmp(__pyx_v_style_object, __pyx_k89p, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1041; goto __pyx_L1;} |
|
5534 __pyx_2 = __pyx_2 == 0; |
|
5535 if (__pyx_2) { |
|
5536 |
|
5537 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1042 */ |
|
5538 __pyx_v_scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE; |
|
5539 goto __pyx_L28; |
|
5540 } |
|
5541 if (PyObject_Cmp(__pyx_v_style_object, __pyx_k90p, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1043; goto __pyx_L1;} |
|
5542 __pyx_2 = __pyx_2 == 0; |
|
5543 if (__pyx_2) { |
|
5544 |
|
5545 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1044 */ |
|
5546 __pyx_v_scalar_style = YAML_LITERAL_SCALAR_STYLE; |
|
5547 goto __pyx_L28; |
|
5548 } |
|
5549 if (PyObject_Cmp(__pyx_v_style_object, __pyx_k91p, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1045; goto __pyx_L1;} |
|
5550 __pyx_2 = __pyx_2 == 0; |
|
5551 if (__pyx_2) { |
|
5552 |
|
5553 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1046 */ |
|
5554 __pyx_v_scalar_style = YAML_FOLDED_SCALAR_STYLE; |
|
5555 goto __pyx_L28; |
|
5556 } |
|
5557 __pyx_L28:; |
|
5558 |
|
5559 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1047 */ |
|
5560 __pyx_2 = (yaml_scalar_event_initialize(__pyx_v_event,__pyx_v_anchor,__pyx_v_tag,__pyx_v_value,__pyx_v_length,__pyx_v_plain_implicit,__pyx_v_quoted_implicit,__pyx_v_scalar_style) == 0); |
|
5561 if (__pyx_2) { |
|
5562 |
|
5563 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1049 */ |
|
5564 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1049; goto __pyx_L1;} |
|
5565 __Pyx_Raise(__pyx_3, 0, 0); |
|
5566 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5567 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1049; goto __pyx_L1;} |
|
5568 goto __pyx_L29; |
|
5569 } |
|
5570 __pyx_L29:; |
|
5571 goto __pyx_L2; |
|
5572 } |
|
5573 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_SequenceStartEvent); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1050; goto __pyx_L1;} |
|
5574 __pyx_2 = __pyx_v_event_class == __pyx_4; |
|
5575 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5576 if (__pyx_2) { |
|
5577 |
|
5578 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1051 */ |
|
5579 __pyx_v_anchor = 0; |
|
5580 |
|
5581 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1052 */ |
|
5582 __pyx_5 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_anchor); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1052; goto __pyx_L1;} |
|
5583 Py_DECREF(__pyx_v_anchor_object); |
|
5584 __pyx_v_anchor_object = __pyx_5; |
|
5585 __pyx_5 = 0; |
|
5586 |
|
5587 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1053 */ |
|
5588 __pyx_2 = __pyx_v_anchor_object != Py_None; |
|
5589 if (__pyx_2) { |
|
5590 |
|
5591 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1054 */ |
|
5592 __pyx_2 = PyUnicode_CheckExact(__pyx_v_anchor_object); |
|
5593 if (__pyx_2) { |
|
5594 |
|
5595 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1055 */ |
|
5596 __pyx_1 = PyUnicode_AsUTF8String(__pyx_v_anchor_object); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1055; goto __pyx_L1;} |
|
5597 Py_DECREF(__pyx_v_anchor_object); |
|
5598 __pyx_v_anchor_object = __pyx_1; |
|
5599 __pyx_1 = 0; |
|
5600 goto __pyx_L31; |
|
5601 } |
|
5602 __pyx_L31:; |
|
5603 |
|
5604 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1056 */ |
|
5605 __pyx_2 = (!PyString_CheckExact(__pyx_v_anchor_object)); |
|
5606 if (__pyx_2) { |
|
5607 |
|
5608 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1057 */ |
|
5609 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1057; goto __pyx_L1;} |
|
5610 __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1057; goto __pyx_L1;} |
|
5611 Py_INCREF(__pyx_k92p); |
|
5612 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k92p); |
|
5613 __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1057; goto __pyx_L1;} |
|
5614 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5615 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5616 __Pyx_Raise(__pyx_5, 0, 0); |
|
5617 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5618 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1057; goto __pyx_L1;} |
|
5619 goto __pyx_L32; |
|
5620 } |
|
5621 __pyx_L32:; |
|
5622 |
|
5623 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1058 */ |
|
5624 __pyx_v_anchor = PyString_AS_STRING(__pyx_v_anchor_object); |
|
5625 goto __pyx_L30; |
|
5626 } |
|
5627 __pyx_L30:; |
|
5628 |
|
5629 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1059 */ |
|
5630 __pyx_v_tag = 0; |
|
5631 |
|
5632 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1060 */ |
|
5633 __pyx_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_tag); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1060; goto __pyx_L1;} |
|
5634 Py_DECREF(__pyx_v_tag_object); |
|
5635 __pyx_v_tag_object = __pyx_1; |
|
5636 __pyx_1 = 0; |
|
5637 |
|
5638 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1061 */ |
|
5639 __pyx_2 = __pyx_v_tag_object != Py_None; |
|
5640 if (__pyx_2) { |
|
5641 |
|
5642 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1062 */ |
|
5643 __pyx_2 = PyUnicode_CheckExact(__pyx_v_tag_object); |
|
5644 if (__pyx_2) { |
|
5645 |
|
5646 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1063 */ |
|
5647 __pyx_3 = PyUnicode_AsUTF8String(__pyx_v_tag_object); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1063; goto __pyx_L1;} |
|
5648 Py_DECREF(__pyx_v_tag_object); |
|
5649 __pyx_v_tag_object = __pyx_3; |
|
5650 __pyx_3 = 0; |
|
5651 goto __pyx_L34; |
|
5652 } |
|
5653 __pyx_L34:; |
|
5654 |
|
5655 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1064 */ |
|
5656 __pyx_2 = (!PyString_CheckExact(__pyx_v_tag_object)); |
|
5657 if (__pyx_2) { |
|
5658 |
|
5659 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1065 */ |
|
5660 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1065; goto __pyx_L1;} |
|
5661 __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1065; goto __pyx_L1;} |
|
5662 Py_INCREF(__pyx_k93p); |
|
5663 PyTuple_SET_ITEM(__pyx_5, 0, __pyx_k93p); |
|
5664 __pyx_1 = PyObject_CallObject(__pyx_4, __pyx_5); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1065; goto __pyx_L1;} |
|
5665 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5666 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5667 __Pyx_Raise(__pyx_1, 0, 0); |
|
5668 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5669 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1065; goto __pyx_L1;} |
|
5670 goto __pyx_L35; |
|
5671 } |
|
5672 __pyx_L35:; |
|
5673 |
|
5674 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1066 */ |
|
5675 __pyx_v_tag = PyString_AS_STRING(__pyx_v_tag_object); |
|
5676 goto __pyx_L33; |
|
5677 } |
|
5678 __pyx_L33:; |
|
5679 |
|
5680 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1067 */ |
|
5681 __pyx_v_implicit = 0; |
|
5682 |
|
5683 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1068 */ |
|
5684 __pyx_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_implicit); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1068; goto __pyx_L1;} |
|
5685 __pyx_2 = PyObject_IsTrue(__pyx_3); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1068; goto __pyx_L1;} |
|
5686 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5687 if (__pyx_2) { |
|
5688 |
|
5689 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1069 */ |
|
5690 __pyx_v_implicit = 1; |
|
5691 goto __pyx_L36; |
|
5692 } |
|
5693 __pyx_L36:; |
|
5694 |
|
5695 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1070 */ |
|
5696 __pyx_v_sequence_style = YAML_BLOCK_SEQUENCE_STYLE; |
|
5697 |
|
5698 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1071 */ |
|
5699 __pyx_4 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_flow_style); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; goto __pyx_L1;} |
|
5700 __pyx_2 = PyObject_IsTrue(__pyx_4); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; goto __pyx_L1;} |
|
5701 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5702 if (__pyx_2) { |
|
5703 |
|
5704 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1072 */ |
|
5705 __pyx_v_sequence_style = YAML_FLOW_SEQUENCE_STYLE; |
|
5706 goto __pyx_L37; |
|
5707 } |
|
5708 __pyx_L37:; |
|
5709 |
|
5710 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1073 */ |
|
5711 __pyx_2 = (yaml_sequence_start_event_initialize(__pyx_v_event,__pyx_v_anchor,__pyx_v_tag,__pyx_v_implicit,__pyx_v_sequence_style) == 0); |
|
5712 if (__pyx_2) { |
|
5713 |
|
5714 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1075 */ |
|
5715 __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; goto __pyx_L1;} |
|
5716 __Pyx_Raise(__pyx_5, 0, 0); |
|
5717 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5718 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1075; goto __pyx_L1;} |
|
5719 goto __pyx_L38; |
|
5720 } |
|
5721 __pyx_L38:; |
|
5722 goto __pyx_L2; |
|
5723 } |
|
5724 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_MappingStartEvent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; goto __pyx_L1;} |
|
5725 __pyx_2 = __pyx_v_event_class == __pyx_1; |
|
5726 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5727 if (__pyx_2) { |
|
5728 |
|
5729 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1077 */ |
|
5730 __pyx_v_anchor = 0; |
|
5731 |
|
5732 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1078 */ |
|
5733 __pyx_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_anchor); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1078; goto __pyx_L1;} |
|
5734 Py_DECREF(__pyx_v_anchor_object); |
|
5735 __pyx_v_anchor_object = __pyx_3; |
|
5736 __pyx_3 = 0; |
|
5737 |
|
5738 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1079 */ |
|
5739 __pyx_2 = __pyx_v_anchor_object != Py_None; |
|
5740 if (__pyx_2) { |
|
5741 |
|
5742 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1080 */ |
|
5743 __pyx_2 = PyUnicode_CheckExact(__pyx_v_anchor_object); |
|
5744 if (__pyx_2) { |
|
5745 |
|
5746 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1081 */ |
|
5747 __pyx_4 = PyUnicode_AsUTF8String(__pyx_v_anchor_object); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1081; goto __pyx_L1;} |
|
5748 Py_DECREF(__pyx_v_anchor_object); |
|
5749 __pyx_v_anchor_object = __pyx_4; |
|
5750 __pyx_4 = 0; |
|
5751 goto __pyx_L40; |
|
5752 } |
|
5753 __pyx_L40:; |
|
5754 |
|
5755 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1082 */ |
|
5756 __pyx_2 = (!PyString_CheckExact(__pyx_v_anchor_object)); |
|
5757 if (__pyx_2) { |
|
5758 |
|
5759 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1083 */ |
|
5760 __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; goto __pyx_L1;} |
|
5761 __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; goto __pyx_L1;} |
|
5762 Py_INCREF(__pyx_k94p); |
|
5763 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_k94p); |
|
5764 __pyx_3 = PyObject_CallObject(__pyx_5, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; goto __pyx_L1;} |
|
5765 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5766 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5767 __Pyx_Raise(__pyx_3, 0, 0); |
|
5768 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5769 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; goto __pyx_L1;} |
|
5770 goto __pyx_L41; |
|
5771 } |
|
5772 __pyx_L41:; |
|
5773 |
|
5774 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1084 */ |
|
5775 __pyx_v_anchor = PyString_AS_STRING(__pyx_v_anchor_object); |
|
5776 goto __pyx_L39; |
|
5777 } |
|
5778 __pyx_L39:; |
|
5779 |
|
5780 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1085 */ |
|
5781 __pyx_v_tag = 0; |
|
5782 |
|
5783 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1086 */ |
|
5784 __pyx_4 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_tag); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1086; goto __pyx_L1;} |
|
5785 Py_DECREF(__pyx_v_tag_object); |
|
5786 __pyx_v_tag_object = __pyx_4; |
|
5787 __pyx_4 = 0; |
|
5788 |
|
5789 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1087 */ |
|
5790 __pyx_2 = __pyx_v_tag_object != Py_None; |
|
5791 if (__pyx_2) { |
|
5792 |
|
5793 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1088 */ |
|
5794 __pyx_2 = PyUnicode_CheckExact(__pyx_v_tag_object); |
|
5795 if (__pyx_2) { |
|
5796 |
|
5797 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1089 */ |
|
5798 __pyx_5 = PyUnicode_AsUTF8String(__pyx_v_tag_object); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1089; goto __pyx_L1;} |
|
5799 Py_DECREF(__pyx_v_tag_object); |
|
5800 __pyx_v_tag_object = __pyx_5; |
|
5801 __pyx_5 = 0; |
|
5802 goto __pyx_L43; |
|
5803 } |
|
5804 __pyx_L43:; |
|
5805 |
|
5806 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1090 */ |
|
5807 __pyx_2 = (!PyString_CheckExact(__pyx_v_tag_object)); |
|
5808 if (__pyx_2) { |
|
5809 |
|
5810 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1091 */ |
|
5811 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; goto __pyx_L1;} |
|
5812 __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; goto __pyx_L1;} |
|
5813 Py_INCREF(__pyx_k95p); |
|
5814 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k95p); |
|
5815 __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; goto __pyx_L1;} |
|
5816 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5817 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5818 __Pyx_Raise(__pyx_4, 0, 0); |
|
5819 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5820 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1091; goto __pyx_L1;} |
|
5821 goto __pyx_L44; |
|
5822 } |
|
5823 __pyx_L44:; |
|
5824 |
|
5825 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1092 */ |
|
5826 __pyx_v_tag = PyString_AS_STRING(__pyx_v_tag_object); |
|
5827 goto __pyx_L42; |
|
5828 } |
|
5829 __pyx_L42:; |
|
5830 |
|
5831 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1093 */ |
|
5832 __pyx_v_implicit = 0; |
|
5833 |
|
5834 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1094 */ |
|
5835 __pyx_5 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_implicit); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1094; goto __pyx_L1;} |
|
5836 __pyx_2 = PyObject_IsTrue(__pyx_5); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1094; goto __pyx_L1;} |
|
5837 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5838 if (__pyx_2) { |
|
5839 |
|
5840 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1095 */ |
|
5841 __pyx_v_implicit = 1; |
|
5842 goto __pyx_L45; |
|
5843 } |
|
5844 __pyx_L45:; |
|
5845 |
|
5846 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1096 */ |
|
5847 __pyx_v_mapping_style = YAML_BLOCK_MAPPING_STYLE; |
|
5848 |
|
5849 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1097 */ |
|
5850 __pyx_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_n_flow_style); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1097; goto __pyx_L1;} |
|
5851 __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1097; goto __pyx_L1;} |
|
5852 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5853 if (__pyx_2) { |
|
5854 |
|
5855 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1098 */ |
|
5856 __pyx_v_mapping_style = YAML_FLOW_MAPPING_STYLE; |
|
5857 goto __pyx_L46; |
|
5858 } |
|
5859 __pyx_L46:; |
|
5860 |
|
5861 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1099 */ |
|
5862 __pyx_2 = (yaml_mapping_start_event_initialize(__pyx_v_event,__pyx_v_anchor,__pyx_v_tag,__pyx_v_implicit,__pyx_v_mapping_style) == 0); |
|
5863 if (__pyx_2) { |
|
5864 |
|
5865 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1101 */ |
|
5866 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1101; goto __pyx_L1;} |
|
5867 __Pyx_Raise(__pyx_3, 0, 0); |
|
5868 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
5869 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1101; goto __pyx_L1;} |
|
5870 goto __pyx_L47; |
|
5871 } |
|
5872 __pyx_L47:; |
|
5873 goto __pyx_L2; |
|
5874 } |
|
5875 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_SequenceEndEvent); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; goto __pyx_L1;} |
|
5876 __pyx_2 = __pyx_v_event_class == __pyx_4; |
|
5877 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5878 if (__pyx_2) { |
|
5879 |
|
5880 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1103 */ |
|
5881 yaml_sequence_end_event_initialize(__pyx_v_event); |
|
5882 goto __pyx_L2; |
|
5883 } |
|
5884 __pyx_5 = __Pyx_GetName(__pyx_m, __pyx_n_MappingEndEvent); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1104; goto __pyx_L1;} |
|
5885 __pyx_2 = __pyx_v_event_class == __pyx_5; |
|
5886 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5887 if (__pyx_2) { |
|
5888 |
|
5889 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1105 */ |
|
5890 yaml_mapping_end_event_initialize(__pyx_v_event); |
|
5891 goto __pyx_L2; |
|
5892 } |
|
5893 /*else*/ { |
|
5894 |
|
5895 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1107 */ |
|
5896 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;} |
|
5897 __pyx_3 = PyNumber_Remainder(__pyx_k96p, __pyx_v_event_object); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;} |
|
5898 __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;} |
|
5899 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_3); |
|
5900 __pyx_3 = 0; |
|
5901 __pyx_5 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;} |
|
5902 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
5903 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
5904 __Pyx_Raise(__pyx_5, 0, 0); |
|
5905 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
5906 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1107; goto __pyx_L1;} |
|
5907 } |
|
5908 __pyx_L2:; |
|
5909 |
|
5910 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1108 */ |
|
5911 __pyx_r = 1; |
|
5912 goto __pyx_L0; |
|
5913 |
|
5914 __pyx_r = 0; |
|
5915 goto __pyx_L0; |
|
5916 __pyx_L1:; |
|
5917 Py_XDECREF(__pyx_1); |
|
5918 Py_XDECREF(__pyx_3); |
|
5919 Py_XDECREF(__pyx_4); |
|
5920 Py_XDECREF(__pyx_5); |
|
5921 __Pyx_AddTraceback("_yaml.CEmitter._object_to_event"); |
|
5922 __pyx_r = 0; |
|
5923 __pyx_L0:; |
|
5924 Py_DECREF(__pyx_v_event_class); |
|
5925 Py_DECREF(__pyx_v_cache); |
|
5926 Py_DECREF(__pyx_v_handle); |
|
5927 Py_DECREF(__pyx_v_prefix); |
|
5928 Py_DECREF(__pyx_v_anchor_object); |
|
5929 Py_DECREF(__pyx_v_tag_object); |
|
5930 Py_DECREF(__pyx_v_value_object); |
|
5931 Py_DECREF(__pyx_v_style_object); |
|
5932 Py_DECREF(__pyx_v_self); |
|
5933 Py_DECREF(__pyx_v_event_object); |
|
5934 return __pyx_r; |
|
5935 } |
|
5936 |
|
5937 static PyObject *__pyx_f_5_yaml_8CEmitter_emit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
5938 static PyObject *__pyx_f_5_yaml_8CEmitter_emit(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
5939 PyObject *__pyx_v_event_object = 0; |
|
5940 yaml_event_t __pyx_v_event; |
|
5941 PyObject *__pyx_v_error; |
|
5942 PyObject *__pyx_r; |
|
5943 int __pyx_1; |
|
5944 int __pyx_2; |
|
5945 PyObject *__pyx_3 = 0; |
|
5946 static char *__pyx_argnames[] = {"event_object",0}; |
|
5947 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_event_object)) return 0; |
|
5948 Py_INCREF(__pyx_v_self); |
|
5949 Py_INCREF(__pyx_v_event_object); |
|
5950 __pyx_v_error = Py_None; Py_INCREF(Py_None); |
|
5951 |
|
5952 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1112 */ |
|
5953 __pyx_1 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->__pyx_vtab)->_object_to_event(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self),__pyx_v_event_object,(&__pyx_v_event)); if (__pyx_1 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1112; goto __pyx_L1;} |
|
5954 |
|
5955 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1113 */ |
|
5956 __pyx_1 = yaml_emitter_emit((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter),(&__pyx_v_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1113; goto __pyx_L1;} |
|
5957 __pyx_2 = (__pyx_1 == 0); |
|
5958 if (__pyx_2) { |
|
5959 |
|
5960 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1114 */ |
|
5961 __pyx_3 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->__pyx_vtab)->_emitter_error(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1114; goto __pyx_L1;} |
|
5962 Py_DECREF(__pyx_v_error); |
|
5963 __pyx_v_error = __pyx_3; |
|
5964 __pyx_3 = 0; |
|
5965 |
|
5966 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1115 */ |
|
5967 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
5968 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1115; goto __pyx_L1;} |
|
5969 goto __pyx_L2; |
|
5970 } |
|
5971 __pyx_L2:; |
|
5972 |
|
5973 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
5974 goto __pyx_L0; |
|
5975 __pyx_L1:; |
|
5976 Py_XDECREF(__pyx_3); |
|
5977 __Pyx_AddTraceback("_yaml.CEmitter.emit"); |
|
5978 __pyx_r = 0; |
|
5979 __pyx_L0:; |
|
5980 Py_DECREF(__pyx_v_error); |
|
5981 Py_DECREF(__pyx_v_self); |
|
5982 Py_DECREF(__pyx_v_event_object); |
|
5983 return __pyx_r; |
|
5984 } |
|
5985 |
|
5986 static PyObject *__pyx_k97p; |
|
5987 static PyObject *__pyx_k98p; |
|
5988 |
|
5989 static char (__pyx_k97[]) = "serializer is closed"; |
|
5990 static char (__pyx_k98[]) = "serializer is already opened"; |
|
5991 |
|
5992 static PyObject *__pyx_f_5_yaml_8CEmitter_open(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
5993 static PyObject *__pyx_f_5_yaml_8CEmitter_open(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
5994 yaml_event_t __pyx_v_event; |
|
5995 PyObject *__pyx_v_error; |
|
5996 PyObject *__pyx_r; |
|
5997 int __pyx_1; |
|
5998 int __pyx_2; |
|
5999 PyObject *__pyx_3 = 0; |
|
6000 PyObject *__pyx_4 = 0; |
|
6001 PyObject *__pyx_5 = 0; |
|
6002 static char *__pyx_argnames[] = {0}; |
|
6003 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; |
|
6004 Py_INCREF(__pyx_v_self); |
|
6005 __pyx_v_error = Py_None; Py_INCREF(Py_None); |
|
6006 |
|
6007 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1119 */ |
|
6008 __pyx_1 = (((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed == (-1)); |
|
6009 if (__pyx_1) { |
|
6010 |
|
6011 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1120 */ |
|
6012 yaml_stream_start_event_initialize((&__pyx_v_event),((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_encoding); |
|
6013 |
|
6014 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1121 */ |
|
6015 __pyx_1 = yaml_emitter_emit((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter),(&__pyx_v_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1121; goto __pyx_L1;} |
|
6016 __pyx_2 = (__pyx_1 == 0); |
|
6017 if (__pyx_2) { |
|
6018 |
|
6019 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1122 */ |
|
6020 __pyx_3 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->__pyx_vtab)->_emitter_error(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1122; goto __pyx_L1;} |
|
6021 Py_DECREF(__pyx_v_error); |
|
6022 __pyx_v_error = __pyx_3; |
|
6023 __pyx_3 = 0; |
|
6024 |
|
6025 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1123 */ |
|
6026 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
6027 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1123; goto __pyx_L1;} |
|
6028 goto __pyx_L3; |
|
6029 } |
|
6030 __pyx_L3:; |
|
6031 |
|
6032 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1124 */ |
|
6033 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed = 0; |
|
6034 goto __pyx_L2; |
|
6035 } |
|
6036 __pyx_1 = (((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed == 1); |
|
6037 if (__pyx_1) { |
|
6038 |
|
6039 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1126 */ |
|
6040 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_SerializerError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1126; goto __pyx_L1;} |
|
6041 __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1126; goto __pyx_L1;} |
|
6042 Py_INCREF(__pyx_k97p); |
|
6043 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k97p); |
|
6044 __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1126; goto __pyx_L1;} |
|
6045 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6046 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6047 __Pyx_Raise(__pyx_5, 0, 0); |
|
6048 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
6049 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1126; goto __pyx_L1;} |
|
6050 goto __pyx_L2; |
|
6051 } |
|
6052 /*else*/ { |
|
6053 |
|
6054 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1128 */ |
|
6055 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_SerializerError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1128; goto __pyx_L1;} |
|
6056 __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1128; goto __pyx_L1;} |
|
6057 Py_INCREF(__pyx_k98p); |
|
6058 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k98p); |
|
6059 __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1128; goto __pyx_L1;} |
|
6060 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6061 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6062 __Pyx_Raise(__pyx_5, 0, 0); |
|
6063 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
6064 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1128; goto __pyx_L1;} |
|
6065 } |
|
6066 __pyx_L2:; |
|
6067 |
|
6068 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
6069 goto __pyx_L0; |
|
6070 __pyx_L1:; |
|
6071 Py_XDECREF(__pyx_3); |
|
6072 Py_XDECREF(__pyx_4); |
|
6073 Py_XDECREF(__pyx_5); |
|
6074 __Pyx_AddTraceback("_yaml.CEmitter.open"); |
|
6075 __pyx_r = 0; |
|
6076 __pyx_L0:; |
|
6077 Py_DECREF(__pyx_v_error); |
|
6078 Py_DECREF(__pyx_v_self); |
|
6079 return __pyx_r; |
|
6080 } |
|
6081 |
|
6082 static PyObject *__pyx_k99p; |
|
6083 |
|
6084 static char (__pyx_k99[]) = "serializer is not opened"; |
|
6085 |
|
6086 static PyObject *__pyx_f_5_yaml_8CEmitter_close(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
6087 static PyObject *__pyx_f_5_yaml_8CEmitter_close(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
6088 yaml_event_t __pyx_v_event; |
|
6089 PyObject *__pyx_v_error; |
|
6090 PyObject *__pyx_r; |
|
6091 int __pyx_1; |
|
6092 PyObject *__pyx_2 = 0; |
|
6093 PyObject *__pyx_3 = 0; |
|
6094 PyObject *__pyx_4 = 0; |
|
6095 int __pyx_5; |
|
6096 static char *__pyx_argnames[] = {0}; |
|
6097 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0; |
|
6098 Py_INCREF(__pyx_v_self); |
|
6099 __pyx_v_error = Py_None; Py_INCREF(Py_None); |
|
6100 |
|
6101 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1132 */ |
|
6102 __pyx_1 = (((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed == (-1)); |
|
6103 if (__pyx_1) { |
|
6104 |
|
6105 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1133 */ |
|
6106 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_SerializerError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1133; goto __pyx_L1;} |
|
6107 __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1133; goto __pyx_L1;} |
|
6108 Py_INCREF(__pyx_k99p); |
|
6109 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k99p); |
|
6110 __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1133; goto __pyx_L1;} |
|
6111 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
6112 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6113 __Pyx_Raise(__pyx_4, 0, 0); |
|
6114 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6115 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1133; goto __pyx_L1;} |
|
6116 goto __pyx_L2; |
|
6117 } |
|
6118 __pyx_1 = (((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed == 0); |
|
6119 if (__pyx_1) { |
|
6120 |
|
6121 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1135 */ |
|
6122 yaml_stream_end_event_initialize((&__pyx_v_event)); |
|
6123 |
|
6124 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1136 */ |
|
6125 __pyx_1 = yaml_emitter_emit((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter),(&__pyx_v_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1136; goto __pyx_L1;} |
|
6126 __pyx_5 = (__pyx_1 == 0); |
|
6127 if (__pyx_5) { |
|
6128 |
|
6129 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1137 */ |
|
6130 __pyx_2 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->__pyx_vtab)->_emitter_error(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1137; goto __pyx_L1;} |
|
6131 Py_DECREF(__pyx_v_error); |
|
6132 __pyx_v_error = __pyx_2; |
|
6133 __pyx_2 = 0; |
|
6134 |
|
6135 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1138 */ |
|
6136 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
6137 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1138; goto __pyx_L1;} |
|
6138 goto __pyx_L3; |
|
6139 } |
|
6140 __pyx_L3:; |
|
6141 |
|
6142 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1139 */ |
|
6143 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed = 1; |
|
6144 goto __pyx_L2; |
|
6145 } |
|
6146 __pyx_L2:; |
|
6147 |
|
6148 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
6149 goto __pyx_L0; |
|
6150 __pyx_L1:; |
|
6151 Py_XDECREF(__pyx_2); |
|
6152 Py_XDECREF(__pyx_3); |
|
6153 Py_XDECREF(__pyx_4); |
|
6154 __Pyx_AddTraceback("_yaml.CEmitter.close"); |
|
6155 __pyx_r = 0; |
|
6156 __pyx_L0:; |
|
6157 Py_DECREF(__pyx_v_error); |
|
6158 Py_DECREF(__pyx_v_self); |
|
6159 return __pyx_r; |
|
6160 } |
|
6161 |
|
6162 static PyObject *__pyx_k100p; |
|
6163 static PyObject *__pyx_k101p; |
|
6164 static PyObject *__pyx_k102p; |
|
6165 static PyObject *__pyx_k103p; |
|
6166 static PyObject *__pyx_k104p; |
|
6167 |
|
6168 static char (__pyx_k100[]) = "serializer is not opened"; |
|
6169 static char (__pyx_k101[]) = "serializer is closed"; |
|
6170 static char (__pyx_k102[]) = "too many tags"; |
|
6171 static char (__pyx_k103[]) = "tag handle must be a string"; |
|
6172 static char (__pyx_k104[]) = "tag prefix must be a string"; |
|
6173 |
|
6174 static PyObject *__pyx_f_5_yaml_8CEmitter_serialize(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
|
6175 static PyObject *__pyx_f_5_yaml_8CEmitter_serialize(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
|
6176 PyObject *__pyx_v_node = 0; |
|
6177 yaml_event_t __pyx_v_event; |
|
6178 yaml_version_directive_t __pyx_v_version_directive_value; |
|
6179 yaml_version_directive_t (*__pyx_v_version_directive); |
|
6180 yaml_tag_directive_t (__pyx_v_tag_directives_value[128]); |
|
6181 yaml_tag_directive_t (*__pyx_v_tag_directives_start); |
|
6182 yaml_tag_directive_t (*__pyx_v_tag_directives_end); |
|
6183 PyObject *__pyx_v_cache; |
|
6184 PyObject *__pyx_v_handle; |
|
6185 PyObject *__pyx_v_prefix; |
|
6186 PyObject *__pyx_v_error; |
|
6187 PyObject *__pyx_r; |
|
6188 int __pyx_1; |
|
6189 PyObject *__pyx_2 = 0; |
|
6190 PyObject *__pyx_3 = 0; |
|
6191 PyObject *__pyx_4 = 0; |
|
6192 PyObject *__pyx_5 = 0; |
|
6193 int __pyx_6; |
|
6194 static char *__pyx_argnames[] = {"node",0}; |
|
6195 if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_node)) return 0; |
|
6196 Py_INCREF(__pyx_v_self); |
|
6197 Py_INCREF(__pyx_v_node); |
|
6198 __pyx_v_cache = Py_None; Py_INCREF(Py_None); |
|
6199 __pyx_v_handle = Py_None; Py_INCREF(Py_None); |
|
6200 __pyx_v_prefix = Py_None; Py_INCREF(Py_None); |
|
6201 __pyx_v_error = Py_None; Py_INCREF(Py_None); |
|
6202 |
|
6203 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1148 */ |
|
6204 __pyx_1 = (((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed == (-1)); |
|
6205 if (__pyx_1) { |
|
6206 |
|
6207 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1149 */ |
|
6208 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_SerializerError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; goto __pyx_L1;} |
|
6209 __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; goto __pyx_L1;} |
|
6210 Py_INCREF(__pyx_k100p); |
|
6211 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k100p); |
|
6212 __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; goto __pyx_L1;} |
|
6213 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
6214 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6215 __Pyx_Raise(__pyx_4, 0, 0); |
|
6216 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6217 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; goto __pyx_L1;} |
|
6218 goto __pyx_L2; |
|
6219 } |
|
6220 __pyx_1 = (((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed == 1); |
|
6221 if (__pyx_1) { |
|
6222 |
|
6223 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1151 */ |
|
6224 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_SerializerError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1151; goto __pyx_L1;} |
|
6225 __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1151; goto __pyx_L1;} |
|
6226 Py_INCREF(__pyx_k101p); |
|
6227 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k101p); |
|
6228 __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1151; goto __pyx_L1;} |
|
6229 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
6230 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6231 __Pyx_Raise(__pyx_4, 0, 0); |
|
6232 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6233 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1151; goto __pyx_L1;} |
|
6234 goto __pyx_L2; |
|
6235 } |
|
6236 __pyx_L2:; |
|
6237 |
|
6238 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1152 */ |
|
6239 __pyx_2 = PyList_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1152; goto __pyx_L1;} |
|
6240 Py_DECREF(__pyx_v_cache); |
|
6241 __pyx_v_cache = __pyx_2; |
|
6242 __pyx_2 = 0; |
|
6243 |
|
6244 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1153 */ |
|
6245 __pyx_v_version_directive = 0; |
|
6246 |
|
6247 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1154 */ |
|
6248 __pyx_1 = PyObject_IsTrue(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_version); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1154; goto __pyx_L1;} |
|
6249 if (__pyx_1) { |
|
6250 |
|
6251 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1155 */ |
|
6252 __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1155; goto __pyx_L1;} |
|
6253 __pyx_4 = PyObject_GetItem(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_version, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1155; goto __pyx_L1;} |
|
6254 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6255 __pyx_1 = PyInt_AsLong(__pyx_4); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1155; goto __pyx_L1;} |
|
6256 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6257 __pyx_v_version_directive_value.major = __pyx_1; |
|
6258 |
|
6259 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1156 */ |
|
6260 __pyx_2 = PyInt_FromLong(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1156; goto __pyx_L1;} |
|
6261 __pyx_3 = PyObject_GetItem(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_version, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1156; goto __pyx_L1;} |
|
6262 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
6263 __pyx_1 = PyInt_AsLong(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1156; goto __pyx_L1;} |
|
6264 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6265 __pyx_v_version_directive_value.minor = __pyx_1; |
|
6266 |
|
6267 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1157 */ |
|
6268 __pyx_v_version_directive = (&__pyx_v_version_directive_value); |
|
6269 goto __pyx_L3; |
|
6270 } |
|
6271 __pyx_L3:; |
|
6272 |
|
6273 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1158 */ |
|
6274 __pyx_v_tag_directives_start = 0; |
|
6275 |
|
6276 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1159 */ |
|
6277 __pyx_v_tag_directives_end = 0; |
|
6278 |
|
6279 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1160 */ |
|
6280 __pyx_1 = PyObject_IsTrue(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1160; goto __pyx_L1;} |
|
6281 if (__pyx_1) { |
|
6282 |
|
6283 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1161 */ |
|
6284 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_len); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1161; goto __pyx_L1;} |
|
6285 __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1161; goto __pyx_L1;} |
|
6286 Py_INCREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags); |
|
6287 PyTuple_SET_ITEM(__pyx_2, 0, ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags); |
|
6288 __pyx_3 = PyObject_CallObject(__pyx_4, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1161; goto __pyx_L1;} |
|
6289 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6290 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
6291 __pyx_4 = PyInt_FromLong(128); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1161; goto __pyx_L1;} |
|
6292 if (PyObject_Cmp(__pyx_3, __pyx_4, &__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1161; goto __pyx_L1;} |
|
6293 __pyx_1 = __pyx_1 > 0; |
|
6294 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6295 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6296 if (__pyx_1) { |
|
6297 |
|
6298 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1162 */ |
|
6299 __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; goto __pyx_L1;} |
|
6300 __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; goto __pyx_L1;} |
|
6301 Py_INCREF(__pyx_k102p); |
|
6302 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k102p); |
|
6303 __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; goto __pyx_L1;} |
|
6304 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
6305 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6306 __Pyx_Raise(__pyx_4, 0, 0); |
|
6307 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6308 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; goto __pyx_L1;} |
|
6309 goto __pyx_L5; |
|
6310 } |
|
6311 __pyx_L5:; |
|
6312 |
|
6313 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1163 */ |
|
6314 __pyx_v_tag_directives_start = __pyx_v_tag_directives_value; |
|
6315 |
|
6316 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1164 */ |
|
6317 __pyx_v_tag_directives_end = __pyx_v_tag_directives_value; |
|
6318 |
|
6319 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1165 */ |
|
6320 __pyx_2 = PyObject_GetIter(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; goto __pyx_L1;} |
|
6321 for (;;) { |
|
6322 __pyx_L6:; |
|
6323 __pyx_3 = PyIter_Next(__pyx_2); |
|
6324 if (!__pyx_3) { |
|
6325 if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1165; goto __pyx_L1;} |
|
6326 break; |
|
6327 } |
|
6328 Py_DECREF(__pyx_v_handle); |
|
6329 __pyx_v_handle = __pyx_3; |
|
6330 __pyx_3 = 0; |
|
6331 |
|
6332 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1166 */ |
|
6333 __pyx_4 = PyObject_GetItem(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags, __pyx_v_handle); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1166; goto __pyx_L1;} |
|
6334 Py_DECREF(__pyx_v_prefix); |
|
6335 __pyx_v_prefix = __pyx_4; |
|
6336 __pyx_4 = 0; |
|
6337 |
|
6338 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1167 */ |
|
6339 __pyx_1 = PyUnicode_CheckExact(__pyx_v_handle); |
|
6340 if (__pyx_1) { |
|
6341 |
|
6342 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1168 */ |
|
6343 __pyx_3 = PyUnicode_AsUTF8String(__pyx_v_handle); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1168; goto __pyx_L1;} |
|
6344 Py_DECREF(__pyx_v_handle); |
|
6345 __pyx_v_handle = __pyx_3; |
|
6346 __pyx_3 = 0; |
|
6347 |
|
6348 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1169 */ |
|
6349 __pyx_4 = PyObject_GetAttr(__pyx_v_cache, __pyx_n_append); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1169; goto __pyx_L1;} |
|
6350 __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1169; goto __pyx_L1;} |
|
6351 Py_INCREF(__pyx_v_handle); |
|
6352 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_handle); |
|
6353 __pyx_5 = PyObject_CallObject(__pyx_4, __pyx_3); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1169; goto __pyx_L1;} |
|
6354 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6355 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6356 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
6357 goto __pyx_L8; |
|
6358 } |
|
6359 __pyx_L8:; |
|
6360 |
|
6361 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1170 */ |
|
6362 __pyx_1 = (!PyString_CheckExact(__pyx_v_handle)); |
|
6363 if (__pyx_1) { |
|
6364 |
|
6365 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1171 */ |
|
6366 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; goto __pyx_L1;} |
|
6367 __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; goto __pyx_L1;} |
|
6368 Py_INCREF(__pyx_k103p); |
|
6369 PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k103p); |
|
6370 __pyx_5 = PyObject_CallObject(__pyx_4, __pyx_3); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; goto __pyx_L1;} |
|
6371 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6372 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6373 __Pyx_Raise(__pyx_5, 0, 0); |
|
6374 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
6375 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1171; goto __pyx_L1;} |
|
6376 goto __pyx_L9; |
|
6377 } |
|
6378 __pyx_L9:; |
|
6379 |
|
6380 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1172 */ |
|
6381 __pyx_v_tag_directives_end->handle = PyString_AS_STRING(__pyx_v_handle); |
|
6382 |
|
6383 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1173 */ |
|
6384 __pyx_1 = PyUnicode_CheckExact(__pyx_v_prefix); |
|
6385 if (__pyx_1) { |
|
6386 |
|
6387 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1174 */ |
|
6388 __pyx_4 = PyUnicode_AsUTF8String(__pyx_v_prefix); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1174; goto __pyx_L1;} |
|
6389 Py_DECREF(__pyx_v_prefix); |
|
6390 __pyx_v_prefix = __pyx_4; |
|
6391 __pyx_4 = 0; |
|
6392 |
|
6393 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1175 */ |
|
6394 __pyx_3 = PyObject_GetAttr(__pyx_v_cache, __pyx_n_append); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1175; goto __pyx_L1;} |
|
6395 __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1175; goto __pyx_L1;} |
|
6396 Py_INCREF(__pyx_v_prefix); |
|
6397 PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_prefix); |
|
6398 __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1175; goto __pyx_L1;} |
|
6399 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6400 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
6401 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6402 goto __pyx_L10; |
|
6403 } |
|
6404 __pyx_L10:; |
|
6405 |
|
6406 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1176 */ |
|
6407 __pyx_1 = (!PyString_CheckExact(__pyx_v_prefix)); |
|
6408 if (__pyx_1) { |
|
6409 |
|
6410 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1177 */ |
|
6411 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1177; goto __pyx_L1;} |
|
6412 __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1177; goto __pyx_L1;} |
|
6413 Py_INCREF(__pyx_k104p); |
|
6414 PyTuple_SET_ITEM(__pyx_5, 0, __pyx_k104p); |
|
6415 __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_5); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1177; goto __pyx_L1;} |
|
6416 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6417 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
6418 __Pyx_Raise(__pyx_4, 0, 0); |
|
6419 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6420 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1177; goto __pyx_L1;} |
|
6421 goto __pyx_L11; |
|
6422 } |
|
6423 __pyx_L11:; |
|
6424 |
|
6425 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1178 */ |
|
6426 __pyx_v_tag_directives_end->prefix = PyString_AS_STRING(__pyx_v_prefix); |
|
6427 |
|
6428 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1179 */ |
|
6429 __pyx_v_tag_directives_end = (__pyx_v_tag_directives_end + 1); |
|
6430 } |
|
6431 __pyx_L7:; |
|
6432 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
6433 goto __pyx_L4; |
|
6434 } |
|
6435 __pyx_L4:; |
|
6436 |
|
6437 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1180 */ |
|
6438 __pyx_1 = (yaml_document_start_event_initialize((&__pyx_v_event),__pyx_v_version_directive,__pyx_v_tag_directives_start,__pyx_v_tag_directives_end,((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->document_start_implicit) == 0); |
|
6439 if (__pyx_1) { |
|
6440 |
|
6441 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1183 */ |
|
6442 __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1183; goto __pyx_L1;} |
|
6443 __Pyx_Raise(__pyx_3, 0, 0); |
|
6444 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6445 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1183; goto __pyx_L1;} |
|
6446 goto __pyx_L12; |
|
6447 } |
|
6448 __pyx_L12:; |
|
6449 |
|
6450 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1184 */ |
|
6451 __pyx_1 = yaml_emitter_emit((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter),(&__pyx_v_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1184; goto __pyx_L1;} |
|
6452 __pyx_6 = (__pyx_1 == 0); |
|
6453 if (__pyx_6) { |
|
6454 |
|
6455 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1185 */ |
|
6456 __pyx_5 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->__pyx_vtab)->_emitter_error(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1185; goto __pyx_L1;} |
|
6457 Py_DECREF(__pyx_v_error); |
|
6458 __pyx_v_error = __pyx_5; |
|
6459 __pyx_5 = 0; |
|
6460 |
|
6461 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1186 */ |
|
6462 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
6463 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1186; goto __pyx_L1;} |
|
6464 goto __pyx_L13; |
|
6465 } |
|
6466 __pyx_L13:; |
|
6467 |
|
6468 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1187 */ |
|
6469 __pyx_1 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->__pyx_vtab)->_anchor_node(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self),__pyx_v_node); if (__pyx_1 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1187; goto __pyx_L1;} |
|
6470 |
|
6471 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1188 */ |
|
6472 __pyx_6 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->__pyx_vtab)->_serialize_node(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self),__pyx_v_node,Py_None,Py_None); if (__pyx_6 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1188; goto __pyx_L1;} |
|
6473 |
|
6474 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1189 */ |
|
6475 yaml_document_end_event_initialize((&__pyx_v_event),((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->document_end_implicit); |
|
6476 |
|
6477 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1190 */ |
|
6478 __pyx_1 = yaml_emitter_emit((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter),(&__pyx_v_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1190; goto __pyx_L1;} |
|
6479 __pyx_6 = (__pyx_1 == 0); |
|
6480 if (__pyx_6) { |
|
6481 |
|
6482 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1191 */ |
|
6483 __pyx_4 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->__pyx_vtab)->_emitter_error(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1191; goto __pyx_L1;} |
|
6484 Py_DECREF(__pyx_v_error); |
|
6485 __pyx_v_error = __pyx_4; |
|
6486 __pyx_4 = 0; |
|
6487 |
|
6488 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1192 */ |
|
6489 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
6490 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1192; goto __pyx_L1;} |
|
6491 goto __pyx_L14; |
|
6492 } |
|
6493 __pyx_L14:; |
|
6494 |
|
6495 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1193 */ |
|
6496 __pyx_2 = PyDict_New(); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1193; goto __pyx_L1;} |
|
6497 Py_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->serialized_nodes); |
|
6498 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->serialized_nodes = __pyx_2; |
|
6499 __pyx_2 = 0; |
|
6500 |
|
6501 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1194 */ |
|
6502 __pyx_3 = PyDict_New(); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1194; goto __pyx_L1;} |
|
6503 Py_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->anchors); |
|
6504 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->anchors = __pyx_3; |
|
6505 __pyx_3 = 0; |
|
6506 |
|
6507 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1195 */ |
|
6508 ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->last_alias_id = 0; |
|
6509 |
|
6510 __pyx_r = Py_None; Py_INCREF(Py_None); |
|
6511 goto __pyx_L0; |
|
6512 __pyx_L1:; |
|
6513 Py_XDECREF(__pyx_2); |
|
6514 Py_XDECREF(__pyx_3); |
|
6515 Py_XDECREF(__pyx_4); |
|
6516 Py_XDECREF(__pyx_5); |
|
6517 __Pyx_AddTraceback("_yaml.CEmitter.serialize"); |
|
6518 __pyx_r = 0; |
|
6519 __pyx_L0:; |
|
6520 Py_DECREF(__pyx_v_cache); |
|
6521 Py_DECREF(__pyx_v_handle); |
|
6522 Py_DECREF(__pyx_v_prefix); |
|
6523 Py_DECREF(__pyx_v_error); |
|
6524 Py_DECREF(__pyx_v_self); |
|
6525 Py_DECREF(__pyx_v_node); |
|
6526 return __pyx_r; |
|
6527 } |
|
6528 |
|
6529 static PyObject *__pyx_k105p; |
|
6530 |
|
6531 static char (__pyx_k105[]) = "id%03d"; |
|
6532 |
|
6533 static int __pyx_f_5_yaml_8CEmitter__anchor_node(struct __pyx_obj_5_yaml_CEmitter *__pyx_v_self,PyObject *__pyx_v_node) { |
|
6534 PyObject *__pyx_v_node_class; |
|
6535 PyObject *__pyx_v_item; |
|
6536 PyObject *__pyx_v_key; |
|
6537 PyObject *__pyx_v_value; |
|
6538 int __pyx_r; |
|
6539 int __pyx_1; |
|
6540 PyObject *__pyx_2 = 0; |
|
6541 PyObject *__pyx_3 = 0; |
|
6542 PyObject *__pyx_4 = 0; |
|
6543 PyObject *__pyx_5 = 0; |
|
6544 Py_INCREF(__pyx_v_self); |
|
6545 Py_INCREF(__pyx_v_node); |
|
6546 __pyx_v_node_class = Py_None; Py_INCREF(Py_None); |
|
6547 __pyx_v_item = Py_None; Py_INCREF(Py_None); |
|
6548 __pyx_v_key = Py_None; Py_INCREF(Py_None); |
|
6549 __pyx_v_value = Py_None; Py_INCREF(Py_None); |
|
6550 |
|
6551 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1198 */ |
|
6552 __pyx_1 = PySequence_Contains(__pyx_v_self->anchors, __pyx_v_node); if (__pyx_1 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1198; goto __pyx_L1;} |
|
6553 if (__pyx_1) { |
|
6554 |
|
6555 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1199 */ |
|
6556 __pyx_2 = PyObject_GetItem(__pyx_v_self->anchors, __pyx_v_node); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1199; goto __pyx_L1;} |
|
6557 __pyx_1 = __pyx_2 == Py_None; |
|
6558 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
6559 if (__pyx_1) { |
|
6560 |
|
6561 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1200 */ |
|
6562 __pyx_v_self->last_alias_id = (__pyx_v_self->last_alias_id + 1); |
|
6563 |
|
6564 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1201 */ |
|
6565 __pyx_2 = PyInt_FromLong(__pyx_v_self->last_alias_id); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1201; goto __pyx_L1;} |
|
6566 __pyx_3 = PyNumber_Remainder(__pyx_k105p, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1201; goto __pyx_L1;} |
|
6567 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
6568 if (PyObject_SetItem(__pyx_v_self->anchors, __pyx_v_node, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1201; goto __pyx_L1;} |
|
6569 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6570 goto __pyx_L3; |
|
6571 } |
|
6572 __pyx_L3:; |
|
6573 goto __pyx_L2; |
|
6574 } |
|
6575 /*else*/ { |
|
6576 |
|
6577 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1203 */ |
|
6578 if (PyObject_SetItem(__pyx_v_self->anchors, __pyx_v_node, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1203; goto __pyx_L1;} |
|
6579 |
|
6580 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1204 */ |
|
6581 __pyx_2 = PyObject_GetAttr(__pyx_v_node, __pyx_n___class__); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1204; goto __pyx_L1;} |
|
6582 Py_DECREF(__pyx_v_node_class); |
|
6583 __pyx_v_node_class = __pyx_2; |
|
6584 __pyx_2 = 0; |
|
6585 |
|
6586 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1205 */ |
|
6587 __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n_SequenceNode); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1205; goto __pyx_L1;} |
|
6588 __pyx_1 = __pyx_v_node_class == __pyx_3; |
|
6589 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6590 if (__pyx_1) { |
|
6591 |
|
6592 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1206 */ |
|
6593 __pyx_2 = PyObject_GetAttr(__pyx_v_node, __pyx_n_value); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1206; goto __pyx_L1;} |
|
6594 __pyx_3 = PyObject_GetIter(__pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1206; goto __pyx_L1;} |
|
6595 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
6596 for (;;) { |
|
6597 __pyx_L5:; |
|
6598 __pyx_2 = PyIter_Next(__pyx_3); |
|
6599 if (!__pyx_2) { |
|
6600 if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1206; goto __pyx_L1;} |
|
6601 break; |
|
6602 } |
|
6603 Py_DECREF(__pyx_v_item); |
|
6604 __pyx_v_item = __pyx_2; |
|
6605 __pyx_2 = 0; |
|
6606 |
|
6607 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1207 */ |
|
6608 __pyx_1 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_anchor_node(__pyx_v_self,__pyx_v_item); if (__pyx_1 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1207; goto __pyx_L1;} |
|
6609 } |
|
6610 __pyx_L6:; |
|
6611 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6612 goto __pyx_L4; |
|
6613 } |
|
6614 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_MappingNode); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1208; goto __pyx_L1;} |
|
6615 __pyx_1 = __pyx_v_node_class == __pyx_2; |
|
6616 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
6617 if (__pyx_1) { |
|
6618 |
|
6619 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1209 */ |
|
6620 __pyx_3 = PyObject_GetAttr(__pyx_v_node, __pyx_n_value); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1209; goto __pyx_L1;} |
|
6621 __pyx_2 = PyObject_GetIter(__pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1209; goto __pyx_L1;} |
|
6622 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6623 for (;;) { |
|
6624 __pyx_L7:; |
|
6625 __pyx_3 = PyIter_Next(__pyx_2); |
|
6626 if (!__pyx_3) { |
|
6627 if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1209; goto __pyx_L1;} |
|
6628 break; |
|
6629 } |
|
6630 __pyx_4 = __Pyx_UnpackItem(__pyx_3, 0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1209; goto __pyx_L1;} |
|
6631 Py_DECREF(__pyx_v_key); |
|
6632 __pyx_v_key = __pyx_4; |
|
6633 __pyx_4 = 0; |
|
6634 __pyx_5 = __Pyx_UnpackItem(__pyx_3, 1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1209; goto __pyx_L1;} |
|
6635 Py_DECREF(__pyx_v_value); |
|
6636 __pyx_v_value = __pyx_5; |
|
6637 __pyx_5 = 0; |
|
6638 if (__Pyx_EndUnpack(__pyx_3, 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1209; goto __pyx_L1;} |
|
6639 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
6640 |
|
6641 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1210 */ |
|
6642 __pyx_1 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_anchor_node(__pyx_v_self,__pyx_v_key); if (__pyx_1 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1210; goto __pyx_L1;} |
|
6643 |
|
6644 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1211 */ |
|
6645 __pyx_1 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_anchor_node(__pyx_v_self,__pyx_v_value); if (__pyx_1 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1211; goto __pyx_L1;} |
|
6646 } |
|
6647 __pyx_L8:; |
|
6648 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
6649 goto __pyx_L4; |
|
6650 } |
|
6651 __pyx_L4:; |
|
6652 } |
|
6653 __pyx_L2:; |
|
6654 |
|
6655 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1212 */ |
|
6656 __pyx_r = 1; |
|
6657 goto __pyx_L0; |
|
6658 |
|
6659 __pyx_r = 0; |
|
6660 goto __pyx_L0; |
|
6661 __pyx_L1:; |
|
6662 Py_XDECREF(__pyx_2); |
|
6663 Py_XDECREF(__pyx_3); |
|
6664 Py_XDECREF(__pyx_4); |
|
6665 Py_XDECREF(__pyx_5); |
|
6666 __Pyx_AddTraceback("_yaml.CEmitter._anchor_node"); |
|
6667 __pyx_r = 0; |
|
6668 __pyx_L0:; |
|
6669 Py_DECREF(__pyx_v_node_class); |
|
6670 Py_DECREF(__pyx_v_item); |
|
6671 Py_DECREF(__pyx_v_key); |
|
6672 Py_DECREF(__pyx_v_value); |
|
6673 Py_DECREF(__pyx_v_self); |
|
6674 Py_DECREF(__pyx_v_node); |
|
6675 return __pyx_r; |
|
6676 } |
|
6677 |
|
6678 static PyObject *__pyx_k106p; |
|
6679 static PyObject *__pyx_k107p; |
|
6680 static PyObject *__pyx_k108p; |
|
6681 static PyObject *__pyx_k109p; |
|
6682 static PyObject *__pyx_k110p; |
|
6683 static PyObject *__pyx_k111p; |
|
6684 static PyObject *__pyx_k112p; |
|
6685 static PyObject *__pyx_k113p; |
|
6686 |
|
6687 static char (__pyx_k106[]) = "tag must be a string"; |
|
6688 static char (__pyx_k107[]) = "value must be a string"; |
|
6689 static char (__pyx_k108[]) = "\'"; |
|
6690 static char (__pyx_k109[]) = "\""; |
|
6691 static char (__pyx_k110[]) = "|"; |
|
6692 static char (__pyx_k111[]) = ">"; |
|
6693 static char (__pyx_k112[]) = "tag must be a string"; |
|
6694 static char (__pyx_k113[]) = "tag must be a string"; |
|
6695 |
|
6696 static int __pyx_f_5_yaml_8CEmitter__serialize_node(struct __pyx_obj_5_yaml_CEmitter *__pyx_v_self,PyObject *__pyx_v_node,PyObject *__pyx_v_parent,PyObject *__pyx_v_index) { |
|
6697 yaml_event_t __pyx_v_event; |
|
6698 int __pyx_v_implicit; |
|
6699 int __pyx_v_plain_implicit; |
|
6700 int __pyx_v_quoted_implicit; |
|
6701 char (*__pyx_v_anchor); |
|
6702 char (*__pyx_v_tag); |
|
6703 char (*__pyx_v_value); |
|
6704 int __pyx_v_length; |
|
6705 int __pyx_v_item_index; |
|
6706 yaml_scalar_style_t __pyx_v_scalar_style; |
|
6707 yaml_sequence_style_t __pyx_v_sequence_style; |
|
6708 yaml_mapping_style_t __pyx_v_mapping_style; |
|
6709 PyObject *__pyx_v_anchor_object; |
|
6710 PyObject *__pyx_v_error; |
|
6711 PyObject *__pyx_v_node_class; |
|
6712 PyObject *__pyx_v_tag_object; |
|
6713 PyObject *__pyx_v_value_object; |
|
6714 PyObject *__pyx_v_style_object; |
|
6715 PyObject *__pyx_v_item; |
|
6716 PyObject *__pyx_v_item_key; |
|
6717 PyObject *__pyx_v_item_value; |
|
6718 int __pyx_r; |
|
6719 PyObject *__pyx_1 = 0; |
|
6720 int __pyx_2; |
|
6721 int __pyx_3; |
|
6722 PyObject *__pyx_4 = 0; |
|
6723 PyObject *__pyx_5 = 0; |
|
6724 PyObject *__pyx_6 = 0; |
|
6725 PyObject *__pyx_7 = 0; |
|
6726 PyObject *__pyx_8 = 0; |
|
6727 Py_INCREF(__pyx_v_self); |
|
6728 Py_INCREF(__pyx_v_node); |
|
6729 Py_INCREF(__pyx_v_parent); |
|
6730 Py_INCREF(__pyx_v_index); |
|
6731 __pyx_v_anchor_object = Py_None; Py_INCREF(Py_None); |
|
6732 __pyx_v_error = Py_None; Py_INCREF(Py_None); |
|
6733 __pyx_v_node_class = Py_None; Py_INCREF(Py_None); |
|
6734 __pyx_v_tag_object = Py_None; Py_INCREF(Py_None); |
|
6735 __pyx_v_value_object = Py_None; Py_INCREF(Py_None); |
|
6736 __pyx_v_style_object = Py_None; Py_INCREF(Py_None); |
|
6737 __pyx_v_item = Py_None; Py_INCREF(Py_None); |
|
6738 __pyx_v_item_key = Py_None; Py_INCREF(Py_None); |
|
6739 __pyx_v_item_value = Py_None; Py_INCREF(Py_None); |
|
6740 |
|
6741 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1227 */ |
|
6742 __pyx_1 = PyObject_GetItem(__pyx_v_self->anchors, __pyx_v_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1227; goto __pyx_L1;} |
|
6743 Py_DECREF(__pyx_v_anchor_object); |
|
6744 __pyx_v_anchor_object = __pyx_1; |
|
6745 __pyx_1 = 0; |
|
6746 |
|
6747 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1228 */ |
|
6748 __pyx_v_anchor = 0; |
|
6749 |
|
6750 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1229 */ |
|
6751 __pyx_2 = __pyx_v_anchor_object != Py_None; |
|
6752 if (__pyx_2) { |
|
6753 |
|
6754 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1230 */ |
|
6755 __pyx_v_anchor = PyString_AS_STRING(__pyx_v_anchor_object); |
|
6756 goto __pyx_L2; |
|
6757 } |
|
6758 __pyx_L2:; |
|
6759 |
|
6760 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1231 */ |
|
6761 __pyx_2 = PySequence_Contains(__pyx_v_self->serialized_nodes, __pyx_v_node); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1231; goto __pyx_L1;} |
|
6762 if (__pyx_2) { |
|
6763 |
|
6764 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1232 */ |
|
6765 __pyx_2 = (yaml_alias_event_initialize((&__pyx_v_event),__pyx_v_anchor) == 0); |
|
6766 if (__pyx_2) { |
|
6767 |
|
6768 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1233 */ |
|
6769 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1233; goto __pyx_L1;} |
|
6770 __Pyx_Raise(__pyx_1, 0, 0); |
|
6771 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
6772 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1233; goto __pyx_L1;} |
|
6773 goto __pyx_L4; |
|
6774 } |
|
6775 __pyx_L4:; |
|
6776 |
|
6777 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1234 */ |
|
6778 __pyx_2 = yaml_emitter_emit((&__pyx_v_self->emitter),(&__pyx_v_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1234; goto __pyx_L1;} |
|
6779 __pyx_3 = (__pyx_2 == 0); |
|
6780 if (__pyx_3) { |
|
6781 |
|
6782 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1235 */ |
|
6783 __pyx_1 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_emitter_error(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1235; goto __pyx_L1;} |
|
6784 Py_DECREF(__pyx_v_error); |
|
6785 __pyx_v_error = __pyx_1; |
|
6786 __pyx_1 = 0; |
|
6787 |
|
6788 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1236 */ |
|
6789 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
6790 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1236; goto __pyx_L1;} |
|
6791 goto __pyx_L5; |
|
6792 } |
|
6793 __pyx_L5:; |
|
6794 goto __pyx_L3; |
|
6795 } |
|
6796 /*else*/ { |
|
6797 |
|
6798 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1238 */ |
|
6799 __pyx_1 = PyObject_GetAttr(__pyx_v_node, __pyx_n___class__); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1238; goto __pyx_L1;} |
|
6800 Py_DECREF(__pyx_v_node_class); |
|
6801 __pyx_v_node_class = __pyx_1; |
|
6802 __pyx_1 = 0; |
|
6803 |
|
6804 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1239 */ |
|
6805 __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1239; goto __pyx_L1;} |
|
6806 if (PyObject_SetItem(__pyx_v_self->serialized_nodes, __pyx_v_node, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1239; goto __pyx_L1;} |
|
6807 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
6808 |
|
6809 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1240 */ |
|
6810 __pyx_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_descend_resolver); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; goto __pyx_L1;} |
|
6811 __pyx_4 = PyTuple_New(2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; goto __pyx_L1;} |
|
6812 Py_INCREF(__pyx_v_parent); |
|
6813 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_v_parent); |
|
6814 Py_INCREF(__pyx_v_index); |
|
6815 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_v_index); |
|
6816 __pyx_5 = PyObject_CallObject(__pyx_1, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; goto __pyx_L1;} |
|
6817 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
6818 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6819 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
6820 |
|
6821 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1241 */ |
|
6822 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_ScalarNode); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1241; goto __pyx_L1;} |
|
6823 __pyx_2 = __pyx_v_node_class == __pyx_1; |
|
6824 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
6825 if (__pyx_2) { |
|
6826 |
|
6827 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1242 */ |
|
6828 __pyx_v_plain_implicit = 0; |
|
6829 |
|
6830 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1243 */ |
|
6831 __pyx_v_quoted_implicit = 0; |
|
6832 |
|
6833 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1244 */ |
|
6834 __pyx_4 = PyObject_GetAttr(__pyx_v_node, __pyx_n_tag); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1244; goto __pyx_L1;} |
|
6835 Py_DECREF(__pyx_v_tag_object); |
|
6836 __pyx_v_tag_object = __pyx_4; |
|
6837 __pyx_4 = 0; |
|
6838 |
|
6839 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1245 */ |
|
6840 __pyx_5 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_resolve); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1245; goto __pyx_L1;} |
|
6841 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_ScalarNode); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1245; goto __pyx_L1;} |
|
6842 __pyx_4 = PyObject_GetAttr(__pyx_v_node, __pyx_n_value); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1245; goto __pyx_L1;} |
|
6843 __pyx_6 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1245; goto __pyx_L1;} |
|
6844 __pyx_7 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1245; goto __pyx_L1;} |
|
6845 __pyx_8 = PyTuple_New(2); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1245; goto __pyx_L1;} |
|
6846 PyTuple_SET_ITEM(__pyx_8, 0, __pyx_6); |
|
6847 PyTuple_SET_ITEM(__pyx_8, 1, __pyx_7); |
|
6848 __pyx_6 = 0; |
|
6849 __pyx_7 = 0; |
|
6850 __pyx_6 = PyTuple_New(3); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1245; goto __pyx_L1;} |
|
6851 PyTuple_SET_ITEM(__pyx_6, 0, __pyx_1); |
|
6852 PyTuple_SET_ITEM(__pyx_6, 1, __pyx_4); |
|
6853 PyTuple_SET_ITEM(__pyx_6, 2, __pyx_8); |
|
6854 __pyx_1 = 0; |
|
6855 __pyx_4 = 0; |
|
6856 __pyx_8 = 0; |
|
6857 __pyx_7 = PyObject_CallObject(__pyx_5, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1245; goto __pyx_L1;} |
|
6858 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
6859 Py_DECREF(__pyx_6); __pyx_6 = 0; |
|
6860 if (PyObject_Cmp(__pyx_7, __pyx_v_tag_object, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1245; goto __pyx_L1;} |
|
6861 __pyx_3 = __pyx_3 == 0; |
|
6862 Py_DECREF(__pyx_7); __pyx_7 = 0; |
|
6863 if (__pyx_3) { |
|
6864 |
|
6865 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1246 */ |
|
6866 __pyx_v_plain_implicit = 1; |
|
6867 goto __pyx_L7; |
|
6868 } |
|
6869 __pyx_L7:; |
|
6870 |
|
6871 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1247 */ |
|
6872 __pyx_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_resolve); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; goto __pyx_L1;} |
|
6873 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_ScalarNode); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; goto __pyx_L1;} |
|
6874 __pyx_8 = PyObject_GetAttr(__pyx_v_node, __pyx_n_value); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; goto __pyx_L1;} |
|
6875 __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_False); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; goto __pyx_L1;} |
|
6876 __pyx_6 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; goto __pyx_L1;} |
|
6877 __pyx_7 = PyTuple_New(2); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; goto __pyx_L1;} |
|
6878 PyTuple_SET_ITEM(__pyx_7, 0, __pyx_5); |
|
6879 PyTuple_SET_ITEM(__pyx_7, 1, __pyx_6); |
|
6880 __pyx_5 = 0; |
|
6881 __pyx_6 = 0; |
|
6882 __pyx_5 = PyTuple_New(3); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; goto __pyx_L1;} |
|
6883 PyTuple_SET_ITEM(__pyx_5, 0, __pyx_4); |
|
6884 PyTuple_SET_ITEM(__pyx_5, 1, __pyx_8); |
|
6885 PyTuple_SET_ITEM(__pyx_5, 2, __pyx_7); |
|
6886 __pyx_4 = 0; |
|
6887 __pyx_8 = 0; |
|
6888 __pyx_7 = 0; |
|
6889 __pyx_6 = PyObject_CallObject(__pyx_1, __pyx_5); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; goto __pyx_L1;} |
|
6890 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
6891 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
6892 if (PyObject_Cmp(__pyx_6, __pyx_v_tag_object, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1247; goto __pyx_L1;} |
|
6893 __pyx_2 = __pyx_2 == 0; |
|
6894 Py_DECREF(__pyx_6); __pyx_6 = 0; |
|
6895 if (__pyx_2) { |
|
6896 |
|
6897 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1248 */ |
|
6898 __pyx_v_quoted_implicit = 1; |
|
6899 goto __pyx_L8; |
|
6900 } |
|
6901 __pyx_L8:; |
|
6902 |
|
6903 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1249 */ |
|
6904 __pyx_v_tag = 0; |
|
6905 |
|
6906 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1250 */ |
|
6907 __pyx_3 = __pyx_v_tag_object != Py_None; |
|
6908 if (__pyx_3) { |
|
6909 |
|
6910 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1251 */ |
|
6911 __pyx_2 = PyUnicode_CheckExact(__pyx_v_tag_object); |
|
6912 if (__pyx_2) { |
|
6913 |
|
6914 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1252 */ |
|
6915 __pyx_4 = PyUnicode_AsUTF8String(__pyx_v_tag_object); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1252; goto __pyx_L1;} |
|
6916 Py_DECREF(__pyx_v_tag_object); |
|
6917 __pyx_v_tag_object = __pyx_4; |
|
6918 __pyx_4 = 0; |
|
6919 goto __pyx_L10; |
|
6920 } |
|
6921 __pyx_L10:; |
|
6922 |
|
6923 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1253 */ |
|
6924 __pyx_3 = (!PyString_CheckExact(__pyx_v_tag_object)); |
|
6925 if (__pyx_3) { |
|
6926 |
|
6927 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1254 */ |
|
6928 __pyx_8 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1254; goto __pyx_L1;} |
|
6929 __pyx_7 = PyTuple_New(1); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1254; goto __pyx_L1;} |
|
6930 Py_INCREF(__pyx_k106p); |
|
6931 PyTuple_SET_ITEM(__pyx_7, 0, __pyx_k106p); |
|
6932 __pyx_1 = PyObject_CallObject(__pyx_8, __pyx_7); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1254; goto __pyx_L1;} |
|
6933 Py_DECREF(__pyx_8); __pyx_8 = 0; |
|
6934 Py_DECREF(__pyx_7); __pyx_7 = 0; |
|
6935 __Pyx_Raise(__pyx_1, 0, 0); |
|
6936 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
6937 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1254; goto __pyx_L1;} |
|
6938 goto __pyx_L11; |
|
6939 } |
|
6940 __pyx_L11:; |
|
6941 |
|
6942 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1255 */ |
|
6943 __pyx_v_tag = PyString_AS_STRING(__pyx_v_tag_object); |
|
6944 goto __pyx_L9; |
|
6945 } |
|
6946 __pyx_L9:; |
|
6947 |
|
6948 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1256 */ |
|
6949 __pyx_5 = PyObject_GetAttr(__pyx_v_node, __pyx_n_value); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1256; goto __pyx_L1;} |
|
6950 Py_DECREF(__pyx_v_value_object); |
|
6951 __pyx_v_value_object = __pyx_5; |
|
6952 __pyx_5 = 0; |
|
6953 |
|
6954 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1257 */ |
|
6955 __pyx_2 = PyUnicode_CheckExact(__pyx_v_value_object); |
|
6956 if (__pyx_2) { |
|
6957 |
|
6958 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1258 */ |
|
6959 __pyx_6 = PyUnicode_AsUTF8String(__pyx_v_value_object); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1258; goto __pyx_L1;} |
|
6960 Py_DECREF(__pyx_v_value_object); |
|
6961 __pyx_v_value_object = __pyx_6; |
|
6962 __pyx_6 = 0; |
|
6963 goto __pyx_L12; |
|
6964 } |
|
6965 __pyx_L12:; |
|
6966 |
|
6967 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1259 */ |
|
6968 __pyx_3 = (!PyString_CheckExact(__pyx_v_value_object)); |
|
6969 if (__pyx_3) { |
|
6970 |
|
6971 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1260 */ |
|
6972 __pyx_4 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1260; goto __pyx_L1;} |
|
6973 __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1260; goto __pyx_L1;} |
|
6974 Py_INCREF(__pyx_k107p); |
|
6975 PyTuple_SET_ITEM(__pyx_8, 0, __pyx_k107p); |
|
6976 __pyx_7 = PyObject_CallObject(__pyx_4, __pyx_8); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1260; goto __pyx_L1;} |
|
6977 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
6978 Py_DECREF(__pyx_8); __pyx_8 = 0; |
|
6979 __Pyx_Raise(__pyx_7, 0, 0); |
|
6980 Py_DECREF(__pyx_7); __pyx_7 = 0; |
|
6981 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1260; goto __pyx_L1;} |
|
6982 goto __pyx_L13; |
|
6983 } |
|
6984 __pyx_L13:; |
|
6985 |
|
6986 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1261 */ |
|
6987 __pyx_v_value = PyString_AS_STRING(__pyx_v_value_object); |
|
6988 |
|
6989 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1262 */ |
|
6990 __pyx_v_length = PyString_GET_SIZE(__pyx_v_value_object); |
|
6991 |
|
6992 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1263 */ |
|
6993 __pyx_1 = PyObject_GetAttr(__pyx_v_node, __pyx_n_style); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1263; goto __pyx_L1;} |
|
6994 Py_DECREF(__pyx_v_style_object); |
|
6995 __pyx_v_style_object = __pyx_1; |
|
6996 __pyx_1 = 0; |
|
6997 |
|
6998 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1264 */ |
|
6999 __pyx_v_scalar_style = YAML_PLAIN_SCALAR_STYLE; |
|
7000 |
|
7001 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1265 */ |
|
7002 if (PyObject_Cmp(__pyx_v_style_object, __pyx_k108p, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1265; goto __pyx_L1;} |
|
7003 __pyx_2 = __pyx_2 == 0; |
|
7004 if (__pyx_2) { |
|
7005 |
|
7006 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1266 */ |
|
7007 __pyx_v_scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE; |
|
7008 goto __pyx_L14; |
|
7009 } |
|
7010 if (PyObject_Cmp(__pyx_v_style_object, __pyx_k109p, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1267; goto __pyx_L1;} |
|
7011 __pyx_3 = __pyx_3 == 0; |
|
7012 if (__pyx_3) { |
|
7013 |
|
7014 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1268 */ |
|
7015 __pyx_v_scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE; |
|
7016 goto __pyx_L14; |
|
7017 } |
|
7018 if (PyObject_Cmp(__pyx_v_style_object, __pyx_k110p, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1269; goto __pyx_L1;} |
|
7019 __pyx_2 = __pyx_2 == 0; |
|
7020 if (__pyx_2) { |
|
7021 |
|
7022 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1270 */ |
|
7023 __pyx_v_scalar_style = YAML_LITERAL_SCALAR_STYLE; |
|
7024 goto __pyx_L14; |
|
7025 } |
|
7026 if (PyObject_Cmp(__pyx_v_style_object, __pyx_k111p, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1271; goto __pyx_L1;} |
|
7027 __pyx_3 = __pyx_3 == 0; |
|
7028 if (__pyx_3) { |
|
7029 |
|
7030 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1272 */ |
|
7031 __pyx_v_scalar_style = YAML_FOLDED_SCALAR_STYLE; |
|
7032 goto __pyx_L14; |
|
7033 } |
|
7034 __pyx_L14:; |
|
7035 |
|
7036 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1273 */ |
|
7037 __pyx_2 = (yaml_scalar_event_initialize((&__pyx_v_event),__pyx_v_anchor,__pyx_v_tag,__pyx_v_value,__pyx_v_length,__pyx_v_plain_implicit,__pyx_v_quoted_implicit,__pyx_v_scalar_style) == 0); |
|
7038 if (__pyx_2) { |
|
7039 |
|
7040 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1275 */ |
|
7041 __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1275; goto __pyx_L1;} |
|
7042 __Pyx_Raise(__pyx_5, 0, 0); |
|
7043 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
7044 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1275; goto __pyx_L1;} |
|
7045 goto __pyx_L15; |
|
7046 } |
|
7047 __pyx_L15:; |
|
7048 |
|
7049 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1276 */ |
|
7050 __pyx_3 = yaml_emitter_emit((&__pyx_v_self->emitter),(&__pyx_v_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1276; goto __pyx_L1;} |
|
7051 __pyx_2 = (__pyx_3 == 0); |
|
7052 if (__pyx_2) { |
|
7053 |
|
7054 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1277 */ |
|
7055 __pyx_6 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_emitter_error(__pyx_v_self); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1277; goto __pyx_L1;} |
|
7056 Py_DECREF(__pyx_v_error); |
|
7057 __pyx_v_error = __pyx_6; |
|
7058 __pyx_6 = 0; |
|
7059 |
|
7060 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1278 */ |
|
7061 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
7062 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1278; goto __pyx_L1;} |
|
7063 goto __pyx_L16; |
|
7064 } |
|
7065 __pyx_L16:; |
|
7066 goto __pyx_L6; |
|
7067 } |
|
7068 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_SequenceNode); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1279; goto __pyx_L1;} |
|
7069 __pyx_3 = __pyx_v_node_class == __pyx_4; |
|
7070 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
7071 if (__pyx_3) { |
|
7072 |
|
7073 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1280 */ |
|
7074 __pyx_v_implicit = 0; |
|
7075 |
|
7076 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1281 */ |
|
7077 __pyx_8 = PyObject_GetAttr(__pyx_v_node, __pyx_n_tag); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1281; goto __pyx_L1;} |
|
7078 Py_DECREF(__pyx_v_tag_object); |
|
7079 __pyx_v_tag_object = __pyx_8; |
|
7080 __pyx_8 = 0; |
|
7081 |
|
7082 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1282 */ |
|
7083 __pyx_7 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_resolve); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1282; goto __pyx_L1;} |
|
7084 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_SequenceNode); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1282; goto __pyx_L1;} |
|
7085 __pyx_5 = PyObject_GetAttr(__pyx_v_node, __pyx_n_value); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1282; goto __pyx_L1;} |
|
7086 __pyx_6 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1282; goto __pyx_L1;} |
|
7087 __pyx_4 = PyTuple_New(3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1282; goto __pyx_L1;} |
|
7088 PyTuple_SET_ITEM(__pyx_4, 0, __pyx_1); |
|
7089 PyTuple_SET_ITEM(__pyx_4, 1, __pyx_5); |
|
7090 PyTuple_SET_ITEM(__pyx_4, 2, __pyx_6); |
|
7091 __pyx_1 = 0; |
|
7092 __pyx_5 = 0; |
|
7093 __pyx_6 = 0; |
|
7094 __pyx_8 = PyObject_CallObject(__pyx_7, __pyx_4); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1282; goto __pyx_L1;} |
|
7095 Py_DECREF(__pyx_7); __pyx_7 = 0; |
|
7096 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
7097 if (PyObject_Cmp(__pyx_8, __pyx_v_tag_object, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1282; goto __pyx_L1;} |
|
7098 __pyx_2 = __pyx_2 == 0; |
|
7099 Py_DECREF(__pyx_8); __pyx_8 = 0; |
|
7100 if (__pyx_2) { |
|
7101 |
|
7102 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1283 */ |
|
7103 __pyx_v_implicit = 1; |
|
7104 goto __pyx_L17; |
|
7105 } |
|
7106 __pyx_L17:; |
|
7107 |
|
7108 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1284 */ |
|
7109 __pyx_v_tag = 0; |
|
7110 |
|
7111 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1285 */ |
|
7112 __pyx_3 = __pyx_v_tag_object != Py_None; |
|
7113 if (__pyx_3) { |
|
7114 |
|
7115 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1286 */ |
|
7116 __pyx_2 = PyUnicode_CheckExact(__pyx_v_tag_object); |
|
7117 if (__pyx_2) { |
|
7118 |
|
7119 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1287 */ |
|
7120 __pyx_1 = PyUnicode_AsUTF8String(__pyx_v_tag_object); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1287; goto __pyx_L1;} |
|
7121 Py_DECREF(__pyx_v_tag_object); |
|
7122 __pyx_v_tag_object = __pyx_1; |
|
7123 __pyx_1 = 0; |
|
7124 goto __pyx_L19; |
|
7125 } |
|
7126 __pyx_L19:; |
|
7127 |
|
7128 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1288 */ |
|
7129 __pyx_3 = (!PyString_CheckExact(__pyx_v_tag_object)); |
|
7130 if (__pyx_3) { |
|
7131 |
|
7132 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1289 */ |
|
7133 __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1289; goto __pyx_L1;} |
|
7134 __pyx_6 = PyTuple_New(1); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1289; goto __pyx_L1;} |
|
7135 Py_INCREF(__pyx_k112p); |
|
7136 PyTuple_SET_ITEM(__pyx_6, 0, __pyx_k112p); |
|
7137 __pyx_7 = PyObject_CallObject(__pyx_5, __pyx_6); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1289; goto __pyx_L1;} |
|
7138 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
7139 Py_DECREF(__pyx_6); __pyx_6 = 0; |
|
7140 __Pyx_Raise(__pyx_7, 0, 0); |
|
7141 Py_DECREF(__pyx_7); __pyx_7 = 0; |
|
7142 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1289; goto __pyx_L1;} |
|
7143 goto __pyx_L20; |
|
7144 } |
|
7145 __pyx_L20:; |
|
7146 |
|
7147 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1290 */ |
|
7148 __pyx_v_tag = PyString_AS_STRING(__pyx_v_tag_object); |
|
7149 goto __pyx_L18; |
|
7150 } |
|
7151 __pyx_L18:; |
|
7152 |
|
7153 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1291 */ |
|
7154 __pyx_v_sequence_style = YAML_BLOCK_SEQUENCE_STYLE; |
|
7155 |
|
7156 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1292 */ |
|
7157 __pyx_4 = PyObject_GetAttr(__pyx_v_node, __pyx_n_flow_style); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1292; goto __pyx_L1;} |
|
7158 __pyx_2 = PyObject_IsTrue(__pyx_4); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1292; goto __pyx_L1;} |
|
7159 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
7160 if (__pyx_2) { |
|
7161 |
|
7162 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1293 */ |
|
7163 __pyx_v_sequence_style = YAML_FLOW_SEQUENCE_STYLE; |
|
7164 goto __pyx_L21; |
|
7165 } |
|
7166 __pyx_L21:; |
|
7167 |
|
7168 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1294 */ |
|
7169 __pyx_3 = (yaml_sequence_start_event_initialize((&__pyx_v_event),__pyx_v_anchor,__pyx_v_tag,__pyx_v_implicit,__pyx_v_sequence_style) == 0); |
|
7170 if (__pyx_3) { |
|
7171 |
|
7172 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1296 */ |
|
7173 __pyx_8 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1296; goto __pyx_L1;} |
|
7174 __Pyx_Raise(__pyx_8, 0, 0); |
|
7175 Py_DECREF(__pyx_8); __pyx_8 = 0; |
|
7176 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1296; goto __pyx_L1;} |
|
7177 goto __pyx_L22; |
|
7178 } |
|
7179 __pyx_L22:; |
|
7180 |
|
7181 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1297 */ |
|
7182 __pyx_2 = yaml_emitter_emit((&__pyx_v_self->emitter),(&__pyx_v_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1297; goto __pyx_L1;} |
|
7183 __pyx_3 = (__pyx_2 == 0); |
|
7184 if (__pyx_3) { |
|
7185 |
|
7186 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1298 */ |
|
7187 __pyx_1 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_emitter_error(__pyx_v_self); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1298; goto __pyx_L1;} |
|
7188 Py_DECREF(__pyx_v_error); |
|
7189 __pyx_v_error = __pyx_1; |
|
7190 __pyx_1 = 0; |
|
7191 |
|
7192 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1299 */ |
|
7193 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
7194 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1299; goto __pyx_L1;} |
|
7195 goto __pyx_L23; |
|
7196 } |
|
7197 __pyx_L23:; |
|
7198 |
|
7199 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1300 */ |
|
7200 __pyx_v_item_index = 0; |
|
7201 |
|
7202 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1301 */ |
|
7203 __pyx_5 = PyObject_GetAttr(__pyx_v_node, __pyx_n_value); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;} |
|
7204 __pyx_6 = PyObject_GetIter(__pyx_5); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;} |
|
7205 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
7206 for (;;) { |
|
7207 __pyx_L24:; |
|
7208 __pyx_7 = PyIter_Next(__pyx_6); |
|
7209 if (!__pyx_7) { |
|
7210 if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; goto __pyx_L1;} |
|
7211 break; |
|
7212 } |
|
7213 Py_DECREF(__pyx_v_item); |
|
7214 __pyx_v_item = __pyx_7; |
|
7215 __pyx_7 = 0; |
|
7216 |
|
7217 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1302 */ |
|
7218 __pyx_4 = PyInt_FromLong(__pyx_v_item_index); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1302; goto __pyx_L1;} |
|
7219 __pyx_2 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_serialize_node(__pyx_v_self,__pyx_v_item,__pyx_v_node,__pyx_4); if (__pyx_2 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1302; goto __pyx_L1;} |
|
7220 Py_DECREF(__pyx_4); __pyx_4 = 0; |
|
7221 |
|
7222 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1303 */ |
|
7223 __pyx_v_item_index = (__pyx_v_item_index + 1); |
|
7224 } |
|
7225 __pyx_L25:; |
|
7226 Py_DECREF(__pyx_6); __pyx_6 = 0; |
|
7227 |
|
7228 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1304 */ |
|
7229 yaml_sequence_end_event_initialize((&__pyx_v_event)); |
|
7230 |
|
7231 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1305 */ |
|
7232 __pyx_3 = yaml_emitter_emit((&__pyx_v_self->emitter),(&__pyx_v_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1305; goto __pyx_L1;} |
|
7233 __pyx_2 = (__pyx_3 == 0); |
|
7234 if (__pyx_2) { |
|
7235 |
|
7236 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1306 */ |
|
7237 __pyx_8 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_emitter_error(__pyx_v_self); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1306; goto __pyx_L1;} |
|
7238 Py_DECREF(__pyx_v_error); |
|
7239 __pyx_v_error = __pyx_8; |
|
7240 __pyx_8 = 0; |
|
7241 |
|
7242 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1307 */ |
|
7243 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
7244 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1307; goto __pyx_L1;} |
|
7245 goto __pyx_L26; |
|
7246 } |
|
7247 __pyx_L26:; |
|
7248 goto __pyx_L6; |
|
7249 } |
|
7250 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_MappingNode); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1308; goto __pyx_L1;} |
|
7251 __pyx_3 = __pyx_v_node_class == __pyx_1; |
|
7252 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
7253 if (__pyx_3) { |
|
7254 |
|
7255 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1309 */ |
|
7256 __pyx_v_implicit = 0; |
|
7257 |
|
7258 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1310 */ |
|
7259 __pyx_5 = PyObject_GetAttr(__pyx_v_node, __pyx_n_tag); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1310; goto __pyx_L1;} |
|
7260 Py_DECREF(__pyx_v_tag_object); |
|
7261 __pyx_v_tag_object = __pyx_5; |
|
7262 __pyx_5 = 0; |
|
7263 |
|
7264 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1311 */ |
|
7265 __pyx_7 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_resolve); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; goto __pyx_L1;} |
|
7266 __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n_MappingNode); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; goto __pyx_L1;} |
|
7267 __pyx_6 = PyObject_GetAttr(__pyx_v_node, __pyx_n_value); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; goto __pyx_L1;} |
|
7268 __pyx_8 = __Pyx_GetName(__pyx_b, __pyx_n_True); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; goto __pyx_L1;} |
|
7269 __pyx_1 = PyTuple_New(3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; goto __pyx_L1;} |
|
7270 PyTuple_SET_ITEM(__pyx_1, 0, __pyx_4); |
|
7271 PyTuple_SET_ITEM(__pyx_1, 1, __pyx_6); |
|
7272 PyTuple_SET_ITEM(__pyx_1, 2, __pyx_8); |
|
7273 __pyx_4 = 0; |
|
7274 __pyx_6 = 0; |
|
7275 __pyx_8 = 0; |
|
7276 __pyx_5 = PyObject_CallObject(__pyx_7, __pyx_1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; goto __pyx_L1;} |
|
7277 Py_DECREF(__pyx_7); __pyx_7 = 0; |
|
7278 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
7279 if (PyObject_Cmp(__pyx_5, __pyx_v_tag_object, &__pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1311; goto __pyx_L1;} |
|
7280 __pyx_2 = __pyx_2 == 0; |
|
7281 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
7282 if (__pyx_2) { |
|
7283 |
|
7284 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1312 */ |
|
7285 __pyx_v_implicit = 1; |
|
7286 goto __pyx_L27; |
|
7287 } |
|
7288 __pyx_L27:; |
|
7289 |
|
7290 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1313 */ |
|
7291 __pyx_v_tag = 0; |
|
7292 |
|
7293 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1314 */ |
|
7294 __pyx_3 = __pyx_v_tag_object != Py_None; |
|
7295 if (__pyx_3) { |
|
7296 |
|
7297 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1315 */ |
|
7298 __pyx_2 = PyUnicode_CheckExact(__pyx_v_tag_object); |
|
7299 if (__pyx_2) { |
|
7300 |
|
7301 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1316 */ |
|
7302 __pyx_4 = PyUnicode_AsUTF8String(__pyx_v_tag_object); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1316; goto __pyx_L1;} |
|
7303 Py_DECREF(__pyx_v_tag_object); |
|
7304 __pyx_v_tag_object = __pyx_4; |
|
7305 __pyx_4 = 0; |
|
7306 goto __pyx_L29; |
|
7307 } |
|
7308 __pyx_L29:; |
|
7309 |
|
7310 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1317 */ |
|
7311 __pyx_3 = (!PyString_CheckExact(__pyx_v_tag_object)); |
|
7312 if (__pyx_3) { |
|
7313 |
|
7314 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1318 */ |
|
7315 __pyx_6 = __Pyx_GetName(__pyx_b, __pyx_n_TypeError); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; goto __pyx_L1;} |
|
7316 __pyx_8 = PyTuple_New(1); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; goto __pyx_L1;} |
|
7317 Py_INCREF(__pyx_k113p); |
|
7318 PyTuple_SET_ITEM(__pyx_8, 0, __pyx_k113p); |
|
7319 __pyx_7 = PyObject_CallObject(__pyx_6, __pyx_8); if (!__pyx_7) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; goto __pyx_L1;} |
|
7320 Py_DECREF(__pyx_6); __pyx_6 = 0; |
|
7321 Py_DECREF(__pyx_8); __pyx_8 = 0; |
|
7322 __Pyx_Raise(__pyx_7, 0, 0); |
|
7323 Py_DECREF(__pyx_7); __pyx_7 = 0; |
|
7324 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1318; goto __pyx_L1;} |
|
7325 goto __pyx_L30; |
|
7326 } |
|
7327 __pyx_L30:; |
|
7328 |
|
7329 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1319 */ |
|
7330 __pyx_v_tag = PyString_AS_STRING(__pyx_v_tag_object); |
|
7331 goto __pyx_L28; |
|
7332 } |
|
7333 __pyx_L28:; |
|
7334 |
|
7335 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1320 */ |
|
7336 __pyx_v_mapping_style = YAML_BLOCK_MAPPING_STYLE; |
|
7337 |
|
7338 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1321 */ |
|
7339 __pyx_1 = PyObject_GetAttr(__pyx_v_node, __pyx_n_flow_style); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1321; goto __pyx_L1;} |
|
7340 __pyx_2 = PyObject_IsTrue(__pyx_1); if (__pyx_2 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1321; goto __pyx_L1;} |
|
7341 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
7342 if (__pyx_2) { |
|
7343 |
|
7344 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1322 */ |
|
7345 __pyx_v_mapping_style = YAML_FLOW_MAPPING_STYLE; |
|
7346 goto __pyx_L31; |
|
7347 } |
|
7348 __pyx_L31:; |
|
7349 |
|
7350 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1323 */ |
|
7351 __pyx_3 = (yaml_mapping_start_event_initialize((&__pyx_v_event),__pyx_v_anchor,__pyx_v_tag,__pyx_v_implicit,__pyx_v_mapping_style) == 0); |
|
7352 if (__pyx_3) { |
|
7353 |
|
7354 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1325 */ |
|
7355 __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_MemoryError); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1325; goto __pyx_L1;} |
|
7356 __Pyx_Raise(__pyx_5, 0, 0); |
|
7357 Py_DECREF(__pyx_5); __pyx_5 = 0; |
|
7358 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1325; goto __pyx_L1;} |
|
7359 goto __pyx_L32; |
|
7360 } |
|
7361 __pyx_L32:; |
|
7362 |
|
7363 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1326 */ |
|
7364 __pyx_2 = yaml_emitter_emit((&__pyx_v_self->emitter),(&__pyx_v_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1326; goto __pyx_L1;} |
|
7365 __pyx_3 = (__pyx_2 == 0); |
|
7366 if (__pyx_3) { |
|
7367 |
|
7368 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1327 */ |
|
7369 __pyx_4 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_emitter_error(__pyx_v_self); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1327; goto __pyx_L1;} |
|
7370 Py_DECREF(__pyx_v_error); |
|
7371 __pyx_v_error = __pyx_4; |
|
7372 __pyx_4 = 0; |
|
7373 |
|
7374 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1328 */ |
|
7375 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
7376 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1328; goto __pyx_L1;} |
|
7377 goto __pyx_L33; |
|
7378 } |
|
7379 __pyx_L33:; |
|
7380 |
|
7381 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1329 */ |
|
7382 __pyx_6 = PyObject_GetAttr(__pyx_v_node, __pyx_n_value); if (!__pyx_6) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1329; goto __pyx_L1;} |
|
7383 __pyx_8 = PyObject_GetIter(__pyx_6); if (!__pyx_8) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1329; goto __pyx_L1;} |
|
7384 Py_DECREF(__pyx_6); __pyx_6 = 0; |
|
7385 for (;;) { |
|
7386 __pyx_L34:; |
|
7387 __pyx_7 = PyIter_Next(__pyx_8); |
|
7388 if (!__pyx_7) { |
|
7389 if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1329; goto __pyx_L1;} |
|
7390 break; |
|
7391 } |
|
7392 __pyx_1 = __Pyx_UnpackItem(__pyx_7, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1329; goto __pyx_L1;} |
|
7393 Py_DECREF(__pyx_v_item_key); |
|
7394 __pyx_v_item_key = __pyx_1; |
|
7395 __pyx_1 = 0; |
|
7396 __pyx_5 = __Pyx_UnpackItem(__pyx_7, 1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1329; goto __pyx_L1;} |
|
7397 Py_DECREF(__pyx_v_item_value); |
|
7398 __pyx_v_item_value = __pyx_5; |
|
7399 __pyx_5 = 0; |
|
7400 if (__Pyx_EndUnpack(__pyx_7, 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1329; goto __pyx_L1;} |
|
7401 Py_DECREF(__pyx_7); __pyx_7 = 0; |
|
7402 |
|
7403 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1330 */ |
|
7404 __pyx_2 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_serialize_node(__pyx_v_self,__pyx_v_item_key,__pyx_v_node,Py_None); if (__pyx_2 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1330; goto __pyx_L1;} |
|
7405 |
|
7406 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1331 */ |
|
7407 __pyx_3 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_serialize_node(__pyx_v_self,__pyx_v_item_value,__pyx_v_node,__pyx_v_item_key); if (__pyx_3 == 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1331; goto __pyx_L1;} |
|
7408 } |
|
7409 __pyx_L35:; |
|
7410 Py_DECREF(__pyx_8); __pyx_8 = 0; |
|
7411 |
|
7412 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1332 */ |
|
7413 yaml_mapping_end_event_initialize((&__pyx_v_event)); |
|
7414 |
|
7415 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1333 */ |
|
7416 __pyx_2 = yaml_emitter_emit((&__pyx_v_self->emitter),(&__pyx_v_event)); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1333; goto __pyx_L1;} |
|
7417 __pyx_3 = (__pyx_2 == 0); |
|
7418 if (__pyx_3) { |
|
7419 |
|
7420 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1334 */ |
|
7421 __pyx_4 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_emitter_error(__pyx_v_self); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1334; goto __pyx_L1;} |
|
7422 Py_DECREF(__pyx_v_error); |
|
7423 __pyx_v_error = __pyx_4; |
|
7424 __pyx_4 = 0; |
|
7425 |
|
7426 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1335 */ |
|
7427 __Pyx_Raise(__pyx_v_error, 0, 0); |
|
7428 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1335; goto __pyx_L1;} |
|
7429 goto __pyx_L36; |
|
7430 } |
|
7431 __pyx_L36:; |
|
7432 goto __pyx_L6; |
|
7433 } |
|
7434 __pyx_L6:; |
|
7435 } |
|
7436 __pyx_L3:; |
|
7437 |
|
7438 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1336 */ |
|
7439 __pyx_r = 1; |
|
7440 goto __pyx_L0; |
|
7441 |
|
7442 __pyx_r = 0; |
|
7443 goto __pyx_L0; |
|
7444 __pyx_L1:; |
|
7445 Py_XDECREF(__pyx_1); |
|
7446 Py_XDECREF(__pyx_4); |
|
7447 Py_XDECREF(__pyx_5); |
|
7448 Py_XDECREF(__pyx_6); |
|
7449 Py_XDECREF(__pyx_7); |
|
7450 Py_XDECREF(__pyx_8); |
|
7451 __Pyx_AddTraceback("_yaml.CEmitter._serialize_node"); |
|
7452 __pyx_r = 0; |
|
7453 __pyx_L0:; |
|
7454 Py_DECREF(__pyx_v_anchor_object); |
|
7455 Py_DECREF(__pyx_v_error); |
|
7456 Py_DECREF(__pyx_v_node_class); |
|
7457 Py_DECREF(__pyx_v_tag_object); |
|
7458 Py_DECREF(__pyx_v_value_object); |
|
7459 Py_DECREF(__pyx_v_style_object); |
|
7460 Py_DECREF(__pyx_v_item); |
|
7461 Py_DECREF(__pyx_v_item_key); |
|
7462 Py_DECREF(__pyx_v_item_value); |
|
7463 Py_DECREF(__pyx_v_self); |
|
7464 Py_DECREF(__pyx_v_node); |
|
7465 Py_DECREF(__pyx_v_parent); |
|
7466 Py_DECREF(__pyx_v_index); |
|
7467 return __pyx_r; |
|
7468 } |
|
7469 |
|
7470 static PyObject *__pyx_n_write; |
|
7471 |
|
7472 static int __pyx_f_5_yaml_output_handler(void (*__pyx_v_data),char (*__pyx_v_buffer),int __pyx_v_size) { |
|
7473 struct __pyx_obj_5_yaml_CEmitter *__pyx_v_emitter; |
|
7474 PyObject *__pyx_v_value; |
|
7475 int __pyx_r; |
|
7476 PyObject *__pyx_1 = 0; |
|
7477 PyObject *__pyx_2 = 0; |
|
7478 PyObject *__pyx_3 = 0; |
|
7479 __pyx_v_emitter = ((struct __pyx_obj_5_yaml_CEmitter *)Py_None); Py_INCREF(Py_None); |
|
7480 __pyx_v_value = Py_None; Py_INCREF(Py_None); |
|
7481 |
|
7482 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1340 */ |
|
7483 __pyx_1 = (PyObject *)__pyx_v_data; |
|
7484 Py_INCREF(__pyx_1); |
|
7485 Py_DECREF(((PyObject *)__pyx_v_emitter)); |
|
7486 __pyx_v_emitter = ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_1); |
|
7487 __pyx_1 = 0; |
|
7488 |
|
7489 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1341 */ |
|
7490 __pyx_1 = PyString_FromStringAndSize(__pyx_v_buffer,__pyx_v_size); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1341; goto __pyx_L1;} |
|
7491 Py_DECREF(__pyx_v_value); |
|
7492 __pyx_v_value = __pyx_1; |
|
7493 __pyx_1 = 0; |
|
7494 |
|
7495 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1342 */ |
|
7496 __pyx_1 = PyObject_GetAttr(__pyx_v_emitter->stream, __pyx_n_write); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1342; goto __pyx_L1;} |
|
7497 __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1342; goto __pyx_L1;} |
|
7498 Py_INCREF(__pyx_v_value); |
|
7499 PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_value); |
|
7500 __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1342; goto __pyx_L1;} |
|
7501 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
7502 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
7503 Py_DECREF(__pyx_3); __pyx_3 = 0; |
|
7504 |
|
7505 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1343 */ |
|
7506 __pyx_r = 1; |
|
7507 goto __pyx_L0; |
|
7508 |
|
7509 __pyx_r = 0; |
|
7510 goto __pyx_L0; |
|
7511 __pyx_L1:; |
|
7512 Py_XDECREF(__pyx_1); |
|
7513 Py_XDECREF(__pyx_2); |
|
7514 Py_XDECREF(__pyx_3); |
|
7515 __Pyx_AddTraceback("_yaml.output_handler"); |
|
7516 __pyx_r = 0; |
|
7517 __pyx_L0:; |
|
7518 Py_DECREF(__pyx_v_emitter); |
|
7519 Py_DECREF(__pyx_v_value); |
|
7520 return __pyx_r; |
|
7521 } |
|
7522 |
|
7523 static __Pyx_InternTabEntry __pyx_intern_tab[] = { |
|
7524 {&__pyx_n_AliasEvent, "AliasEvent"}, |
|
7525 {&__pyx_n_AliasToken, "AliasToken"}, |
|
7526 {&__pyx_n_AnchorToken, "AnchorToken"}, |
|
7527 {&__pyx_n_AttributeError, "AttributeError"}, |
|
7528 {&__pyx_n_BlockEndToken, "BlockEndToken"}, |
|
7529 {&__pyx_n_BlockEntryToken, "BlockEntryToken"}, |
|
7530 {&__pyx_n_BlockMappingStartToken, "BlockMappingStartToken"}, |
|
7531 {&__pyx_n_BlockSequenceStartToken, "BlockSequenceStartToken"}, |
|
7532 {&__pyx_n_ComposerError, "ComposerError"}, |
|
7533 {&__pyx_n_ConstructorError, "ConstructorError"}, |
|
7534 {&__pyx_n_DirectiveToken, "DirectiveToken"}, |
|
7535 {&__pyx_n_DocumentEndEvent, "DocumentEndEvent"}, |
|
7536 {&__pyx_n_DocumentEndToken, "DocumentEndToken"}, |
|
7537 {&__pyx_n_DocumentStartEvent, "DocumentStartEvent"}, |
|
7538 {&__pyx_n_DocumentStartToken, "DocumentStartToken"}, |
|
7539 {&__pyx_n_EmitterError, "EmitterError"}, |
|
7540 {&__pyx_n_False, "False"}, |
|
7541 {&__pyx_n_FlowEntryToken, "FlowEntryToken"}, |
|
7542 {&__pyx_n_FlowMappingEndToken, "FlowMappingEndToken"}, |
|
7543 {&__pyx_n_FlowMappingStartToken, "FlowMappingStartToken"}, |
|
7544 {&__pyx_n_FlowSequenceEndToken, "FlowSequenceEndToken"}, |
|
7545 {&__pyx_n_FlowSequenceStartToken, "FlowSequenceStartToken"}, |
|
7546 {&__pyx_n_KeyToken, "KeyToken"}, |
|
7547 {&__pyx_n_MappingEndEvent, "MappingEndEvent"}, |
|
7548 {&__pyx_n_MappingNode, "MappingNode"}, |
|
7549 {&__pyx_n_MappingStartEvent, "MappingStartEvent"}, |
|
7550 {&__pyx_n_MemoryError, "MemoryError"}, |
|
7551 {&__pyx_n_ParserError, "ParserError"}, |
|
7552 {&__pyx_n_ReaderError, "ReaderError"}, |
|
7553 {&__pyx_n_RepresenterError, "RepresenterError"}, |
|
7554 {&__pyx_n_ScalarEvent, "ScalarEvent"}, |
|
7555 {&__pyx_n_ScalarNode, "ScalarNode"}, |
|
7556 {&__pyx_n_ScalarToken, "ScalarToken"}, |
|
7557 {&__pyx_n_ScannerError, "ScannerError"}, |
|
7558 {&__pyx_n_SequenceEndEvent, "SequenceEndEvent"}, |
|
7559 {&__pyx_n_SequenceNode, "SequenceNode"}, |
|
7560 {&__pyx_n_SequenceStartEvent, "SequenceStartEvent"}, |
|
7561 {&__pyx_n_SerializerError, "SerializerError"}, |
|
7562 {&__pyx_n_StreamEndEvent, "StreamEndEvent"}, |
|
7563 {&__pyx_n_StreamEndToken, "StreamEndToken"}, |
|
7564 {&__pyx_n_StreamStartEvent, "StreamStartEvent"}, |
|
7565 {&__pyx_n_StreamStartToken, "StreamStartToken"}, |
|
7566 {&__pyx_n_TAG, "TAG"}, |
|
7567 {&__pyx_n_TagToken, "TagToken"}, |
|
7568 {&__pyx_n_True, "True"}, |
|
7569 {&__pyx_n_TypeError, "TypeError"}, |
|
7570 {&__pyx_n_ValueError, "ValueError"}, |
|
7571 {&__pyx_n_ValueToken, "ValueToken"}, |
|
7572 {&__pyx_n_YAML, "YAML"}, |
|
7573 {&__pyx_n_YAMLError, "YAMLError"}, |
|
7574 {&__pyx_n___class__, "__class__"}, |
|
7575 {&__pyx_n_anchor, "anchor"}, |
|
7576 {&__pyx_n_append, "append"}, |
|
7577 {&__pyx_n_ascend_resolver, "ascend_resolver"}, |
|
7578 {&__pyx_n_composer, "composer"}, |
|
7579 {&__pyx_n_constructor, "constructor"}, |
|
7580 {&__pyx_n_descend_resolver, "descend_resolver"}, |
|
7581 {&__pyx_n_emitter, "emitter"}, |
|
7582 {&__pyx_n_encoding, "encoding"}, |
|
7583 {&__pyx_n_end_mark, "end_mark"}, |
|
7584 {&__pyx_n_error, "error"}, |
|
7585 {&__pyx_n_events, "events"}, |
|
7586 {&__pyx_n_explicit, "explicit"}, |
|
7587 {&__pyx_n_flow_style, "flow_style"}, |
|
7588 {&__pyx_n_get_version, "get_version"}, |
|
7589 {&__pyx_n_get_version_string, "get_version_string"}, |
|
7590 {&__pyx_n_hasattr, "hasattr"}, |
|
7591 {&__pyx_n_implicit, "implicit"}, |
|
7592 {&__pyx_n_len, "len"}, |
|
7593 {&__pyx_n_name, "name"}, |
|
7594 {&__pyx_n_nodes, "nodes"}, |
|
7595 {&__pyx_n_parser, "parser"}, |
|
7596 {&__pyx_n_read, "read"}, |
|
7597 {&__pyx_n_reader, "reader"}, |
|
7598 {&__pyx_n_representer, "representer"}, |
|
7599 {&__pyx_n_resolve, "resolve"}, |
|
7600 {&__pyx_n_scanner, "scanner"}, |
|
7601 {&__pyx_n_serializer, "serializer"}, |
|
7602 {&__pyx_n_start_mark, "start_mark"}, |
|
7603 {&__pyx_n_style, "style"}, |
|
7604 {&__pyx_n_tag, "tag"}, |
|
7605 {&__pyx_n_tags, "tags"}, |
|
7606 {&__pyx_n_tokens, "tokens"}, |
|
7607 {&__pyx_n_value, "value"}, |
|
7608 {&__pyx_n_version, "version"}, |
|
7609 {&__pyx_n_write, "write"}, |
|
7610 {&__pyx_n_yaml, "yaml"}, |
|
7611 {0, 0} |
|
7612 }; |
|
7613 |
|
7614 static __Pyx_StringTabEntry __pyx_string_tab[] = { |
|
7615 {&__pyx_k12p, __pyx_k12, sizeof(__pyx_k12)}, |
|
7616 {&__pyx_k14p, __pyx_k14, sizeof(__pyx_k14)}, |
|
7617 {&__pyx_k15p, __pyx_k15, sizeof(__pyx_k15)}, |
|
7618 {&__pyx_k16p, __pyx_k16, sizeof(__pyx_k16)}, |
|
7619 {&__pyx_k17p, __pyx_k17, sizeof(__pyx_k17)}, |
|
7620 {&__pyx_k18p, __pyx_k18, sizeof(__pyx_k18)}, |
|
7621 {&__pyx_k19p, __pyx_k19, sizeof(__pyx_k19)}, |
|
7622 {&__pyx_k20p, __pyx_k20, sizeof(__pyx_k20)}, |
|
7623 {&__pyx_k21p, __pyx_k21, sizeof(__pyx_k21)}, |
|
7624 {&__pyx_k22p, __pyx_k22, sizeof(__pyx_k22)}, |
|
7625 {&__pyx_k30p, __pyx_k30, sizeof(__pyx_k30)}, |
|
7626 {&__pyx_k31p, __pyx_k31, sizeof(__pyx_k31)}, |
|
7627 {&__pyx_k32p, __pyx_k32, sizeof(__pyx_k32)}, |
|
7628 {&__pyx_k33p, __pyx_k33, sizeof(__pyx_k33)}, |
|
7629 {&__pyx_k34p, __pyx_k34, sizeof(__pyx_k34)}, |
|
7630 {&__pyx_k35p, __pyx_k35, sizeof(__pyx_k35)}, |
|
7631 {&__pyx_k36p, __pyx_k36, sizeof(__pyx_k36)}, |
|
7632 {&__pyx_k37p, __pyx_k37, sizeof(__pyx_k37)}, |
|
7633 {&__pyx_k38p, __pyx_k38, sizeof(__pyx_k38)}, |
|
7634 {&__pyx_k45p, __pyx_k45, sizeof(__pyx_k45)}, |
|
7635 {&__pyx_k46p, __pyx_k46, sizeof(__pyx_k46)}, |
|
7636 {&__pyx_k47p, __pyx_k47, sizeof(__pyx_k47)}, |
|
7637 {&__pyx_k48p, __pyx_k48, sizeof(__pyx_k48)}, |
|
7638 {&__pyx_k49p, __pyx_k49, sizeof(__pyx_k49)}, |
|
7639 {&__pyx_k54p, __pyx_k54, sizeof(__pyx_k54)}, |
|
7640 {&__pyx_k56p, __pyx_k56, sizeof(__pyx_k56)}, |
|
7641 {&__pyx_k60p, __pyx_k60, sizeof(__pyx_k60)}, |
|
7642 {&__pyx_k61p, __pyx_k61, sizeof(__pyx_k61)}, |
|
7643 {&__pyx_k64p, __pyx_k64, sizeof(__pyx_k64)}, |
|
7644 {&__pyx_k65p, __pyx_k65, sizeof(__pyx_k65)}, |
|
7645 {&__pyx_k66p, __pyx_k66, sizeof(__pyx_k66)}, |
|
7646 {&__pyx_k67p, __pyx_k67, sizeof(__pyx_k67)}, |
|
7647 {&__pyx_k68p, __pyx_k68, sizeof(__pyx_k68)}, |
|
7648 {&__pyx_k71p, __pyx_k71, sizeof(__pyx_k71)}, |
|
7649 {&__pyx_k72p, __pyx_k72, sizeof(__pyx_k72)}, |
|
7650 {&__pyx_k73p, __pyx_k73, sizeof(__pyx_k73)}, |
|
7651 {&__pyx_k74p, __pyx_k74, sizeof(__pyx_k74)}, |
|
7652 {&__pyx_k75p, __pyx_k75, sizeof(__pyx_k75)}, |
|
7653 {&__pyx_k76p, __pyx_k76, sizeof(__pyx_k76)}, |
|
7654 {&__pyx_k77p, __pyx_k77, sizeof(__pyx_k77)}, |
|
7655 {&__pyx_k78p, __pyx_k78, sizeof(__pyx_k78)}, |
|
7656 {&__pyx_k79p, __pyx_k79, sizeof(__pyx_k79)}, |
|
7657 {&__pyx_k80p, __pyx_k80, sizeof(__pyx_k80)}, |
|
7658 {&__pyx_k81p, __pyx_k81, sizeof(__pyx_k81)}, |
|
7659 {&__pyx_k82p, __pyx_k82, sizeof(__pyx_k82)}, |
|
7660 {&__pyx_k83p, __pyx_k83, sizeof(__pyx_k83)}, |
|
7661 {&__pyx_k84p, __pyx_k84, sizeof(__pyx_k84)}, |
|
7662 {&__pyx_k85p, __pyx_k85, sizeof(__pyx_k85)}, |
|
7663 {&__pyx_k86p, __pyx_k86, sizeof(__pyx_k86)}, |
|
7664 {&__pyx_k87p, __pyx_k87, sizeof(__pyx_k87)}, |
|
7665 {&__pyx_k88p, __pyx_k88, sizeof(__pyx_k88)}, |
|
7666 {&__pyx_k89p, __pyx_k89, sizeof(__pyx_k89)}, |
|
7667 {&__pyx_k90p, __pyx_k90, sizeof(__pyx_k90)}, |
|
7668 {&__pyx_k91p, __pyx_k91, sizeof(__pyx_k91)}, |
|
7669 {&__pyx_k92p, __pyx_k92, sizeof(__pyx_k92)}, |
|
7670 {&__pyx_k93p, __pyx_k93, sizeof(__pyx_k93)}, |
|
7671 {&__pyx_k94p, __pyx_k94, sizeof(__pyx_k94)}, |
|
7672 {&__pyx_k95p, __pyx_k95, sizeof(__pyx_k95)}, |
|
7673 {&__pyx_k96p, __pyx_k96, sizeof(__pyx_k96)}, |
|
7674 {&__pyx_k97p, __pyx_k97, sizeof(__pyx_k97)}, |
|
7675 {&__pyx_k98p, __pyx_k98, sizeof(__pyx_k98)}, |
|
7676 {&__pyx_k99p, __pyx_k99, sizeof(__pyx_k99)}, |
|
7677 {&__pyx_k100p, __pyx_k100, sizeof(__pyx_k100)}, |
|
7678 {&__pyx_k101p, __pyx_k101, sizeof(__pyx_k101)}, |
|
7679 {&__pyx_k102p, __pyx_k102, sizeof(__pyx_k102)}, |
|
7680 {&__pyx_k103p, __pyx_k103, sizeof(__pyx_k103)}, |
|
7681 {&__pyx_k104p, __pyx_k104, sizeof(__pyx_k104)}, |
|
7682 {&__pyx_k105p, __pyx_k105, sizeof(__pyx_k105)}, |
|
7683 {&__pyx_k106p, __pyx_k106, sizeof(__pyx_k106)}, |
|
7684 {&__pyx_k107p, __pyx_k107, sizeof(__pyx_k107)}, |
|
7685 {&__pyx_k108p, __pyx_k108, sizeof(__pyx_k108)}, |
|
7686 {&__pyx_k109p, __pyx_k109, sizeof(__pyx_k109)}, |
|
7687 {&__pyx_k110p, __pyx_k110, sizeof(__pyx_k110)}, |
|
7688 {&__pyx_k111p, __pyx_k111, sizeof(__pyx_k111)}, |
|
7689 {&__pyx_k112p, __pyx_k112, sizeof(__pyx_k112)}, |
|
7690 {&__pyx_k113p, __pyx_k113, sizeof(__pyx_k113)}, |
|
7691 {0, 0, 0} |
|
7692 }; |
|
7693 |
|
7694 static PyObject *__pyx_tp_new_5_yaml_Mark(PyTypeObject *t, PyObject *a, PyObject *k) { |
|
7695 PyObject *o = (*t->tp_alloc)(t, 0); |
|
7696 struct __pyx_obj_5_yaml_Mark *p = (struct __pyx_obj_5_yaml_Mark *)o; |
|
7697 p->name = Py_None; Py_INCREF(Py_None); |
|
7698 p->buffer = Py_None; Py_INCREF(Py_None); |
|
7699 p->pointer = Py_None; Py_INCREF(Py_None); |
|
7700 return o; |
|
7701 } |
|
7702 |
|
7703 static void __pyx_tp_dealloc_5_yaml_Mark(PyObject *o) { |
|
7704 struct __pyx_obj_5_yaml_Mark *p = (struct __pyx_obj_5_yaml_Mark *)o; |
|
7705 Py_XDECREF(p->name); |
|
7706 Py_XDECREF(p->buffer); |
|
7707 Py_XDECREF(p->pointer); |
|
7708 (*o->ob_type->tp_free)(o); |
|
7709 } |
|
7710 |
|
7711 static int __pyx_tp_traverse_5_yaml_Mark(PyObject *o, visitproc v, void *a) { |
|
7712 int e; |
|
7713 struct __pyx_obj_5_yaml_Mark *p = (struct __pyx_obj_5_yaml_Mark *)o; |
|
7714 if (p->name) { |
|
7715 e = (*v)(p->name, a); if (e) return e; |
|
7716 } |
|
7717 if (p->buffer) { |
|
7718 e = (*v)(p->buffer, a); if (e) return e; |
|
7719 } |
|
7720 if (p->pointer) { |
|
7721 e = (*v)(p->pointer, a); if (e) return e; |
|
7722 } |
|
7723 return 0; |
|
7724 } |
|
7725 |
|
7726 static int __pyx_tp_clear_5_yaml_Mark(PyObject *o) { |
|
7727 struct __pyx_obj_5_yaml_Mark *p = (struct __pyx_obj_5_yaml_Mark *)o; |
|
7728 Py_XDECREF(p->name); |
|
7729 p->name = Py_None; Py_INCREF(Py_None); |
|
7730 Py_XDECREF(p->buffer); |
|
7731 p->buffer = Py_None; Py_INCREF(Py_None); |
|
7732 Py_XDECREF(p->pointer); |
|
7733 p->pointer = Py_None; Py_INCREF(Py_None); |
|
7734 return 0; |
|
7735 } |
|
7736 |
|
7737 static struct PyMethodDef __pyx_methods_5_yaml_Mark[] = { |
|
7738 {"get_snippet", (PyCFunction)__pyx_f_5_yaml_4Mark_get_snippet, METH_VARARGS|METH_KEYWORDS, 0}, |
|
7739 {0, 0, 0, 0} |
|
7740 }; |
|
7741 |
|
7742 static struct PyMemberDef __pyx_members_5_yaml_Mark[] = { |
|
7743 {"name", T_OBJECT, offsetof(struct __pyx_obj_5_yaml_Mark, name), READONLY, 0}, |
|
7744 {"index", T_INT, offsetof(struct __pyx_obj_5_yaml_Mark, index), READONLY, 0}, |
|
7745 {"line", T_INT, offsetof(struct __pyx_obj_5_yaml_Mark, line), READONLY, 0}, |
|
7746 {"column", T_INT, offsetof(struct __pyx_obj_5_yaml_Mark, column), READONLY, 0}, |
|
7747 {"buffer", T_OBJECT, offsetof(struct __pyx_obj_5_yaml_Mark, buffer), READONLY, 0}, |
|
7748 {"pointer", T_OBJECT, offsetof(struct __pyx_obj_5_yaml_Mark, pointer), READONLY, 0}, |
|
7749 {0, 0, 0, 0, 0} |
|
7750 }; |
|
7751 |
|
7752 static PyNumberMethods __pyx_tp_as_number_Mark = { |
|
7753 0, /*nb_add*/ |
|
7754 0, /*nb_subtract*/ |
|
7755 0, /*nb_multiply*/ |
|
7756 0, /*nb_divide*/ |
|
7757 0, /*nb_remainder*/ |
|
7758 0, /*nb_divmod*/ |
|
7759 0, /*nb_power*/ |
|
7760 0, /*nb_negative*/ |
|
7761 0, /*nb_positive*/ |
|
7762 0, /*nb_absolute*/ |
|
7763 0, /*nb_nonzero*/ |
|
7764 0, /*nb_invert*/ |
|
7765 0, /*nb_lshift*/ |
|
7766 0, /*nb_rshift*/ |
|
7767 0, /*nb_and*/ |
|
7768 0, /*nb_xor*/ |
|
7769 0, /*nb_or*/ |
|
7770 0, /*nb_coerce*/ |
|
7771 0, /*nb_int*/ |
|
7772 0, /*nb_long*/ |
|
7773 0, /*nb_float*/ |
|
7774 0, /*nb_oct*/ |
|
7775 0, /*nb_hex*/ |
|
7776 0, /*nb_inplace_add*/ |
|
7777 0, /*nb_inplace_subtract*/ |
|
7778 0, /*nb_inplace_multiply*/ |
|
7779 0, /*nb_inplace_divide*/ |
|
7780 0, /*nb_inplace_remainder*/ |
|
7781 0, /*nb_inplace_power*/ |
|
7782 0, /*nb_inplace_lshift*/ |
|
7783 0, /*nb_inplace_rshift*/ |
|
7784 0, /*nb_inplace_and*/ |
|
7785 0, /*nb_inplace_xor*/ |
|
7786 0, /*nb_inplace_or*/ |
|
7787 0, /*nb_floor_divide*/ |
|
7788 0, /*nb_true_divide*/ |
|
7789 0, /*nb_inplace_floor_divide*/ |
|
7790 0, /*nb_inplace_true_divide*/ |
|
7791 }; |
|
7792 |
|
7793 static PySequenceMethods __pyx_tp_as_sequence_Mark = { |
|
7794 0, /*sq_length*/ |
|
7795 0, /*sq_concat*/ |
|
7796 0, /*sq_repeat*/ |
|
7797 0, /*sq_item*/ |
|
7798 0, /*sq_slice*/ |
|
7799 0, /*sq_ass_item*/ |
|
7800 0, /*sq_ass_slice*/ |
|
7801 0, /*sq_contains*/ |
|
7802 0, /*sq_inplace_concat*/ |
|
7803 0, /*sq_inplace_repeat*/ |
|
7804 }; |
|
7805 |
|
7806 static PyMappingMethods __pyx_tp_as_mapping_Mark = { |
|
7807 0, /*mp_length*/ |
|
7808 0, /*mp_subscript*/ |
|
7809 0, /*mp_ass_subscript*/ |
|
7810 }; |
|
7811 |
|
7812 static PyBufferProcs __pyx_tp_as_buffer_Mark = { |
|
7813 0, /*bf_getreadbuffer*/ |
|
7814 0, /*bf_getwritebuffer*/ |
|
7815 0, /*bf_getsegcount*/ |
|
7816 0, /*bf_getcharbuffer*/ |
|
7817 }; |
|
7818 |
|
7819 PyTypeObject __pyx_type_5_yaml_Mark = { |
|
7820 PyObject_HEAD_INIT(0) |
|
7821 0, /*ob_size*/ |
|
7822 "_yaml.Mark", /*tp_name*/ |
|
7823 sizeof(struct __pyx_obj_5_yaml_Mark), /*tp_basicsize*/ |
|
7824 0, /*tp_itemsize*/ |
|
7825 __pyx_tp_dealloc_5_yaml_Mark, /*tp_dealloc*/ |
|
7826 0, /*tp_print*/ |
|
7827 0, /*tp_getattr*/ |
|
7828 0, /*tp_setattr*/ |
|
7829 0, /*tp_compare*/ |
|
7830 0, /*tp_repr*/ |
|
7831 &__pyx_tp_as_number_Mark, /*tp_as_number*/ |
|
7832 &__pyx_tp_as_sequence_Mark, /*tp_as_sequence*/ |
|
7833 &__pyx_tp_as_mapping_Mark, /*tp_as_mapping*/ |
|
7834 0, /*tp_hash*/ |
|
7835 0, /*tp_call*/ |
|
7836 __pyx_f_5_yaml_4Mark___str__, /*tp_str*/ |
|
7837 0, /*tp_getattro*/ |
|
7838 0, /*tp_setattro*/ |
|
7839 &__pyx_tp_as_buffer_Mark, /*tp_as_buffer*/ |
|
7840 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ |
|
7841 0, /*tp_doc*/ |
|
7842 __pyx_tp_traverse_5_yaml_Mark, /*tp_traverse*/ |
|
7843 __pyx_tp_clear_5_yaml_Mark, /*tp_clear*/ |
|
7844 0, /*tp_richcompare*/ |
|
7845 0, /*tp_weaklistoffset*/ |
|
7846 0, /*tp_iter*/ |
|
7847 0, /*tp_iternext*/ |
|
7848 __pyx_methods_5_yaml_Mark, /*tp_methods*/ |
|
7849 __pyx_members_5_yaml_Mark, /*tp_members*/ |
|
7850 0, /*tp_getset*/ |
|
7851 0, /*tp_base*/ |
|
7852 0, /*tp_dict*/ |
|
7853 0, /*tp_descr_get*/ |
|
7854 0, /*tp_descr_set*/ |
|
7855 0, /*tp_dictoffset*/ |
|
7856 __pyx_f_5_yaml_4Mark___init__, /*tp_init*/ |
|
7857 0, /*tp_alloc*/ |
|
7858 __pyx_tp_new_5_yaml_Mark, /*tp_new*/ |
|
7859 0, /*tp_free*/ |
|
7860 0, /*tp_is_gc*/ |
|
7861 0, /*tp_bases*/ |
|
7862 0, /*tp_mro*/ |
|
7863 0, /*tp_cache*/ |
|
7864 0, /*tp_subclasses*/ |
|
7865 0, /*tp_weaklist*/ |
|
7866 }; |
|
7867 static struct __pyx_vtabstruct_5_yaml_CParser __pyx_vtable_5_yaml_CParser; |
|
7868 |
|
7869 static PyObject *__pyx_tp_new_5_yaml_CParser(PyTypeObject *t, PyObject *a, PyObject *k) { |
|
7870 PyObject *o = (*t->tp_alloc)(t, 0); |
|
7871 struct __pyx_obj_5_yaml_CParser *p = (struct __pyx_obj_5_yaml_CParser *)o; |
|
7872 *(struct __pyx_vtabstruct_5_yaml_CParser **)&p->__pyx_vtab = __pyx_vtabptr_5_yaml_CParser; |
|
7873 p->stream = Py_None; Py_INCREF(Py_None); |
|
7874 p->stream_name = Py_None; Py_INCREF(Py_None); |
|
7875 p->current_token = Py_None; Py_INCREF(Py_None); |
|
7876 p->current_event = Py_None; Py_INCREF(Py_None); |
|
7877 p->anchors = Py_None; Py_INCREF(Py_None); |
|
7878 return o; |
|
7879 } |
|
7880 |
|
7881 static void __pyx_tp_dealloc_5_yaml_CParser(PyObject *o) { |
|
7882 struct __pyx_obj_5_yaml_CParser *p = (struct __pyx_obj_5_yaml_CParser *)o; |
|
7883 { |
|
7884 PyObject *etype, *eval, *etb; |
|
7885 PyErr_Fetch(&etype, &eval, &etb); |
|
7886 ++o->ob_refcnt; |
|
7887 __pyx_f_5_yaml_7CParser___dealloc__(o); |
|
7888 if (PyErr_Occurred()) PyErr_WriteUnraisable(o); |
|
7889 --o->ob_refcnt; |
|
7890 PyErr_Restore(etype, eval, etb); |
|
7891 } |
|
7892 Py_XDECREF(p->stream); |
|
7893 Py_XDECREF(p->stream_name); |
|
7894 Py_XDECREF(p->current_token); |
|
7895 Py_XDECREF(p->current_event); |
|
7896 Py_XDECREF(p->anchors); |
|
7897 (*o->ob_type->tp_free)(o); |
|
7898 } |
|
7899 |
|
7900 static int __pyx_tp_traverse_5_yaml_CParser(PyObject *o, visitproc v, void *a) { |
|
7901 int e; |
|
7902 struct __pyx_obj_5_yaml_CParser *p = (struct __pyx_obj_5_yaml_CParser *)o; |
|
7903 if (p->stream) { |
|
7904 e = (*v)(p->stream, a); if (e) return e; |
|
7905 } |
|
7906 if (p->stream_name) { |
|
7907 e = (*v)(p->stream_name, a); if (e) return e; |
|
7908 } |
|
7909 if (p->current_token) { |
|
7910 e = (*v)(p->current_token, a); if (e) return e; |
|
7911 } |
|
7912 if (p->current_event) { |
|
7913 e = (*v)(p->current_event, a); if (e) return e; |
|
7914 } |
|
7915 if (p->anchors) { |
|
7916 e = (*v)(p->anchors, a); if (e) return e; |
|
7917 } |
|
7918 return 0; |
|
7919 } |
|
7920 |
|
7921 static int __pyx_tp_clear_5_yaml_CParser(PyObject *o) { |
|
7922 struct __pyx_obj_5_yaml_CParser *p = (struct __pyx_obj_5_yaml_CParser *)o; |
|
7923 Py_XDECREF(p->stream); |
|
7924 p->stream = Py_None; Py_INCREF(Py_None); |
|
7925 Py_XDECREF(p->stream_name); |
|
7926 p->stream_name = Py_None; Py_INCREF(Py_None); |
|
7927 Py_XDECREF(p->current_token); |
|
7928 p->current_token = Py_None; Py_INCREF(Py_None); |
|
7929 Py_XDECREF(p->current_event); |
|
7930 p->current_event = Py_None; Py_INCREF(Py_None); |
|
7931 Py_XDECREF(p->anchors); |
|
7932 p->anchors = Py_None; Py_INCREF(Py_None); |
|
7933 return 0; |
|
7934 } |
|
7935 |
|
7936 static struct PyMethodDef __pyx_methods_5_yaml_CParser[] = { |
|
7937 {"raw_scan", (PyCFunction)__pyx_f_5_yaml_7CParser_raw_scan, METH_VARARGS|METH_KEYWORDS, 0}, |
|
7938 {"get_token", (PyCFunction)__pyx_f_5_yaml_7CParser_get_token, METH_VARARGS|METH_KEYWORDS, 0}, |
|
7939 {"peek_token", (PyCFunction)__pyx_f_5_yaml_7CParser_peek_token, METH_VARARGS|METH_KEYWORDS, 0}, |
|
7940 {"check_token", (PyCFunction)__pyx_f_5_yaml_7CParser_check_token, METH_VARARGS|METH_KEYWORDS, 0}, |
|
7941 {"raw_parse", (PyCFunction)__pyx_f_5_yaml_7CParser_raw_parse, METH_VARARGS|METH_KEYWORDS, 0}, |
|
7942 {"get_event", (PyCFunction)__pyx_f_5_yaml_7CParser_get_event, METH_VARARGS|METH_KEYWORDS, 0}, |
|
7943 {"peek_event", (PyCFunction)__pyx_f_5_yaml_7CParser_peek_event, METH_VARARGS|METH_KEYWORDS, 0}, |
|
7944 {"check_event", (PyCFunction)__pyx_f_5_yaml_7CParser_check_event, METH_VARARGS|METH_KEYWORDS, 0}, |
|
7945 {"check_node", (PyCFunction)__pyx_f_5_yaml_7CParser_check_node, METH_VARARGS|METH_KEYWORDS, 0}, |
|
7946 {"get_node", (PyCFunction)__pyx_f_5_yaml_7CParser_get_node, METH_VARARGS|METH_KEYWORDS, 0}, |
|
7947 {0, 0, 0, 0} |
|
7948 }; |
|
7949 |
|
7950 static PyNumberMethods __pyx_tp_as_number_CParser = { |
|
7951 0, /*nb_add*/ |
|
7952 0, /*nb_subtract*/ |
|
7953 0, /*nb_multiply*/ |
|
7954 0, /*nb_divide*/ |
|
7955 0, /*nb_remainder*/ |
|
7956 0, /*nb_divmod*/ |
|
7957 0, /*nb_power*/ |
|
7958 0, /*nb_negative*/ |
|
7959 0, /*nb_positive*/ |
|
7960 0, /*nb_absolute*/ |
|
7961 0, /*nb_nonzero*/ |
|
7962 0, /*nb_invert*/ |
|
7963 0, /*nb_lshift*/ |
|
7964 0, /*nb_rshift*/ |
|
7965 0, /*nb_and*/ |
|
7966 0, /*nb_xor*/ |
|
7967 0, /*nb_or*/ |
|
7968 0, /*nb_coerce*/ |
|
7969 0, /*nb_int*/ |
|
7970 0, /*nb_long*/ |
|
7971 0, /*nb_float*/ |
|
7972 0, /*nb_oct*/ |
|
7973 0, /*nb_hex*/ |
|
7974 0, /*nb_inplace_add*/ |
|
7975 0, /*nb_inplace_subtract*/ |
|
7976 0, /*nb_inplace_multiply*/ |
|
7977 0, /*nb_inplace_divide*/ |
|
7978 0, /*nb_inplace_remainder*/ |
|
7979 0, /*nb_inplace_power*/ |
|
7980 0, /*nb_inplace_lshift*/ |
|
7981 0, /*nb_inplace_rshift*/ |
|
7982 0, /*nb_inplace_and*/ |
|
7983 0, /*nb_inplace_xor*/ |
|
7984 0, /*nb_inplace_or*/ |
|
7985 0, /*nb_floor_divide*/ |
|
7986 0, /*nb_true_divide*/ |
|
7987 0, /*nb_inplace_floor_divide*/ |
|
7988 0, /*nb_inplace_true_divide*/ |
|
7989 }; |
|
7990 |
|
7991 static PySequenceMethods __pyx_tp_as_sequence_CParser = { |
|
7992 0, /*sq_length*/ |
|
7993 0, /*sq_concat*/ |
|
7994 0, /*sq_repeat*/ |
|
7995 0, /*sq_item*/ |
|
7996 0, /*sq_slice*/ |
|
7997 0, /*sq_ass_item*/ |
|
7998 0, /*sq_ass_slice*/ |
|
7999 0, /*sq_contains*/ |
|
8000 0, /*sq_inplace_concat*/ |
|
8001 0, /*sq_inplace_repeat*/ |
|
8002 }; |
|
8003 |
|
8004 static PyMappingMethods __pyx_tp_as_mapping_CParser = { |
|
8005 0, /*mp_length*/ |
|
8006 0, /*mp_subscript*/ |
|
8007 0, /*mp_ass_subscript*/ |
|
8008 }; |
|
8009 |
|
8010 static PyBufferProcs __pyx_tp_as_buffer_CParser = { |
|
8011 0, /*bf_getreadbuffer*/ |
|
8012 0, /*bf_getwritebuffer*/ |
|
8013 0, /*bf_getsegcount*/ |
|
8014 0, /*bf_getcharbuffer*/ |
|
8015 }; |
|
8016 |
|
8017 PyTypeObject __pyx_type_5_yaml_CParser = { |
|
8018 PyObject_HEAD_INIT(0) |
|
8019 0, /*ob_size*/ |
|
8020 "_yaml.CParser", /*tp_name*/ |
|
8021 sizeof(struct __pyx_obj_5_yaml_CParser), /*tp_basicsize*/ |
|
8022 0, /*tp_itemsize*/ |
|
8023 __pyx_tp_dealloc_5_yaml_CParser, /*tp_dealloc*/ |
|
8024 0, /*tp_print*/ |
|
8025 0, /*tp_getattr*/ |
|
8026 0, /*tp_setattr*/ |
|
8027 0, /*tp_compare*/ |
|
8028 0, /*tp_repr*/ |
|
8029 &__pyx_tp_as_number_CParser, /*tp_as_number*/ |
|
8030 &__pyx_tp_as_sequence_CParser, /*tp_as_sequence*/ |
|
8031 &__pyx_tp_as_mapping_CParser, /*tp_as_mapping*/ |
|
8032 0, /*tp_hash*/ |
|
8033 0, /*tp_call*/ |
|
8034 0, /*tp_str*/ |
|
8035 0, /*tp_getattro*/ |
|
8036 0, /*tp_setattro*/ |
|
8037 &__pyx_tp_as_buffer_CParser, /*tp_as_buffer*/ |
|
8038 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ |
|
8039 0, /*tp_doc*/ |
|
8040 __pyx_tp_traverse_5_yaml_CParser, /*tp_traverse*/ |
|
8041 __pyx_tp_clear_5_yaml_CParser, /*tp_clear*/ |
|
8042 0, /*tp_richcompare*/ |
|
8043 0, /*tp_weaklistoffset*/ |
|
8044 0, /*tp_iter*/ |
|
8045 0, /*tp_iternext*/ |
|
8046 __pyx_methods_5_yaml_CParser, /*tp_methods*/ |
|
8047 0, /*tp_members*/ |
|
8048 0, /*tp_getset*/ |
|
8049 0, /*tp_base*/ |
|
8050 0, /*tp_dict*/ |
|
8051 0, /*tp_descr_get*/ |
|
8052 0, /*tp_descr_set*/ |
|
8053 0, /*tp_dictoffset*/ |
|
8054 __pyx_f_5_yaml_7CParser___init__, /*tp_init*/ |
|
8055 0, /*tp_alloc*/ |
|
8056 __pyx_tp_new_5_yaml_CParser, /*tp_new*/ |
|
8057 0, /*tp_free*/ |
|
8058 0, /*tp_is_gc*/ |
|
8059 0, /*tp_bases*/ |
|
8060 0, /*tp_mro*/ |
|
8061 0, /*tp_cache*/ |
|
8062 0, /*tp_subclasses*/ |
|
8063 0, /*tp_weaklist*/ |
|
8064 }; |
|
8065 static struct __pyx_vtabstruct_5_yaml_CEmitter __pyx_vtable_5_yaml_CEmitter; |
|
8066 |
|
8067 static PyObject *__pyx_tp_new_5_yaml_CEmitter(PyTypeObject *t, PyObject *a, PyObject *k) { |
|
8068 PyObject *o = (*t->tp_alloc)(t, 0); |
|
8069 struct __pyx_obj_5_yaml_CEmitter *p = (struct __pyx_obj_5_yaml_CEmitter *)o; |
|
8070 *(struct __pyx_vtabstruct_5_yaml_CEmitter **)&p->__pyx_vtab = __pyx_vtabptr_5_yaml_CEmitter; |
|
8071 p->stream = Py_None; Py_INCREF(Py_None); |
|
8072 p->use_version = Py_None; Py_INCREF(Py_None); |
|
8073 p->use_tags = Py_None; Py_INCREF(Py_None); |
|
8074 p->serialized_nodes = Py_None; Py_INCREF(Py_None); |
|
8075 p->anchors = Py_None; Py_INCREF(Py_None); |
|
8076 return o; |
|
8077 } |
|
8078 |
|
8079 static void __pyx_tp_dealloc_5_yaml_CEmitter(PyObject *o) { |
|
8080 struct __pyx_obj_5_yaml_CEmitter *p = (struct __pyx_obj_5_yaml_CEmitter *)o; |
|
8081 { |
|
8082 PyObject *etype, *eval, *etb; |
|
8083 PyErr_Fetch(&etype, &eval, &etb); |
|
8084 ++o->ob_refcnt; |
|
8085 __pyx_f_5_yaml_8CEmitter___dealloc__(o); |
|
8086 if (PyErr_Occurred()) PyErr_WriteUnraisable(o); |
|
8087 --o->ob_refcnt; |
|
8088 PyErr_Restore(etype, eval, etb); |
|
8089 } |
|
8090 Py_XDECREF(p->stream); |
|
8091 Py_XDECREF(p->use_version); |
|
8092 Py_XDECREF(p->use_tags); |
|
8093 Py_XDECREF(p->serialized_nodes); |
|
8094 Py_XDECREF(p->anchors); |
|
8095 (*o->ob_type->tp_free)(o); |
|
8096 } |
|
8097 |
|
8098 static int __pyx_tp_traverse_5_yaml_CEmitter(PyObject *o, visitproc v, void *a) { |
|
8099 int e; |
|
8100 struct __pyx_obj_5_yaml_CEmitter *p = (struct __pyx_obj_5_yaml_CEmitter *)o; |
|
8101 if (p->stream) { |
|
8102 e = (*v)(p->stream, a); if (e) return e; |
|
8103 } |
|
8104 if (p->use_version) { |
|
8105 e = (*v)(p->use_version, a); if (e) return e; |
|
8106 } |
|
8107 if (p->use_tags) { |
|
8108 e = (*v)(p->use_tags, a); if (e) return e; |
|
8109 } |
|
8110 if (p->serialized_nodes) { |
|
8111 e = (*v)(p->serialized_nodes, a); if (e) return e; |
|
8112 } |
|
8113 if (p->anchors) { |
|
8114 e = (*v)(p->anchors, a); if (e) return e; |
|
8115 } |
|
8116 return 0; |
|
8117 } |
|
8118 |
|
8119 static int __pyx_tp_clear_5_yaml_CEmitter(PyObject *o) { |
|
8120 struct __pyx_obj_5_yaml_CEmitter *p = (struct __pyx_obj_5_yaml_CEmitter *)o; |
|
8121 Py_XDECREF(p->stream); |
|
8122 p->stream = Py_None; Py_INCREF(Py_None); |
|
8123 Py_XDECREF(p->use_version); |
|
8124 p->use_version = Py_None; Py_INCREF(Py_None); |
|
8125 Py_XDECREF(p->use_tags); |
|
8126 p->use_tags = Py_None; Py_INCREF(Py_None); |
|
8127 Py_XDECREF(p->serialized_nodes); |
|
8128 p->serialized_nodes = Py_None; Py_INCREF(Py_None); |
|
8129 Py_XDECREF(p->anchors); |
|
8130 p->anchors = Py_None; Py_INCREF(Py_None); |
|
8131 return 0; |
|
8132 } |
|
8133 |
|
8134 static struct PyMethodDef __pyx_methods_5_yaml_CEmitter[] = { |
|
8135 {"emit", (PyCFunction)__pyx_f_5_yaml_8CEmitter_emit, METH_VARARGS|METH_KEYWORDS, 0}, |
|
8136 {"open", (PyCFunction)__pyx_f_5_yaml_8CEmitter_open, METH_VARARGS|METH_KEYWORDS, 0}, |
|
8137 {"close", (PyCFunction)__pyx_f_5_yaml_8CEmitter_close, METH_VARARGS|METH_KEYWORDS, 0}, |
|
8138 {"serialize", (PyCFunction)__pyx_f_5_yaml_8CEmitter_serialize, METH_VARARGS|METH_KEYWORDS, 0}, |
|
8139 {0, 0, 0, 0} |
|
8140 }; |
|
8141 |
|
8142 static PyNumberMethods __pyx_tp_as_number_CEmitter = { |
|
8143 0, /*nb_add*/ |
|
8144 0, /*nb_subtract*/ |
|
8145 0, /*nb_multiply*/ |
|
8146 0, /*nb_divide*/ |
|
8147 0, /*nb_remainder*/ |
|
8148 0, /*nb_divmod*/ |
|
8149 0, /*nb_power*/ |
|
8150 0, /*nb_negative*/ |
|
8151 0, /*nb_positive*/ |
|
8152 0, /*nb_absolute*/ |
|
8153 0, /*nb_nonzero*/ |
|
8154 0, /*nb_invert*/ |
|
8155 0, /*nb_lshift*/ |
|
8156 0, /*nb_rshift*/ |
|
8157 0, /*nb_and*/ |
|
8158 0, /*nb_xor*/ |
|
8159 0, /*nb_or*/ |
|
8160 0, /*nb_coerce*/ |
|
8161 0, /*nb_int*/ |
|
8162 0, /*nb_long*/ |
|
8163 0, /*nb_float*/ |
|
8164 0, /*nb_oct*/ |
|
8165 0, /*nb_hex*/ |
|
8166 0, /*nb_inplace_add*/ |
|
8167 0, /*nb_inplace_subtract*/ |
|
8168 0, /*nb_inplace_multiply*/ |
|
8169 0, /*nb_inplace_divide*/ |
|
8170 0, /*nb_inplace_remainder*/ |
|
8171 0, /*nb_inplace_power*/ |
|
8172 0, /*nb_inplace_lshift*/ |
|
8173 0, /*nb_inplace_rshift*/ |
|
8174 0, /*nb_inplace_and*/ |
|
8175 0, /*nb_inplace_xor*/ |
|
8176 0, /*nb_inplace_or*/ |
|
8177 0, /*nb_floor_divide*/ |
|
8178 0, /*nb_true_divide*/ |
|
8179 0, /*nb_inplace_floor_divide*/ |
|
8180 0, /*nb_inplace_true_divide*/ |
|
8181 }; |
|
8182 |
|
8183 static PySequenceMethods __pyx_tp_as_sequence_CEmitter = { |
|
8184 0, /*sq_length*/ |
|
8185 0, /*sq_concat*/ |
|
8186 0, /*sq_repeat*/ |
|
8187 0, /*sq_item*/ |
|
8188 0, /*sq_slice*/ |
|
8189 0, /*sq_ass_item*/ |
|
8190 0, /*sq_ass_slice*/ |
|
8191 0, /*sq_contains*/ |
|
8192 0, /*sq_inplace_concat*/ |
|
8193 0, /*sq_inplace_repeat*/ |
|
8194 }; |
|
8195 |
|
8196 static PyMappingMethods __pyx_tp_as_mapping_CEmitter = { |
|
8197 0, /*mp_length*/ |
|
8198 0, /*mp_subscript*/ |
|
8199 0, /*mp_ass_subscript*/ |
|
8200 }; |
|
8201 |
|
8202 static PyBufferProcs __pyx_tp_as_buffer_CEmitter = { |
|
8203 0, /*bf_getreadbuffer*/ |
|
8204 0, /*bf_getwritebuffer*/ |
|
8205 0, /*bf_getsegcount*/ |
|
8206 0, /*bf_getcharbuffer*/ |
|
8207 }; |
|
8208 |
|
8209 PyTypeObject __pyx_type_5_yaml_CEmitter = { |
|
8210 PyObject_HEAD_INIT(0) |
|
8211 0, /*ob_size*/ |
|
8212 "_yaml.CEmitter", /*tp_name*/ |
|
8213 sizeof(struct __pyx_obj_5_yaml_CEmitter), /*tp_basicsize*/ |
|
8214 0, /*tp_itemsize*/ |
|
8215 __pyx_tp_dealloc_5_yaml_CEmitter, /*tp_dealloc*/ |
|
8216 0, /*tp_print*/ |
|
8217 0, /*tp_getattr*/ |
|
8218 0, /*tp_setattr*/ |
|
8219 0, /*tp_compare*/ |
|
8220 0, /*tp_repr*/ |
|
8221 &__pyx_tp_as_number_CEmitter, /*tp_as_number*/ |
|
8222 &__pyx_tp_as_sequence_CEmitter, /*tp_as_sequence*/ |
|
8223 &__pyx_tp_as_mapping_CEmitter, /*tp_as_mapping*/ |
|
8224 0, /*tp_hash*/ |
|
8225 0, /*tp_call*/ |
|
8226 0, /*tp_str*/ |
|
8227 0, /*tp_getattro*/ |
|
8228 0, /*tp_setattro*/ |
|
8229 &__pyx_tp_as_buffer_CEmitter, /*tp_as_buffer*/ |
|
8230 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ |
|
8231 0, /*tp_doc*/ |
|
8232 __pyx_tp_traverse_5_yaml_CEmitter, /*tp_traverse*/ |
|
8233 __pyx_tp_clear_5_yaml_CEmitter, /*tp_clear*/ |
|
8234 0, /*tp_richcompare*/ |
|
8235 0, /*tp_weaklistoffset*/ |
|
8236 0, /*tp_iter*/ |
|
8237 0, /*tp_iternext*/ |
|
8238 __pyx_methods_5_yaml_CEmitter, /*tp_methods*/ |
|
8239 0, /*tp_members*/ |
|
8240 0, /*tp_getset*/ |
|
8241 0, /*tp_base*/ |
|
8242 0, /*tp_dict*/ |
|
8243 0, /*tp_descr_get*/ |
|
8244 0, /*tp_descr_set*/ |
|
8245 0, /*tp_dictoffset*/ |
|
8246 __pyx_f_5_yaml_8CEmitter___init__, /*tp_init*/ |
|
8247 0, /*tp_alloc*/ |
|
8248 __pyx_tp_new_5_yaml_CEmitter, /*tp_new*/ |
|
8249 0, /*tp_free*/ |
|
8250 0, /*tp_is_gc*/ |
|
8251 0, /*tp_bases*/ |
|
8252 0, /*tp_mro*/ |
|
8253 0, /*tp_cache*/ |
|
8254 0, /*tp_subclasses*/ |
|
8255 0, /*tp_weaklist*/ |
|
8256 }; |
|
8257 |
|
8258 static struct PyMethodDef __pyx_methods[] = { |
|
8259 {"get_version_string", (PyCFunction)__pyx_f_5_yaml_get_version_string, METH_VARARGS|METH_KEYWORDS, 0}, |
|
8260 {"get_version", (PyCFunction)__pyx_f_5_yaml_get_version, METH_VARARGS|METH_KEYWORDS, 0}, |
|
8261 {0, 0, 0, 0} |
|
8262 }; |
|
8263 |
|
8264 static void __pyx_init_filenames(void); /*proto*/ |
|
8265 |
|
8266 PyMODINIT_FUNC init_yaml(void); /*proto*/ |
|
8267 PyMODINIT_FUNC init_yaml(void) { |
|
8268 PyObject *__pyx_1 = 0; |
|
8269 PyObject *__pyx_2 = 0; |
|
8270 __pyx_init_filenames(); |
|
8271 __pyx_m = Py_InitModule4("_yaml", __pyx_methods, 0, 0, PYTHON_API_VERSION); |
|
8272 if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; |
|
8273 __pyx_b = PyImport_AddModule("__builtin__"); |
|
8274 if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; |
|
8275 if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; |
|
8276 if (__Pyx_InternStrings(__pyx_intern_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; |
|
8277 if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;}; |
|
8278 __pyx_type_5_yaml_Mark.tp_free = _PyObject_GC_Del; |
|
8279 if (PyType_Ready(&__pyx_type_5_yaml_Mark) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; goto __pyx_L1;} |
|
8280 if (PyObject_SetAttrString(__pyx_m, "Mark", (PyObject *)&__pyx_type_5_yaml_Mark) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 59; goto __pyx_L1;} |
|
8281 __pyx_ptype_5_yaml_Mark = &__pyx_type_5_yaml_Mark; |
|
8282 __pyx_vtabptr_5_yaml_CParser = &__pyx_vtable_5_yaml_CParser; |
|
8283 *(void **)&__pyx_vtable_5_yaml_CParser._parser_error = (void *)__pyx_f_5_yaml_7CParser__parser_error; |
|
8284 *(void **)&__pyx_vtable_5_yaml_CParser._scan = (void *)__pyx_f_5_yaml_7CParser__scan; |
|
8285 *(void **)&__pyx_vtable_5_yaml_CParser._token_to_object = (void *)__pyx_f_5_yaml_7CParser__token_to_object; |
|
8286 *(void **)&__pyx_vtable_5_yaml_CParser._parse = (void *)__pyx_f_5_yaml_7CParser__parse; |
|
8287 *(void **)&__pyx_vtable_5_yaml_CParser._event_to_object = (void *)__pyx_f_5_yaml_7CParser__event_to_object; |
|
8288 *(void **)&__pyx_vtable_5_yaml_CParser._compose_document = (void *)__pyx_f_5_yaml_7CParser__compose_document; |
|
8289 *(void **)&__pyx_vtable_5_yaml_CParser._compose_node = (void *)__pyx_f_5_yaml_7CParser__compose_node; |
|
8290 *(void **)&__pyx_vtable_5_yaml_CParser._compose_scalar_node = (void *)__pyx_f_5_yaml_7CParser__compose_scalar_node; |
|
8291 *(void **)&__pyx_vtable_5_yaml_CParser._compose_sequence_node = (void *)__pyx_f_5_yaml_7CParser__compose_sequence_node; |
|
8292 *(void **)&__pyx_vtable_5_yaml_CParser._compose_mapping_node = (void *)__pyx_f_5_yaml_7CParser__compose_mapping_node; |
|
8293 *(void **)&__pyx_vtable_5_yaml_CParser._parse_next_event = (void *)__pyx_f_5_yaml_7CParser__parse_next_event; |
|
8294 __pyx_type_5_yaml_CParser.tp_free = _PyObject_GC_Del; |
|
8295 if (PyType_Ready(&__pyx_type_5_yaml_CParser) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; goto __pyx_L1;} |
|
8296 if (__Pyx_SetVtable(__pyx_type_5_yaml_CParser.tp_dict, __pyx_vtabptr_5_yaml_CParser) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; goto __pyx_L1;} |
|
8297 if (PyObject_SetAttrString(__pyx_m, "CParser", (PyObject *)&__pyx_type_5_yaml_CParser) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; goto __pyx_L1;} |
|
8298 __pyx_ptype_5_yaml_CParser = &__pyx_type_5_yaml_CParser; |
|
8299 __pyx_vtabptr_5_yaml_CEmitter = &__pyx_vtable_5_yaml_CEmitter; |
|
8300 *(void **)&__pyx_vtable_5_yaml_CEmitter._emitter_error = (void *)__pyx_f_5_yaml_8CEmitter__emitter_error; |
|
8301 *(void **)&__pyx_vtable_5_yaml_CEmitter._object_to_event = (void *)__pyx_f_5_yaml_8CEmitter__object_to_event; |
|
8302 *(void **)&__pyx_vtable_5_yaml_CEmitter._anchor_node = (void *)__pyx_f_5_yaml_8CEmitter__anchor_node; |
|
8303 *(void **)&__pyx_vtable_5_yaml_CEmitter._serialize_node = (void *)__pyx_f_5_yaml_8CEmitter__serialize_node; |
|
8304 __pyx_type_5_yaml_CEmitter.tp_free = _PyObject_GC_Del; |
|
8305 if (PyType_Ready(&__pyx_type_5_yaml_CEmitter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 863; goto __pyx_L1;} |
|
8306 if (__Pyx_SetVtable(__pyx_type_5_yaml_CEmitter.tp_dict, __pyx_vtabptr_5_yaml_CEmitter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 863; goto __pyx_L1;} |
|
8307 if (PyObject_SetAttrString(__pyx_m, "CEmitter", (PyObject *)&__pyx_type_5_yaml_CEmitter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 863; goto __pyx_L1;} |
|
8308 __pyx_ptype_5_yaml_CEmitter = &__pyx_type_5_yaml_CEmitter; |
|
8309 |
|
8310 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":2 */ |
|
8311 __pyx_1 = __Pyx_Import(__pyx_n_yaml, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;} |
|
8312 if (PyObject_SetAttr(__pyx_m, __pyx_n_yaml, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; goto __pyx_L1;} |
|
8313 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8314 |
|
8315 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":13 */ |
|
8316 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; goto __pyx_L1;} |
|
8317 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_error); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; goto __pyx_L1;} |
|
8318 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8319 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_YAMLError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; goto __pyx_L1;} |
|
8320 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8321 if (PyObject_SetAttr(__pyx_m, __pyx_n_YAMLError, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; goto __pyx_L1;} |
|
8322 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8323 |
|
8324 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":14 */ |
|
8325 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; goto __pyx_L1;} |
|
8326 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_reader); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; goto __pyx_L1;} |
|
8327 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8328 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_ReaderError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; goto __pyx_L1;} |
|
8329 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8330 if (PyObject_SetAttr(__pyx_m, __pyx_n_ReaderError, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; goto __pyx_L1;} |
|
8331 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8332 |
|
8333 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":15 */ |
|
8334 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; goto __pyx_L1;} |
|
8335 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_scanner); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; goto __pyx_L1;} |
|
8336 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8337 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_ScannerError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; goto __pyx_L1;} |
|
8338 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8339 if (PyObject_SetAttr(__pyx_m, __pyx_n_ScannerError, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; goto __pyx_L1;} |
|
8340 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8341 |
|
8342 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":16 */ |
|
8343 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; goto __pyx_L1;} |
|
8344 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_parser); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; goto __pyx_L1;} |
|
8345 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8346 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_ParserError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; goto __pyx_L1;} |
|
8347 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8348 if (PyObject_SetAttr(__pyx_m, __pyx_n_ParserError, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; goto __pyx_L1;} |
|
8349 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8350 |
|
8351 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":17 */ |
|
8352 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;} |
|
8353 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_composer); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;} |
|
8354 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8355 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_ComposerError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;} |
|
8356 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8357 if (PyObject_SetAttr(__pyx_m, __pyx_n_ComposerError, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; goto __pyx_L1;} |
|
8358 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8359 |
|
8360 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":18 */ |
|
8361 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; goto __pyx_L1;} |
|
8362 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_constructor); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; goto __pyx_L1;} |
|
8363 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8364 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_ConstructorError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; goto __pyx_L1;} |
|
8365 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8366 if (PyObject_SetAttr(__pyx_m, __pyx_n_ConstructorError, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; goto __pyx_L1;} |
|
8367 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8368 |
|
8369 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":19 */ |
|
8370 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; goto __pyx_L1;} |
|
8371 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_emitter); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; goto __pyx_L1;} |
|
8372 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8373 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_EmitterError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; goto __pyx_L1;} |
|
8374 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8375 if (PyObject_SetAttr(__pyx_m, __pyx_n_EmitterError, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; goto __pyx_L1;} |
|
8376 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8377 |
|
8378 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":20 */ |
|
8379 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; goto __pyx_L1;} |
|
8380 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_serializer); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; goto __pyx_L1;} |
|
8381 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8382 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_SerializerError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; goto __pyx_L1;} |
|
8383 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8384 if (PyObject_SetAttr(__pyx_m, __pyx_n_SerializerError, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; goto __pyx_L1;} |
|
8385 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8386 |
|
8387 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":21 */ |
|
8388 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; goto __pyx_L1;} |
|
8389 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_representer); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; goto __pyx_L1;} |
|
8390 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8391 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_RepresenterError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; goto __pyx_L1;} |
|
8392 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8393 if (PyObject_SetAttr(__pyx_m, __pyx_n_RepresenterError, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; goto __pyx_L1;} |
|
8394 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8395 |
|
8396 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":23 */ |
|
8397 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; goto __pyx_L1;} |
|
8398 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_tokens); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; goto __pyx_L1;} |
|
8399 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8400 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_StreamStartToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; goto __pyx_L1;} |
|
8401 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8402 if (PyObject_SetAttr(__pyx_m, __pyx_n_StreamStartToken, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; goto __pyx_L1;} |
|
8403 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8404 |
|
8405 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":24 */ |
|
8406 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; goto __pyx_L1;} |
|
8407 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_tokens); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; goto __pyx_L1;} |
|
8408 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8409 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_StreamEndToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; goto __pyx_L1;} |
|
8410 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8411 if (PyObject_SetAttr(__pyx_m, __pyx_n_StreamEndToken, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; goto __pyx_L1;} |
|
8412 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8413 |
|
8414 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":25 */ |
|
8415 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; goto __pyx_L1;} |
|
8416 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_tokens); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; goto __pyx_L1;} |
|
8417 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8418 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_DirectiveToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; goto __pyx_L1;} |
|
8419 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8420 if (PyObject_SetAttr(__pyx_m, __pyx_n_DirectiveToken, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; goto __pyx_L1;} |
|
8421 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8422 |
|
8423 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":26 */ |
|
8424 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; goto __pyx_L1;} |
|
8425 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_tokens); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; goto __pyx_L1;} |
|
8426 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8427 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_DocumentStartToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; goto __pyx_L1;} |
|
8428 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8429 if (PyObject_SetAttr(__pyx_m, __pyx_n_DocumentStartToken, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; goto __pyx_L1;} |
|
8430 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8431 |
|
8432 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":27 */ |
|
8433 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; goto __pyx_L1;} |
|
8434 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_tokens); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; goto __pyx_L1;} |
|
8435 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8436 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_DocumentEndToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; goto __pyx_L1;} |
|
8437 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8438 if (PyObject_SetAttr(__pyx_m, __pyx_n_DocumentEndToken, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; goto __pyx_L1;} |
|
8439 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8440 |
|
8441 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":28 */ |
|
8442 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; goto __pyx_L1;} |
|
8443 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_tokens); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; goto __pyx_L1;} |
|
8444 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8445 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_BlockSequenceStartToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; goto __pyx_L1;} |
|
8446 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8447 if (PyObject_SetAttr(__pyx_m, __pyx_n_BlockSequenceStartToken, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; goto __pyx_L1;} |
|
8448 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8449 |
|
8450 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":29 */ |
|
8451 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;} |
|
8452 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_tokens); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;} |
|
8453 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8454 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_BlockMappingStartToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;} |
|
8455 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8456 if (PyObject_SetAttr(__pyx_m, __pyx_n_BlockMappingStartToken, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; goto __pyx_L1;} |
|
8457 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8458 |
|
8459 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":30 */ |
|
8460 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; goto __pyx_L1;} |
|
8461 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_tokens); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; goto __pyx_L1;} |
|
8462 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8463 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_BlockEndToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; goto __pyx_L1;} |
|
8464 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8465 if (PyObject_SetAttr(__pyx_m, __pyx_n_BlockEndToken, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; goto __pyx_L1;} |
|
8466 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8467 |
|
8468 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":31 */ |
|
8469 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; goto __pyx_L1;} |
|
8470 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_tokens); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; goto __pyx_L1;} |
|
8471 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8472 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_FlowSequenceStartToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; goto __pyx_L1;} |
|
8473 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8474 if (PyObject_SetAttr(__pyx_m, __pyx_n_FlowSequenceStartToken, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; goto __pyx_L1;} |
|
8475 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8476 |
|
8477 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":32 */ |
|
8478 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; goto __pyx_L1;} |
|
8479 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_tokens); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; goto __pyx_L1;} |
|
8480 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8481 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_FlowMappingStartToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; goto __pyx_L1;} |
|
8482 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8483 if (PyObject_SetAttr(__pyx_m, __pyx_n_FlowMappingStartToken, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; goto __pyx_L1;} |
|
8484 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8485 |
|
8486 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":33 */ |
|
8487 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; goto __pyx_L1;} |
|
8488 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_tokens); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; goto __pyx_L1;} |
|
8489 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8490 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_FlowSequenceEndToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; goto __pyx_L1;} |
|
8491 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8492 if (PyObject_SetAttr(__pyx_m, __pyx_n_FlowSequenceEndToken, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; goto __pyx_L1;} |
|
8493 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8494 |
|
8495 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":34 */ |
|
8496 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; goto __pyx_L1;} |
|
8497 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_tokens); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; goto __pyx_L1;} |
|
8498 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8499 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_FlowMappingEndToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; goto __pyx_L1;} |
|
8500 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8501 if (PyObject_SetAttr(__pyx_m, __pyx_n_FlowMappingEndToken, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; goto __pyx_L1;} |
|
8502 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8503 |
|
8504 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":35 */ |
|
8505 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; goto __pyx_L1;} |
|
8506 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_tokens); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; goto __pyx_L1;} |
|
8507 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8508 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_KeyToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; goto __pyx_L1;} |
|
8509 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8510 if (PyObject_SetAttr(__pyx_m, __pyx_n_KeyToken, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; goto __pyx_L1;} |
|
8511 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8512 |
|
8513 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":36 */ |
|
8514 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;} |
|
8515 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_tokens); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;} |
|
8516 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8517 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_ValueToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;} |
|
8518 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8519 if (PyObject_SetAttr(__pyx_m, __pyx_n_ValueToken, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; goto __pyx_L1;} |
|
8520 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8521 |
|
8522 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":37 */ |
|
8523 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; goto __pyx_L1;} |
|
8524 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_tokens); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; goto __pyx_L1;} |
|
8525 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8526 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_BlockEntryToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; goto __pyx_L1;} |
|
8527 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8528 if (PyObject_SetAttr(__pyx_m, __pyx_n_BlockEntryToken, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; goto __pyx_L1;} |
|
8529 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8530 |
|
8531 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":38 */ |
|
8532 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; goto __pyx_L1;} |
|
8533 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_tokens); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; goto __pyx_L1;} |
|
8534 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8535 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_FlowEntryToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; goto __pyx_L1;} |
|
8536 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8537 if (PyObject_SetAttr(__pyx_m, __pyx_n_FlowEntryToken, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; goto __pyx_L1;} |
|
8538 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8539 |
|
8540 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":39 */ |
|
8541 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; goto __pyx_L1;} |
|
8542 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_tokens); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; goto __pyx_L1;} |
|
8543 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8544 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_AliasToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; goto __pyx_L1;} |
|
8545 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8546 if (PyObject_SetAttr(__pyx_m, __pyx_n_AliasToken, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; goto __pyx_L1;} |
|
8547 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8548 |
|
8549 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":40 */ |
|
8550 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; goto __pyx_L1;} |
|
8551 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_tokens); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; goto __pyx_L1;} |
|
8552 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8553 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_AnchorToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; goto __pyx_L1;} |
|
8554 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8555 if (PyObject_SetAttr(__pyx_m, __pyx_n_AnchorToken, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; goto __pyx_L1;} |
|
8556 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8557 |
|
8558 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":41 */ |
|
8559 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; goto __pyx_L1;} |
|
8560 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_tokens); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; goto __pyx_L1;} |
|
8561 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8562 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_TagToken); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; goto __pyx_L1;} |
|
8563 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8564 if (PyObject_SetAttr(__pyx_m, __pyx_n_TagToken, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; goto __pyx_L1;} |
|
8565 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8566 |
|
8567 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":42 */ |
|
8568 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; goto __pyx_L1;} |
|
8569 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_tokens); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; goto __pyx_L1;} |
|
8570 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8571 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_ScalarToken); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; goto __pyx_L1;} |
|
8572 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8573 if (PyObject_SetAttr(__pyx_m, __pyx_n_ScalarToken, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; goto __pyx_L1;} |
|
8574 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8575 |
|
8576 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":44 */ |
|
8577 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; goto __pyx_L1;} |
|
8578 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_events); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; goto __pyx_L1;} |
|
8579 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8580 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_StreamStartEvent); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; goto __pyx_L1;} |
|
8581 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8582 if (PyObject_SetAttr(__pyx_m, __pyx_n_StreamStartEvent, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; goto __pyx_L1;} |
|
8583 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8584 |
|
8585 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":45 */ |
|
8586 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; goto __pyx_L1;} |
|
8587 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_events); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; goto __pyx_L1;} |
|
8588 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8589 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_StreamEndEvent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; goto __pyx_L1;} |
|
8590 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8591 if (PyObject_SetAttr(__pyx_m, __pyx_n_StreamEndEvent, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; goto __pyx_L1;} |
|
8592 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8593 |
|
8594 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":46 */ |
|
8595 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; goto __pyx_L1;} |
|
8596 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_events); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; goto __pyx_L1;} |
|
8597 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8598 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_DocumentStartEvent); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; goto __pyx_L1;} |
|
8599 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8600 if (PyObject_SetAttr(__pyx_m, __pyx_n_DocumentStartEvent, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; goto __pyx_L1;} |
|
8601 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8602 |
|
8603 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":47 */ |
|
8604 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; goto __pyx_L1;} |
|
8605 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_events); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; goto __pyx_L1;} |
|
8606 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8607 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_DocumentEndEvent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; goto __pyx_L1;} |
|
8608 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8609 if (PyObject_SetAttr(__pyx_m, __pyx_n_DocumentEndEvent, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; goto __pyx_L1;} |
|
8610 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8611 |
|
8612 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":48 */ |
|
8613 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; goto __pyx_L1;} |
|
8614 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_events); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; goto __pyx_L1;} |
|
8615 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8616 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_AliasEvent); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; goto __pyx_L1;} |
|
8617 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8618 if (PyObject_SetAttr(__pyx_m, __pyx_n_AliasEvent, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; goto __pyx_L1;} |
|
8619 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8620 |
|
8621 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":49 */ |
|
8622 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; goto __pyx_L1;} |
|
8623 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_events); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; goto __pyx_L1;} |
|
8624 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8625 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_ScalarEvent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; goto __pyx_L1;} |
|
8626 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8627 if (PyObject_SetAttr(__pyx_m, __pyx_n_ScalarEvent, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; goto __pyx_L1;} |
|
8628 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8629 |
|
8630 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":50 */ |
|
8631 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; goto __pyx_L1;} |
|
8632 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_events); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; goto __pyx_L1;} |
|
8633 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8634 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_SequenceStartEvent); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; goto __pyx_L1;} |
|
8635 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8636 if (PyObject_SetAttr(__pyx_m, __pyx_n_SequenceStartEvent, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; goto __pyx_L1;} |
|
8637 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8638 |
|
8639 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":51 */ |
|
8640 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; goto __pyx_L1;} |
|
8641 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_events); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; goto __pyx_L1;} |
|
8642 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8643 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_SequenceEndEvent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; goto __pyx_L1;} |
|
8644 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8645 if (PyObject_SetAttr(__pyx_m, __pyx_n_SequenceEndEvent, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; goto __pyx_L1;} |
|
8646 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8647 |
|
8648 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":52 */ |
|
8649 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; goto __pyx_L1;} |
|
8650 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_events); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; goto __pyx_L1;} |
|
8651 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8652 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_MappingStartEvent); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; goto __pyx_L1;} |
|
8653 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8654 if (PyObject_SetAttr(__pyx_m, __pyx_n_MappingStartEvent, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; goto __pyx_L1;} |
|
8655 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8656 |
|
8657 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":53 */ |
|
8658 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; goto __pyx_L1;} |
|
8659 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_events); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; goto __pyx_L1;} |
|
8660 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8661 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_MappingEndEvent); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; goto __pyx_L1;} |
|
8662 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8663 if (PyObject_SetAttr(__pyx_m, __pyx_n_MappingEndEvent, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; goto __pyx_L1;} |
|
8664 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8665 |
|
8666 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":55 */ |
|
8667 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; goto __pyx_L1;} |
|
8668 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_nodes); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; goto __pyx_L1;} |
|
8669 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8670 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_ScalarNode); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; goto __pyx_L1;} |
|
8671 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8672 if (PyObject_SetAttr(__pyx_m, __pyx_n_ScalarNode, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; goto __pyx_L1;} |
|
8673 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8674 |
|
8675 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":56 */ |
|
8676 __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; goto __pyx_L1;} |
|
8677 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_nodes); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; goto __pyx_L1;} |
|
8678 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8679 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_SequenceNode); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; goto __pyx_L1;} |
|
8680 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8681 if (PyObject_SetAttr(__pyx_m, __pyx_n_SequenceNode, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; goto __pyx_L1;} |
|
8682 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8683 |
|
8684 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":57 */ |
|
8685 __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n_yaml); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; goto __pyx_L1;} |
|
8686 __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_nodes); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; goto __pyx_L1;} |
|
8687 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8688 __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_MappingNode); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; goto __pyx_L1;} |
|
8689 Py_DECREF(__pyx_1); __pyx_1 = 0; |
|
8690 if (PyObject_SetAttr(__pyx_m, __pyx_n_MappingNode, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; goto __pyx_L1;} |
|
8691 Py_DECREF(__pyx_2); __pyx_2 = 0; |
|
8692 |
|
8693 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":880 */ |
|
8694 Py_INCREF(Py_None); |
|
8695 __pyx_k2 = Py_None; |
|
8696 Py_INCREF(Py_None); |
|
8697 __pyx_k3 = Py_None; |
|
8698 Py_INCREF(Py_None); |
|
8699 __pyx_k4 = Py_None; |
|
8700 Py_INCREF(Py_None); |
|
8701 __pyx_k5 = Py_None; |
|
8702 Py_INCREF(Py_None); |
|
8703 __pyx_k6 = Py_None; |
|
8704 Py_INCREF(Py_None); |
|
8705 __pyx_k7 = Py_None; |
|
8706 Py_INCREF(Py_None); |
|
8707 __pyx_k8 = Py_None; |
|
8708 Py_INCREF(Py_None); |
|
8709 __pyx_k9 = Py_None; |
|
8710 Py_INCREF(Py_None); |
|
8711 __pyx_k10 = Py_None; |
|
8712 Py_INCREF(Py_None); |
|
8713 __pyx_k11 = Py_None; |
|
8714 |
|
8715 /* "/home/xi/xitology/pyyaml-org/pyyaml/trunk/ext/_yaml.pyx":1338 */ |
|
8716 return; |
|
8717 __pyx_L1:; |
|
8718 Py_XDECREF(__pyx_1); |
|
8719 Py_XDECREF(__pyx_2); |
|
8720 __Pyx_AddTraceback("_yaml"); |
|
8721 } |
|
8722 |
|
8723 static char *__pyx_filenames[] = { |
|
8724 "_yaml.pyx", |
|
8725 }; |
|
8726 |
|
8727 /* Runtime support code */ |
|
8728 |
|
8729 static void __pyx_init_filenames(void) { |
|
8730 __pyx_f = __pyx_filenames; |
|
8731 } |
|
8732 |
|
8733 static int __Pyx_GetStarArgs( |
|
8734 PyObject **args, |
|
8735 PyObject **kwds, |
|
8736 char *kwd_list[], |
|
8737 Py_ssize_t nargs, |
|
8738 PyObject **args2, |
|
8739 PyObject **kwds2) |
|
8740 { |
|
8741 PyObject *x = 0, *args1 = 0, *kwds1 = 0; |
|
8742 |
|
8743 if (args2) |
|
8744 *args2 = 0; |
|
8745 if (kwds2) |
|
8746 *kwds2 = 0; |
|
8747 |
|
8748 if (args2) { |
|
8749 args1 = PyTuple_GetSlice(*args, 0, nargs); |
|
8750 if (!args1) |
|
8751 goto bad; |
|
8752 *args2 = PyTuple_GetSlice(*args, nargs, PyTuple_Size(*args)); |
|
8753 if (!*args2) |
|
8754 goto bad; |
|
8755 } |
|
8756 else { |
|
8757 args1 = *args; |
|
8758 Py_INCREF(args1); |
|
8759 } |
|
8760 |
|
8761 if (kwds2) { |
|
8762 if (*kwds) { |
|
8763 char **p; |
|
8764 kwds1 = PyDict_New(); |
|
8765 if (!kwds) |
|
8766 goto bad; |
|
8767 *kwds2 = PyDict_Copy(*kwds); |
|
8768 if (!*kwds2) |
|
8769 goto bad; |
|
8770 for (p = kwd_list; *p; p++) { |
|
8771 x = PyDict_GetItemString(*kwds, *p); |
|
8772 if (x) { |
|
8773 if (PyDict_SetItemString(kwds1, *p, x) < 0) |
|
8774 goto bad; |
|
8775 if (PyDict_DelItemString(*kwds2, *p) < 0) |
|
8776 goto bad; |
|
8777 } |
|
8778 } |
|
8779 } |
|
8780 else { |
|
8781 *kwds2 = PyDict_New(); |
|
8782 if (!*kwds2) |
|
8783 goto bad; |
|
8784 } |
|
8785 } |
|
8786 else { |
|
8787 kwds1 = *kwds; |
|
8788 Py_XINCREF(kwds1); |
|
8789 } |
|
8790 |
|
8791 *args = args1; |
|
8792 *kwds = kwds1; |
|
8793 return 0; |
|
8794 bad: |
|
8795 Py_XDECREF(args1); |
|
8796 Py_XDECREF(kwds1); |
|
8797 Py_XDECREF(*args2); |
|
8798 Py_XDECREF(*kwds2); |
|
8799 return -1; |
|
8800 } |
|
8801 |
|
8802 static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) { |
|
8803 PyObject *__import__ = 0; |
|
8804 PyObject *empty_list = 0; |
|
8805 PyObject *module = 0; |
|
8806 PyObject *global_dict = 0; |
|
8807 PyObject *empty_dict = 0; |
|
8808 PyObject *list; |
|
8809 __import__ = PyObject_GetAttrString(__pyx_b, "__import__"); |
|
8810 if (!__import__) |
|
8811 goto bad; |
|
8812 if (from_list) |
|
8813 list = from_list; |
|
8814 else { |
|
8815 empty_list = PyList_New(0); |
|
8816 if (!empty_list) |
|
8817 goto bad; |
|
8818 list = empty_list; |
|
8819 } |
|
8820 global_dict = PyModule_GetDict(__pyx_m); |
|
8821 if (!global_dict) |
|
8822 goto bad; |
|
8823 empty_dict = PyDict_New(); |
|
8824 if (!empty_dict) |
|
8825 goto bad; |
|
8826 module = PyObject_CallFunction(__import__, "OOOO", |
|
8827 name, global_dict, empty_dict, list); |
|
8828 bad: |
|
8829 Py_XDECREF(empty_list); |
|
8830 Py_XDECREF(__import__); |
|
8831 Py_XDECREF(empty_dict); |
|
8832 return module; |
|
8833 } |
|
8834 |
|
8835 static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) { |
|
8836 PyObject *result; |
|
8837 result = PyObject_GetAttr(dict, name); |
|
8838 if (!result) |
|
8839 PyErr_SetObject(PyExc_NameError, name); |
|
8840 return result; |
|
8841 } |
|
8842 |
|
8843 static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) { |
|
8844 Py_XINCREF(type); |
|
8845 Py_XINCREF(value); |
|
8846 Py_XINCREF(tb); |
|
8847 /* First, check the traceback argument, replacing None with NULL. */ |
|
8848 if (tb == Py_None) { |
|
8849 Py_DECREF(tb); |
|
8850 tb = 0; |
|
8851 } |
|
8852 else if (tb != NULL && !PyTraceBack_Check(tb)) { |
|
8853 PyErr_SetString(PyExc_TypeError, |
|
8854 "raise: arg 3 must be a traceback or None"); |
|
8855 goto raise_error; |
|
8856 } |
|
8857 /* Next, replace a missing value with None */ |
|
8858 if (value == NULL) { |
|
8859 value = Py_None; |
|
8860 Py_INCREF(value); |
|
8861 } |
|
8862 /* Next, repeatedly, replace a tuple exception with its first item */ |
|
8863 while (PyTuple_Check(type) && PyTuple_Size(type) > 0) { |
|
8864 PyObject *tmp = type; |
|
8865 type = PyTuple_GET_ITEM(type, 0); |
|
8866 Py_INCREF(type); |
|
8867 Py_DECREF(tmp); |
|
8868 } |
|
8869 if (PyString_Check(type)) |
|
8870 ; |
|
8871 else if (PyType_Check(type) || PyClass_Check(type)) |
|
8872 ; /*PyErr_NormalizeException(&type, &value, &tb);*/ |
|
8873 else if (PyInstance_Check(type)) { |
|
8874 /* Raising an instance. The value should be a dummy. */ |
|
8875 if (value != Py_None) { |
|
8876 PyErr_SetString(PyExc_TypeError, |
|
8877 "instance exception may not have a separate value"); |
|
8878 goto raise_error; |
|
8879 } |
|
8880 else { |
|
8881 /* Normalize to raise <class>, <instance> */ |
|
8882 Py_DECREF(value); |
|
8883 value = type; |
|
8884 type = (PyObject*) ((PyInstanceObject*)type)->in_class; |
|
8885 Py_INCREF(type); |
|
8886 } |
|
8887 } |
|
8888 else { |
|
8889 /* Not something you can raise. You get an exception |
|
8890 anyway, just not what you specified :-) */ |
|
8891 PyErr_Format(PyExc_TypeError, |
|
8892 "exceptions must be strings, classes, or " |
|
8893 "instances, not %s", type->ob_type->tp_name); |
|
8894 goto raise_error; |
|
8895 } |
|
8896 PyErr_Restore(type, value, tb); |
|
8897 return; |
|
8898 raise_error: |
|
8899 Py_XDECREF(value); |
|
8900 Py_XDECREF(type); |
|
8901 Py_XDECREF(tb); |
|
8902 return; |
|
8903 } |
|
8904 |
|
8905 static PyObject *__Pyx_GetExcValue(void) { |
|
8906 PyObject *type = 0, *value = 0, *tb = 0; |
|
8907 PyObject *result = 0; |
|
8908 PyThreadState *tstate = PyThreadState_Get(); |
|
8909 PyErr_Fetch(&type, &value, &tb); |
|
8910 PyErr_NormalizeException(&type, &value, &tb); |
|
8911 if (PyErr_Occurred()) |
|
8912 goto bad; |
|
8913 if (!value) { |
|
8914 value = Py_None; |
|
8915 Py_INCREF(value); |
|
8916 } |
|
8917 Py_XDECREF(tstate->exc_type); |
|
8918 Py_XDECREF(tstate->exc_value); |
|
8919 Py_XDECREF(tstate->exc_traceback); |
|
8920 tstate->exc_type = type; |
|
8921 tstate->exc_value = value; |
|
8922 tstate->exc_traceback = tb; |
|
8923 result = value; |
|
8924 Py_XINCREF(result); |
|
8925 type = 0; |
|
8926 value = 0; |
|
8927 tb = 0; |
|
8928 bad: |
|
8929 Py_XDECREF(type); |
|
8930 Py_XDECREF(value); |
|
8931 Py_XDECREF(tb); |
|
8932 return result; |
|
8933 } |
|
8934 |
|
8935 static void __Pyx_UnpackError(void) { |
|
8936 PyErr_SetString(PyExc_ValueError, "unpack sequence of wrong size"); |
|
8937 } |
|
8938 |
|
8939 static PyObject *__Pyx_UnpackItem(PyObject *seq, Py_ssize_t i) { |
|
8940 PyObject *item; |
|
8941 if (!(item = PySequence_GetItem(seq, i))) { |
|
8942 if (PyErr_ExceptionMatches(PyExc_IndexError)) |
|
8943 __Pyx_UnpackError(); |
|
8944 } |
|
8945 return item; |
|
8946 } |
|
8947 |
|
8948 static int __Pyx_EndUnpack(PyObject *seq, Py_ssize_t i) { |
|
8949 PyObject *item; |
|
8950 if (item = PySequence_GetItem(seq, i)) { |
|
8951 Py_DECREF(item); |
|
8952 __Pyx_UnpackError(); |
|
8953 return -1; |
|
8954 } |
|
8955 PyErr_Clear(); |
|
8956 return 0; |
|
8957 } |
|
8958 |
|
8959 static int __Pyx_InternStrings(__Pyx_InternTabEntry *t) { |
|
8960 while (t->p) { |
|
8961 *t->p = PyString_InternFromString(t->s); |
|
8962 if (!*t->p) |
|
8963 return -1; |
|
8964 ++t; |
|
8965 } |
|
8966 return 0; |
|
8967 } |
|
8968 |
|
8969 static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { |
|
8970 while (t->p) { |
|
8971 *t->p = PyString_FromStringAndSize(t->s, t->n - 1); |
|
8972 if (!*t->p) |
|
8973 return -1; |
|
8974 ++t; |
|
8975 } |
|
8976 return 0; |
|
8977 } |
|
8978 |
|
8979 static int __Pyx_SetVtable(PyObject *dict, void *vtable) { |
|
8980 PyObject *pycobj = 0; |
|
8981 int result; |
|
8982 |
|
8983 pycobj = PyCObject_FromVoidPtr(vtable, 0); |
|
8984 if (!pycobj) |
|
8985 goto bad; |
|
8986 if (PyDict_SetItemString(dict, "__pyx_vtable__", pycobj) < 0) |
|
8987 goto bad; |
|
8988 result = 0; |
|
8989 goto done; |
|
8990 |
|
8991 bad: |
|
8992 result = -1; |
|
8993 done: |
|
8994 Py_XDECREF(pycobj); |
|
8995 return result; |
|
8996 } |
|
8997 |
|
8998 #include "compile.h" |
|
8999 #include "frameobject.h" |
|
9000 #include "traceback.h" |
|
9001 |
|
9002 static void __Pyx_AddTraceback(char *funcname) { |
|
9003 PyObject *py_srcfile = 0; |
|
9004 PyObject *py_funcname = 0; |
|
9005 PyObject *py_globals = 0; |
|
9006 PyObject *empty_tuple = 0; |
|
9007 PyObject *empty_string = 0; |
|
9008 PyCodeObject *py_code = 0; |
|
9009 PyFrameObject *py_frame = 0; |
|
9010 |
|
9011 py_srcfile = PyString_FromString(__pyx_filename); |
|
9012 if (!py_srcfile) goto bad; |
|
9013 py_funcname = PyString_FromString(funcname); |
|
9014 if (!py_funcname) goto bad; |
|
9015 py_globals = PyModule_GetDict(__pyx_m); |
|
9016 if (!py_globals) goto bad; |
|
9017 empty_tuple = PyTuple_New(0); |
|
9018 if (!empty_tuple) goto bad; |
|
9019 empty_string = PyString_FromString(""); |
|
9020 if (!empty_string) goto bad; |
|
9021 py_code = PyCode_New( |
|
9022 0, /*int argcount,*/ |
|
9023 0, /*int nlocals,*/ |
|
9024 0, /*int stacksize,*/ |
|
9025 0, /*int flags,*/ |
|
9026 empty_string, /*PyObject *code,*/ |
|
9027 empty_tuple, /*PyObject *consts,*/ |
|
9028 empty_tuple, /*PyObject *names,*/ |
|
9029 empty_tuple, /*PyObject *varnames,*/ |
|
9030 empty_tuple, /*PyObject *freevars,*/ |
|
9031 empty_tuple, /*PyObject *cellvars,*/ |
|
9032 py_srcfile, /*PyObject *filename,*/ |
|
9033 py_funcname, /*PyObject *name,*/ |
|
9034 __pyx_lineno, /*int firstlineno,*/ |
|
9035 empty_string /*PyObject *lnotab*/ |
|
9036 ); |
|
9037 if (!py_code) goto bad; |
|
9038 py_frame = PyFrame_New( |
|
9039 PyThreadState_Get(), /*PyThreadState *tstate,*/ |
|
9040 py_code, /*PyCodeObject *code,*/ |
|
9041 py_globals, /*PyObject *globals,*/ |
|
9042 0 /*PyObject *locals*/ |
|
9043 ); |
|
9044 if (!py_frame) goto bad; |
|
9045 py_frame->f_lineno = __pyx_lineno; |
|
9046 PyTraceBack_Here(py_frame); |
|
9047 bad: |
|
9048 Py_XDECREF(py_srcfile); |
|
9049 Py_XDECREF(py_funcname); |
|
9050 Py_XDECREF(empty_tuple); |
|
9051 Py_XDECREF(empty_string); |
|
9052 Py_XDECREF(py_code); |
|
9053 Py_XDECREF(py_frame); |
|
9054 } |