/* Generated by Cython 0.11.2 on Mon Aug 31 12:15:10 2009 */

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "structmember.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#endif
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#if PY_VERSION_HEX < 0x02040000
  #define METH_COEXIST 0
  #define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)
#endif
#if PY_VERSION_HEX < 0x02050000
  typedef int Py_ssize_t;
  #define PY_SSIZE_T_MAX INT_MAX
  #define PY_SSIZE_T_MIN INT_MIN
  #define PY_FORMAT_SIZE_T ""
  #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
  #define PyInt_AsSsize_t(o)   PyInt_AsLong(o)
  #define PyNumber_Index(o)    PyNumber_Int(o)
  #define PyIndex_Check(o)     PyNumber_Check(o)
#endif
#if PY_VERSION_HEX < 0x02060000
  #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
  #define Py_TYPE(ob)   (((PyObject*)(ob))->ob_type)
  #define Py_SIZE(ob)   (((PyVarObject*)(ob))->ob_size)
  #define PyVarObject_HEAD_INIT(type, size) \
          PyObject_HEAD_INIT(type) size,
  #define PyType_Modified(t)

  typedef struct {
       void *buf;
       PyObject *obj;
       Py_ssize_t len;
       Py_ssize_t itemsize;
       int readonly;
       int ndim;
       char *format;
       Py_ssize_t *shape;
       Py_ssize_t *strides;
       Py_ssize_t *suboffsets;
       void *internal;
  } Py_buffer;

  #define PyBUF_SIMPLE 0
  #define PyBUF_WRITABLE 0x0001
  #define PyBUF_FORMAT 0x0004
  #define PyBUF_ND 0x0008
  #define PyBUF_STRIDES (0x0010 | PyBUF_ND)
  #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
  #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
  #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
  #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)

#endif
#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
#endif
#if PY_MAJOR_VERSION >= 3
  #define Py_TPFLAGS_CHECKTYPES 0
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#if (PY_VERSION_HEX < 0x02060000) || (PY_MAJOR_VERSION >= 3)
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBaseString_Type            PyUnicode_Type
  #define PyString_Type                PyBytes_Type
  #define PyString_CheckExact          PyBytes_CheckExact
  #define PyInt_Type                   PyLong_Type
  #define PyInt_Check(op)              PyLong_Check(op)
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
  #define PyInt_FromString             PyLong_FromString
  #define PyInt_FromUnicode            PyLong_FromUnicode
  #define PyInt_FromLong               PyLong_FromLong
  #define PyInt_FromSize_t             PyLong_FromSize_t
  #define PyInt_FromSsize_t            PyLong_FromSsize_t
  #define PyInt_AsLong                 PyLong_AsLong
  #define PyInt_AS_LONG                PyLong_AS_LONG
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
#else
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
  #define PyBytes_Type                 PyString_Type
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyMethod_New(func, self, klass) PyInstanceMethod_New(func)
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#else
  #define _USE_MATH_DEFINES
#endif
#if PY_VERSION_HEX < 0x02050000
  #define __Pyx_GetAttrString(o,n)   PyObject_GetAttrString((o),((char *)(n)))
  #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a))
  #define __Pyx_DelAttrString(o,n)   PyObject_DelAttrString((o),((char *)(n)))
#else
  #define __Pyx_GetAttrString(o,n)   PyObject_GetAttrString((o),(n))
  #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a))
  #define __Pyx_DelAttrString(o,n)   PyObject_DelAttrString((o),(n))
#endif
#if PY_VERSION_HEX < 0x02050000
  #define __Pyx_NAMESTR(n) ((char *)(n))
  #define __Pyx_DOCSTR(n)  ((char *)(n))
#else
  #define __Pyx_NAMESTR(n) (n)
  #define __Pyx_DOCSTR(n)  (n)
#endif
#ifdef __cplusplus
#define __PYX_EXTERN_C extern "C"
#else
#define __PYX_EXTERN_C extern
#endif
#include <math.h>
#define __PYX_HAVE_API___yaml
#include "_yaml.h"
#define __PYX_USE_C99_COMPLEX defined(_Complex_I)


#ifdef __GNUC__
#define INLINE __inline__
#elif _WIN32
#define INLINE __inline
#else
#define INLINE 
#endif

typedef struct {PyObject **p; char *s; long n; char is_unicode; char intern; char is_identifier;} __Pyx_StringTabEntry; /*proto*/



static int __pyx_skip_dispatch = 0;


/* Type Conversion Predeclarations */

#if PY_MAJOR_VERSION < 3
#define __Pyx_PyBytes_FromString          PyString_FromString
#define __Pyx_PyBytes_FromStringAndSize   PyString_FromStringAndSize
#define __Pyx_PyBytes_AsString            PyString_AsString
#else
#define __Pyx_PyBytes_FromString          PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize   PyBytes_FromStringAndSize
#define __Pyx_PyBytes_AsString            PyBytes_AsString
#endif

#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
static INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);

#if !defined(T_PYSSIZET)
#if PY_VERSION_HEX < 0x02050000
#define T_PYSSIZET T_INT
#elif !defined(T_LONGLONG)
#define T_PYSSIZET \
        ((sizeof(Py_ssize_t) == sizeof(int))  ? T_INT  : \
        ((sizeof(Py_ssize_t) == sizeof(long)) ? T_LONG : -1))
#else
#define T_PYSSIZET \
        ((sizeof(Py_ssize_t) == sizeof(int))          ? T_INT      : \
        ((sizeof(Py_ssize_t) == sizeof(long))         ? T_LONG     : \
        ((sizeof(Py_ssize_t) == sizeof(PY_LONG_LONG)) ? T_LONGLONG : -1)))
#endif
#endif

#if !defined(T_SIZET)
#if !defined(T_ULONGLONG)
#define T_SIZET \
        ((sizeof(size_t) == sizeof(unsigned int))  ? T_UINT  : \
        ((sizeof(size_t) == sizeof(unsigned long)) ? T_ULONG : -1))
#else
#define T_SIZET \
        ((sizeof(size_t) == sizeof(unsigned int))          ? T_UINT      : \
        ((sizeof(size_t) == sizeof(unsigned long))         ? T_ULONG     : \
        ((sizeof(size_t) == sizeof(unsigned PY_LONG_LONG)) ? T_ULONGLONG : -1)))
#endif
#endif

static INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
static INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);

#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))


#ifdef __GNUC__
/* Test for GCC > 2.95 */
#if __GNUC__ > 2 ||               (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)) 
#define likely(x)   __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#else /* __GNUC__ > 2 ... */
#define likely(x)   (x)
#define unlikely(x) (x)
#endif /* __GNUC__ > 2 ... */
#else /* __GNUC__ */
#define likely(x)   (x)
#define unlikely(x) (x)
#endif /* __GNUC__ */
    
static PyObject *__pyx_m;
static PyObject *__pyx_b;
static PyObject *__pyx_empty_tuple;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;
static const char **__pyx_f;


#ifdef CYTHON_REFNANNY
typedef struct {
  void (*INCREF)(void*, PyObject*, int);
  void (*DECREF)(void*, PyObject*, int);
  void (*GOTREF)(void*, PyObject*, int);
  void (*GIVEREF)(void*, PyObject*, int);
  void* (*NewContext)(const char*, int, const char*);
  void (*FinishContext)(void**);
} __Pyx_RefnannyAPIStruct;
static __Pyx_RefnannyAPIStruct *__Pyx_Refnanny = NULL;
#define __Pyx_ImportRefcountAPI(name)   (__Pyx_RefnannyAPIStruct *) PyCObject_Import((char *)name, (char *)"RefnannyAPI")
#define __Pyx_INCREF(r) __Pyx_Refnanny->INCREF(__pyx_refchk, (PyObject *)(r), __LINE__)
#define __Pyx_DECREF(r) __Pyx_Refnanny->DECREF(__pyx_refchk, (PyObject *)(r), __LINE__)
#define __Pyx_GOTREF(r) __Pyx_Refnanny->GOTREF(__pyx_refchk, (PyObject *)(r), __LINE__)
#define __Pyx_GIVEREF(r) __Pyx_Refnanny->GIVEREF(__pyx_refchk, (PyObject *)(r), __LINE__)
#define __Pyx_XDECREF(r) if((r) == NULL) ; else __Pyx_DECREF(r)
#define __Pyx_SetupRefcountContext(name)   void* __pyx_refchk = __Pyx_Refnanny->NewContext((name), __LINE__, __FILE__)
#define __Pyx_FinishRefcountContext()   __Pyx_Refnanny->FinishContext(&__pyx_refchk)
#else
#define __Pyx_INCREF(r) Py_INCREF(r)
#define __Pyx_DECREF(r) Py_DECREF(r)
#define __Pyx_GOTREF(r)
#define __Pyx_GIVEREF(r)
#define __Pyx_XDECREF(r) Py_XDECREF(r)
#define __Pyx_SetupRefcountContext(name)
#define __Pyx_FinishRefcountContext()
#endif /* CYTHON_REFNANNY */
#define __Pyx_XGIVEREF(r) if((r) == NULL) ; else __Pyx_GIVEREF(r)
#define __Pyx_XGOTREF(r) if((r) == NULL) ; else __Pyx_GOTREF(r)

static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name, PyObject* kw_name); /*proto*/

static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /*proto*/

static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],     PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,     const char* function_name); /*proto*/

static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); /*proto*/

static INLINE int __Pyx_CheckKeywordStrings(PyObject *kwdict,
    const char* function_name, int kw_allowed); /*proto*/


static INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (!j) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}


#define __Pyx_GetItemInt_List(o, i, size, to_py_func) ((size <= sizeof(Py_ssize_t)) ? \
                                                    __Pyx_GetItemInt_List_Fast(o, i, size <= sizeof(long)) : \
                                                    __Pyx_GetItemInt_Generic(o, to_py_func(i)))

static INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, int fits_long) {
    if (likely(o != Py_None)) {
        if (likely((0 <= i) & (i < PyList_GET_SIZE(o)))) {
            PyObject *r = PyList_GET_ITEM(o, i);
            Py_INCREF(r);
            return r;
        }
        else if ((-PyList_GET_SIZE(o) <= i) & (i < 0)) {
            PyObject *r = PyList_GET_ITEM(o, PyList_GET_SIZE(o) + i);
            Py_INCREF(r);
            return r;
        }
    }
    return __Pyx_GetItemInt_Generic(o, fits_long ? PyInt_FromLong(i) : PyLong_FromLongLong(i));
}

#define __Pyx_GetItemInt_Tuple(o, i, size, to_py_func) ((size <= sizeof(Py_ssize_t)) ? \
                                                    __Pyx_GetItemInt_Tuple_Fast(o, i, size <= sizeof(long)) : \
                                                    __Pyx_GetItemInt_Generic(o, to_py_func(i)))

static INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, int fits_long) {
    if (likely(o != Py_None)) {
        if (likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
            PyObject *r = PyTuple_GET_ITEM(o, i);
            Py_INCREF(r);
            return r;
        }
        else if ((-PyTuple_GET_SIZE(o) <= i) & (i < 0)) {
            PyObject *r = PyTuple_GET_ITEM(o, PyTuple_GET_SIZE(o) + i);
            Py_INCREF(r);
            return r;
        }
    }
    return __Pyx_GetItemInt_Generic(o, fits_long ? PyInt_FromLong(i) : PyLong_FromLongLong(i));
}


#define __Pyx_GetItemInt(o, i, size, to_py_func) ((size <= sizeof(Py_ssize_t)) ? \
                                                    __Pyx_GetItemInt_Fast(o, i, size <= sizeof(long)) : \
                                                    __Pyx_GetItemInt_Generic(o, to_py_func(i)))

static INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int fits_long) {
    PyObject *r;
    if (PyList_CheckExact(o) && ((0 <= i) & (i < PyList_GET_SIZE(o)))) {
        r = PyList_GET_ITEM(o, i);
        Py_INCREF(r);
    }
    else if (PyTuple_CheckExact(o) && ((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
        r = PyTuple_GET_ITEM(o, i);
        Py_INCREF(r);
    }
    else if (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_item && (likely(i >= 0))) {
        r = PySequence_GetItem(o, i);
    }
    else {
        r = __Pyx_GetItemInt_Generic(o, fits_long ? PyInt_FromLong(i) : PyLong_FromLongLong(i));
    }
    return r;
}

static INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb); /*proto*/
static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb); /*proto*/

static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/

static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/

static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/

static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/

static INLINE PyObject* __Pyx_PyObject_Append(PyObject* L, PyObject* x) {
    if (likely(PyList_CheckExact(L))) {
        if (PyList_Append(L, x) < 0) return NULL;
        Py_INCREF(Py_None);
        return Py_None; /* this is just to have an accurate signature */
    }
    else {
        PyObject *r, *m;
        m = __Pyx_GetAttrString(L, "append");
        if (!m) return NULL;
        r = PyObject_CallFunctionObjArgs(m, x, NULL);
        Py_DECREF(m);
        return r;
    }
}

static PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *); /*proto*/

static INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

static INLINE void __Pyx_RaiseTooManyValuesError(void);

static PyObject *__Pyx_UnpackItem(PyObject *, Py_ssize_t index); /*proto*/
static int __Pyx_EndUnpack(PyObject *); /*proto*/

static INLINE int __Pyx_StrEq(const char *, const char *); /*proto*/

static INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);

static INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);

static INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);

static INLINE char __Pyx_PyInt_AsChar(PyObject *);

static INLINE short __Pyx_PyInt_AsShort(PyObject *);

static INLINE int __Pyx_PyInt_AsInt(PyObject *);

static INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);

static INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);

static INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);

static INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);

static INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);

static INLINE long __Pyx_PyInt_AsLong(PyObject *);

static INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);

static INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);

static INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);

static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/

static void __Pyx_AddTraceback(const char *funcname); /*proto*/

static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/

/* Type declarations */

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":64
 * MappingNode = yaml.nodes.MappingNode
 * 
 * cdef class Mark:             # <<<<<<<<<<<<<<
 *     cdef readonly object name
 *     cdef readonly int index
 */

struct __pyx_obj_5_yaml_Mark {
  PyObject_HEAD
  PyObject *name;
  int index;
  int line;
  int column;
  PyObject *buffer;
  PyObject *pointer;
};

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":247
 * #        self.style = style
 * 
 * cdef class CParser:             # <<<<<<<<<<<<<<
 * 
 *     cdef yaml_parser_t parser
 */

struct __pyx_obj_5_yaml_CParser {
  PyObject_HEAD
  struct __pyx_vtabstruct_5_yaml_CParser *__pyx_vtab;
  yaml_parser_t parser;
  yaml_event_t parsed_event;
  PyObject *stream;
  PyObject *stream_name;
  PyObject *current_token;
  PyObject *current_event;
  PyObject *anchors;
  PyObject *stream_cache;
  int stream_cache_len;
  int stream_cache_pos;
  int unicode_source;
};

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":932
 *     return 1
 * 
 * cdef class CEmitter:             # <<<<<<<<<<<<<<
 * 
 *     cdef yaml_emitter_t emitter
 */

struct __pyx_obj_5_yaml_CEmitter {
  PyObject_HEAD
  struct __pyx_vtabstruct_5_yaml_CEmitter *__pyx_vtab;
  yaml_emitter_t emitter;
  PyObject *stream;
  int document_start_implicit;
  int document_end_implicit;
  PyObject *use_version;
  PyObject *use_tags;
  PyObject *serialized_nodes;
  PyObject *anchors;
  int last_alias_id;
  int closed;
  int dump_unicode;
  PyObject *use_encoding;
};


/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":247
 * #        self.style = style
 * 
 * cdef class CParser:             # <<<<<<<<<<<<<<
 * 
 *     cdef yaml_parser_t parser
 */

struct __pyx_vtabstruct_5_yaml_CParser {
  PyObject *(*_parser_error)(struct __pyx_obj_5_yaml_CParser *);
  PyObject *(*_scan)(struct __pyx_obj_5_yaml_CParser *);
  PyObject *(*_token_to_object)(struct __pyx_obj_5_yaml_CParser *, yaml_token_t *);
  PyObject *(*_parse)(struct __pyx_obj_5_yaml_CParser *);
  PyObject *(*_event_to_object)(struct __pyx_obj_5_yaml_CParser *, yaml_event_t *);
  PyObject *(*_compose_document)(struct __pyx_obj_5_yaml_CParser *);
  PyObject *(*_compose_node)(struct __pyx_obj_5_yaml_CParser *, PyObject *, PyObject *);
  PyObject *(*_compose_scalar_node)(struct __pyx_obj_5_yaml_CParser *, PyObject *);
  PyObject *(*_compose_sequence_node)(struct __pyx_obj_5_yaml_CParser *, PyObject *);
  PyObject *(*_compose_mapping_node)(struct __pyx_obj_5_yaml_CParser *, PyObject *);
  int (*_parse_next_event)(struct __pyx_obj_5_yaml_CParser *);
};
static struct __pyx_vtabstruct_5_yaml_CParser *__pyx_vtabptr_5_yaml_CParser;


/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":932
 *     return 1
 * 
 * cdef class CEmitter:             # <<<<<<<<<<<<<<
 * 
 *     cdef yaml_emitter_t emitter
 */

struct __pyx_vtabstruct_5_yaml_CEmitter {
  PyObject *(*_emitter_error)(struct __pyx_obj_5_yaml_CEmitter *);
  int (*_object_to_event)(struct __pyx_obj_5_yaml_CEmitter *, PyObject *, yaml_event_t *);
  int (*_anchor_node)(struct __pyx_obj_5_yaml_CEmitter *, PyObject *);
  int (*_serialize_node)(struct __pyx_obj_5_yaml_CEmitter *, PyObject *, PyObject *, PyObject *);
};
static struct __pyx_vtabstruct_5_yaml_CEmitter *__pyx_vtabptr_5_yaml_CEmitter;
/* Module declarations from _yaml */

static PyTypeObject *__pyx_ptype_5_yaml_Mark = 0;
static PyTypeObject *__pyx_ptype_5_yaml_CParser = 0;
static PyTypeObject *__pyx_ptype_5_yaml_CEmitter = 0;
static int __pyx_f_5_yaml_input_handler(void *, char *, int, int *); /*proto*/
static int __pyx_f_5_yaml_output_handler(void *, char *, int); /*proto*/
#define __Pyx_MODULE_NAME "_yaml"
int __pyx_module_is_main__yaml = 0;

/* Implementation of _yaml */
static PyObject *__pyx_int_1;
static PyObject *__pyx_int_0;
static char __pyx_k___main__[] = "__main__";
static PyObject *__pyx_kp___main__;
static char __pyx_k___init__[] = "__init__";
static PyObject *__pyx_kp___init__;
static char __pyx_k_get_snippet[] = "get_snippet";
static PyObject *__pyx_kp_get_snippet;
static char __pyx_k___str__[] = "__str__";
static PyObject *__pyx_kp___str__;
static char __pyx_k___dealloc__[] = "__dealloc__";
static PyObject *__pyx_kp___dealloc__;
static char __pyx_k_raw_scan[] = "raw_scan";
static PyObject *__pyx_kp_raw_scan;
static char __pyx_k_get_token[] = "get_token";
static PyObject *__pyx_kp_get_token;
static char __pyx_k_peek_token[] = "peek_token";
static PyObject *__pyx_kp_peek_token;
static char __pyx_k_check_token[] = "check_token";
static PyObject *__pyx_kp_check_token;
static char __pyx_k_raw_parse[] = "raw_parse";
static PyObject *__pyx_kp_raw_parse;
static char __pyx_k_get_event[] = "get_event";
static PyObject *__pyx_kp_get_event;
static char __pyx_k_peek_event[] = "peek_event";
static PyObject *__pyx_kp_peek_event;
static char __pyx_k_check_event[] = "check_event";
static PyObject *__pyx_kp_check_event;
static char __pyx_k_check_node[] = "check_node";
static PyObject *__pyx_kp_check_node;
static char __pyx_k_get_node[] = "get_node";
static PyObject *__pyx_kp_get_node;
static char __pyx_k_get_single_node[] = "get_single_node";
static PyObject *__pyx_kp_get_single_node;
static char __pyx_k_emit[] = "emit";
static PyObject *__pyx_kp_emit;
static char __pyx_k_open[] = "open";
static PyObject *__pyx_kp_open;
static char __pyx_k_close[] = "close";
static PyObject *__pyx_kp_close;
static char __pyx_k_serialize[] = "serialize";
static PyObject *__pyx_kp_serialize;
static char __pyx_k_name[] = "name";
static PyObject *__pyx_kp_name;
static char __pyx_k_index[] = "index";
static PyObject *__pyx_kp_index;
static char __pyx_k_line[] = "line";
static PyObject *__pyx_kp_line;
static char __pyx_k_column[] = "column";
static PyObject *__pyx_kp_column;
static char __pyx_k_buffer[] = "buffer";
static PyObject *__pyx_kp_buffer;
static char __pyx_k_pointer[] = "pointer";
static PyObject *__pyx_kp_pointer;
static char __pyx_k_stream[] = "stream";
static PyObject *__pyx_kp_stream;
static char __pyx_k_canonical[] = "canonical";
static PyObject *__pyx_kp_canonical;
static char __pyx_k_indent[] = "indent";
static PyObject *__pyx_kp_indent;
static char __pyx_k_width[] = "width";
static PyObject *__pyx_kp_width;
static char __pyx_k_allow_unicode[] = "allow_unicode";
static PyObject *__pyx_kp_allow_unicode;
static char __pyx_k_line_break[] = "line_break";
static PyObject *__pyx_kp_line_break;
static char __pyx_k_encoding[] = "encoding";
static PyObject *__pyx_kp_encoding;
static char __pyx_k_explicit_start[] = "explicit_start";
static PyObject *__pyx_kp_explicit_start;
static char __pyx_k_explicit_end[] = "explicit_end";
static PyObject *__pyx_kp_explicit_end;
static char __pyx_k_version[] = "version";
static PyObject *__pyx_kp_version;
static char __pyx_k_tags[] = "tags";
static PyObject *__pyx_kp_tags;
static char __pyx_k_event_object[] = "event_object";
static PyObject *__pyx_kp_event_object;
static char __pyx_k_node[] = "node";
static PyObject *__pyx_kp_node;
static char __pyx_k_yaml[] = "yaml";
static PyObject *__pyx_kp_yaml;
static char __pyx_k_error[] = "error";
static PyObject *__pyx_kp_error;
static char __pyx_k_YAMLError[] = "YAMLError";
static PyObject *__pyx_kp_YAMLError;
static char __pyx_k_reader[] = "reader";
static PyObject *__pyx_kp_reader;
static char __pyx_k_ReaderError[] = "ReaderError";
static PyObject *__pyx_kp_ReaderError;
static char __pyx_k_scanner[] = "scanner";
static PyObject *__pyx_kp_scanner;
static char __pyx_k_ScannerError[] = "ScannerError";
static PyObject *__pyx_kp_ScannerError;
static char __pyx_k_parser[] = "parser";
static PyObject *__pyx_kp_parser;
static char __pyx_k_ParserError[] = "ParserError";
static PyObject *__pyx_kp_ParserError;
static char __pyx_k_composer[] = "composer";
static PyObject *__pyx_kp_composer;
static char __pyx_k_ComposerError[] = "ComposerError";
static PyObject *__pyx_kp_ComposerError;
static char __pyx_k_constructor[] = "constructor";
static PyObject *__pyx_kp_constructor;
static char __pyx_k_ConstructorError[] = "ConstructorError";
static PyObject *__pyx_kp_ConstructorError;
static char __pyx_k_emitter[] = "emitter";
static PyObject *__pyx_kp_emitter;
static char __pyx_k_EmitterError[] = "EmitterError";
static PyObject *__pyx_kp_EmitterError;
static char __pyx_k_serializer[] = "serializer";
static PyObject *__pyx_kp_serializer;
static char __pyx_k_SerializerError[] = "SerializerError";
static PyObject *__pyx_kp_SerializerError;
static char __pyx_k_representer[] = "representer";
static PyObject *__pyx_kp_representer;
static char __pyx_k_RepresenterError[] = "RepresenterError";
static PyObject *__pyx_kp_RepresenterError;
static char __pyx_k_tokens[] = "tokens";
static PyObject *__pyx_kp_tokens;
static char __pyx_k_StreamStartToken[] = "StreamStartToken";
static PyObject *__pyx_kp_StreamStartToken;
static char __pyx_k_StreamEndToken[] = "StreamEndToken";
static PyObject *__pyx_kp_StreamEndToken;
static char __pyx_k_DirectiveToken[] = "DirectiveToken";
static PyObject *__pyx_kp_DirectiveToken;
static char __pyx_k_DocumentStartToken[] = "DocumentStartToken";
static PyObject *__pyx_kp_DocumentStartToken;
static char __pyx_k_DocumentEndToken[] = "DocumentEndToken";
static PyObject *__pyx_kp_DocumentEndToken;
static char __pyx_k_1[] = "BlockSequenceStartToken";
static PyObject *__pyx_kp_1;
static char __pyx_k_2[] = "BlockMappingStartToken";
static PyObject *__pyx_kp_2;
static char __pyx_k_BlockEndToken[] = "BlockEndToken";
static PyObject *__pyx_kp_BlockEndToken;
static char __pyx_k_3[] = "FlowSequenceStartToken";
static PyObject *__pyx_kp_3;
static char __pyx_k_4[] = "FlowMappingStartToken";
static PyObject *__pyx_kp_4;
static char __pyx_k_5[] = "FlowSequenceEndToken";
static PyObject *__pyx_kp_5;
static char __pyx_k_FlowMappingEndToken[] = "FlowMappingEndToken";
static PyObject *__pyx_kp_FlowMappingEndToken;
static char __pyx_k_KeyToken[] = "KeyToken";
static PyObject *__pyx_kp_KeyToken;
static char __pyx_k_ValueToken[] = "ValueToken";
static PyObject *__pyx_kp_ValueToken;
static char __pyx_k_BlockEntryToken[] = "BlockEntryToken";
static PyObject *__pyx_kp_BlockEntryToken;
static char __pyx_k_FlowEntryToken[] = "FlowEntryToken";
static PyObject *__pyx_kp_FlowEntryToken;
static char __pyx_k_AliasToken[] = "AliasToken";
static PyObject *__pyx_kp_AliasToken;
static char __pyx_k_AnchorToken[] = "AnchorToken";
static PyObject *__pyx_kp_AnchorToken;
static char __pyx_k_TagToken[] = "TagToken";
static PyObject *__pyx_kp_TagToken;
static char __pyx_k_ScalarToken[] = "ScalarToken";
static PyObject *__pyx_kp_ScalarToken;
static char __pyx_k_events[] = "events";
static PyObject *__pyx_kp_events;
static char __pyx_k_StreamStartEvent[] = "StreamStartEvent";
static PyObject *__pyx_kp_StreamStartEvent;
static char __pyx_k_StreamEndEvent[] = "StreamEndEvent";
static PyObject *__pyx_kp_StreamEndEvent;
static char __pyx_k_DocumentStartEvent[] = "DocumentStartEvent";
static PyObject *__pyx_kp_DocumentStartEvent;
static char __pyx_k_DocumentEndEvent[] = "DocumentEndEvent";
static PyObject *__pyx_kp_DocumentEndEvent;
static char __pyx_k_AliasEvent[] = "AliasEvent";
static PyObject *__pyx_kp_AliasEvent;
static char __pyx_k_ScalarEvent[] = "ScalarEvent";
static PyObject *__pyx_kp_ScalarEvent;
static char __pyx_k_SequenceStartEvent[] = "SequenceStartEvent";
static PyObject *__pyx_kp_SequenceStartEvent;
static char __pyx_k_SequenceEndEvent[] = "SequenceEndEvent";
static PyObject *__pyx_kp_SequenceEndEvent;
static char __pyx_k_MappingStartEvent[] = "MappingStartEvent";
static PyObject *__pyx_kp_MappingStartEvent;
static char __pyx_k_MappingEndEvent[] = "MappingEndEvent";
static PyObject *__pyx_kp_MappingEndEvent;
static char __pyx_k_nodes[] = "nodes";
static PyObject *__pyx_kp_nodes;
static char __pyx_k_ScalarNode[] = "ScalarNode";
static PyObject *__pyx_kp_ScalarNode;
static char __pyx_k_SequenceNode[] = "SequenceNode";
static PyObject *__pyx_kp_SequenceNode;
static char __pyx_k_MappingNode[] = "MappingNode";
static PyObject *__pyx_kp_MappingNode;
static char __pyx_k_MemoryError[] = "MemoryError";
static PyObject *__pyx_kp_MemoryError;
static char __pyx_k_read[] = "read";
static PyObject *__pyx_kp_read;
static char __pyx_k_AttributeError[] = "AttributeError";
static PyObject *__pyx_kp_AttributeError;
static char __pyx_k_TypeError[] = "TypeError";
static PyObject *__pyx_kp_TypeError;
static char __pyx_k_ValueError[] = "ValueError";
static PyObject *__pyx_kp_ValueError;
static char __pyx_k_22[] = "YAML";
static PyObject *__pyx_kp_22;
static char __pyx_k_23[] = "TAG";
static PyObject *__pyx_kp_23;
static char __pyx_k___class__[] = "__class__";
static PyObject *__pyx_kp___class__;
static char __pyx_k_start_mark[] = "start_mark";
static PyObject *__pyx_kp_start_mark;
static char __pyx_k_descend_resolver[] = "descend_resolver";
static PyObject *__pyx_kp_descend_resolver;
static char __pyx_k_ascend_resolver[] = "ascend_resolver";
static PyObject *__pyx_kp_ascend_resolver;
static char __pyx_k_resolve[] = "resolve";
static PyObject *__pyx_kp_resolve;
static char __pyx_k_append[] = "append";
static PyObject *__pyx_kp_append;
static char __pyx_k_end_mark[] = "end_mark";
static PyObject *__pyx_kp_end_mark;
static char __pyx_k_61[] = "encoding";
static PyObject *__pyx_kp_61;
static char __pyx_k_62[] = "encoding";
static PyObject *__pyx_kp_62;
static char __pyx_k_explicit[] = "explicit";
static PyObject *__pyx_kp_explicit;
static char __pyx_k_anchor[] = "anchor";
static PyObject *__pyx_kp_anchor;
static char __pyx_k_tag[] = "tag";
static PyObject *__pyx_kp_tag;
static char __pyx_k_value[] = "value";
static PyObject *__pyx_kp_value;
static char __pyx_k_implicit[] = "implicit";
static PyObject *__pyx_kp_implicit;
static char __pyx_k_style[] = "style";
static PyObject *__pyx_kp_style;
static char __pyx_k_flow_style[] = "flow_style";
static PyObject *__pyx_kp_flow_style;
static char __pyx_k_write[] = "write";
static PyObject *__pyx_kp_write;
static PyObject *__pyx_builtin_MemoryError;
static PyObject *__pyx_builtin_AttributeError;
static PyObject *__pyx_builtin_TypeError;
static PyObject *__pyx_builtin_ValueError;
static PyObject *__pyx_kp_6;
static char __pyx_k_6[] = "  in \"%s\", line %d, column %d";
static PyObject *__pyx_kp_7;
static PyObject *__pyx_kp_8;
static PyObject *__pyx_kp_9;
static PyObject *__pyx_kp_10;
static PyObject *__pyx_kp_11;
static PyObject *__pyx_kp_12;
static PyObject *__pyx_kp_13;
static PyObject *__pyx_kp_14;
static char __pyx_k_7[] = "<file>";
static char __pyx_k_8[] = "<file>";
static char __pyx_k_9[] = "<unicode string>";
static char __pyx_k_10[] = "<unicode string>";
static char __pyx_k_11[] = "<byte string>";
static char __pyx_k_12[] = "<byte string>";
static char __pyx_k_13[] = "a string or stream input is required";
static char __pyx_k_14[] = "a string or stream input is required";
static PyObject *__pyx_kp_15;
static PyObject *__pyx_kp_16;
static PyObject *__pyx_kp_17;
static PyObject *__pyx_kp_18;
static char __pyx_k_15[] = "?";
static char __pyx_k_16[] = "?";
static char __pyx_k_17[] = "no parser error";
static char __pyx_k_18[] = "no parser error";
static PyObject *__pyx_kp_19;
static PyObject *__pyx_kp_20;
static PyObject *__pyx_kp_21;
static PyObject *__pyx_kp_25;
static PyObject *__pyx_kp_26;
static PyObject *__pyx_kp_27;
static PyObject *__pyx_kp_28;
static PyObject *__pyx_kp_29;
static PyObject *__pyx_kp_30;
static PyObject *__pyx_kp_31;
static char __pyx_k_19[] = "utf-8";
static char __pyx_k_20[] = "utf-16-le";
static char __pyx_k_21[] = "utf-16-be";
static char __pyx_k_24[] = "strict";
static char __pyx_k_25[] = "";
static char __pyx_k_26[] = "'";
static char __pyx_k_27[] = "\"";
static char __pyx_k_28[] = "|";
static char __pyx_k_29[] = ">";
static char __pyx_k_30[] = "unknown token type";
static char __pyx_k_31[] = "unknown token type";
static PyObject *__pyx_kp_32;
static PyObject *__pyx_kp_33;
static PyObject *__pyx_kp_34;
static PyObject *__pyx_kp_36;
static PyObject *__pyx_kp_37;
static PyObject *__pyx_kp_38;
static PyObject *__pyx_kp_39;
static PyObject *__pyx_kp_40;
static PyObject *__pyx_kp_41;
static PyObject *__pyx_kp_42;
static char __pyx_k_32[] = "utf-8";
static char __pyx_k_33[] = "utf-16-le";
static char __pyx_k_34[] = "utf-16-be";
static char __pyx_k_35[] = "strict";
static char __pyx_k_36[] = "";
static char __pyx_k_37[] = "'";
static char __pyx_k_38[] = "\"";
static char __pyx_k_39[] = "|";
static char __pyx_k_40[] = ">";
static char __pyx_k_41[] = "unknown event type";
static char __pyx_k_42[] = "unknown event type";
static PyObject *__pyx_kp_43;
static PyObject *__pyx_kp_44;
static PyObject *__pyx_kp_45;
static PyObject *__pyx_kp_46;
static char __pyx_k_43[] = "expected a single document in the stream";
static char __pyx_k_44[] = "but found another document";
static char __pyx_k_45[] = "expected a single document in the stream";
static char __pyx_k_46[] = "but found another document";
static PyObject *__pyx_kp_47;
static PyObject *__pyx_kp_48;
static PyObject *__pyx_kp_49;
static PyObject *__pyx_kp_50;
static PyObject *__pyx_kp_51;
static PyObject *__pyx_kp_52;
static char __pyx_k_47[] = "found undefined alias";
static char __pyx_k_48[] = "found undefined alias";
static char __pyx_k_49[] = "found duplicate anchor; first occurence";
static char __pyx_k_50[] = "second occurence";
static char __pyx_k_51[] = "found duplicate anchor; first occurence";
static char __pyx_k_52[] = "second occurence";
static PyObject *__pyx_kp_54;
static PyObject *__pyx_kp_55;
static PyObject *__pyx_kp_56;
static PyObject *__pyx_kp_57;
static PyObject *__pyx_kp_58;
static char __pyx_k_53[] = "strict";
static char __pyx_k_54[] = "";
static char __pyx_k_55[] = "'";
static char __pyx_k_56[] = "\"";
static char __pyx_k_57[] = "|";
static char __pyx_k_58[] = ">";
static PyObject *__pyx_kp_59;
static PyObject *__pyx_kp_60;
static char __pyx_k_59[] = "a string value is expected";
static char __pyx_k_60[] = "a string value is expected";
static PyObject *__pyx_kp_63;
static PyObject *__pyx_kp_64;
static PyObject *__pyx_kp_65;
static char __pyx_k_63[] = "\r";
static char __pyx_k_64[] = "\n";
static char __pyx_k_65[] = "\r\n";
static PyObject *__pyx_kp_66;
static PyObject *__pyx_kp_67;
static char __pyx_k_66[] = "no emitter error";
static char __pyx_k_67[] = "no emitter error";
static PyObject *__pyx_kp_68;
static PyObject *__pyx_kp_69;
static PyObject *__pyx_kp_70;
static PyObject *__pyx_kp_71;
static PyObject *__pyx_kp_72;
static PyObject *__pyx_kp_73;
static PyObject *__pyx_kp_74;
static PyObject *__pyx_kp_75;
static PyObject *__pyx_kp_76;
static PyObject *__pyx_kp_77;
static PyObject *__pyx_kp_78;
static PyObject *__pyx_kp_79;
static PyObject *__pyx_kp_80;
static PyObject *__pyx_kp_81;
static PyObject *__pyx_kp_82;
static PyObject *__pyx_kp_83;
static PyObject *__pyx_kp_84;
static PyObject *__pyx_kp_85;
static PyObject *__pyx_kp_86;
static PyObject *__pyx_kp_87;
static PyObject *__pyx_kp_88;
static PyObject *__pyx_kp_89;
static PyObject *__pyx_kp_90;
static PyObject *__pyx_kp_91;
static PyObject *__pyx_kp_92;
static PyObject *__pyx_kp_93;
static PyObject *__pyx_kp_94;
static PyObject *__pyx_kp_95;
static PyObject *__pyx_kp_96;
static PyObject *__pyx_kp_97;
static PyObject *__pyx_kp_98;
static PyObject *__pyx_kp_99;
static PyObject *__pyx_kp_100;
static PyObject *__pyx_kp_101;
static PyObject *__pyx_kp_102;
static PyObject *__pyx_kp_103;
static char __pyx_k_68[] = "utf-16-le";
static char __pyx_k_69[] = "utf-16-le";
static char __pyx_k_70[] = "utf-16-be";
static char __pyx_k_71[] = "utf-16-be";
static char __pyx_k_72[] = "too many tags";
static char __pyx_k_73[] = "too many tags";
static char __pyx_k_74[] = "tag handle must be a string";
static char __pyx_k_75[] = "tag handle must be a string";
static char __pyx_k_76[] = "tag prefix must be a string";
static char __pyx_k_77[] = "tag prefix must be a string";
static char __pyx_k_78[] = "anchor must be a string";
static char __pyx_k_79[] = "anchor must be a string";
static char __pyx_k_80[] = "anchor must be a string";
static char __pyx_k_81[] = "anchor must be a string";
static char __pyx_k_82[] = "tag must be a string";
static char __pyx_k_83[] = "tag must be a string";
static char __pyx_k_84[] = "value must be a string";
static char __pyx_k_85[] = "value must be a string";
static char __pyx_k_86[] = "'";
static char __pyx_k_87[] = "'";
static char __pyx_k_88[] = "\"";
static char __pyx_k_89[] = "\"";
static char __pyx_k_90[] = "|";
static char __pyx_k_91[] = "|";
static char __pyx_k_92[] = ">";
static char __pyx_k_93[] = ">";
static char __pyx_k_94[] = "anchor must be a string";
static char __pyx_k_95[] = "anchor must be a string";
static char __pyx_k_96[] = "tag must be a string";
static char __pyx_k_97[] = "tag must be a string";
static char __pyx_k_98[] = "anchor must be a string";
static char __pyx_k_99[] = "anchor must be a string";
static char __pyx_k_100[] = "tag must be a string";
static char __pyx_k_101[] = "tag must be a string";
static char __pyx_k_102[] = "invalid event %s";
static char __pyx_k_103[] = "invalid event %s";
static PyObject *__pyx_kp_104;
static PyObject *__pyx_kp_105;
static PyObject *__pyx_kp_106;
static PyObject *__pyx_kp_107;
static PyObject *__pyx_kp_108;
static PyObject *__pyx_kp_109;
static PyObject *__pyx_kp_110;
static PyObject *__pyx_kp_111;
static char __pyx_k_104[] = "utf-16-le";
static char __pyx_k_105[] = "utf-16-le";
static char __pyx_k_106[] = "utf-16-be";
static char __pyx_k_107[] = "utf-16-be";
static char __pyx_k_108[] = "serializer is closed";
static char __pyx_k_109[] = "serializer is closed";
static char __pyx_k_110[] = "serializer is already opened";
static char __pyx_k_111[] = "serializer is already opened";
static PyObject *__pyx_kp_112;
static PyObject *__pyx_kp_113;
static char __pyx_k_112[] = "serializer is not opened";
static char __pyx_k_113[] = "serializer is not opened";
static PyObject *__pyx_kp_114;
static PyObject *__pyx_kp_115;
static PyObject *__pyx_kp_116;
static PyObject *__pyx_kp_117;
static PyObject *__pyx_kp_118;
static PyObject *__pyx_kp_119;
static PyObject *__pyx_kp_120;
static PyObject *__pyx_kp_121;
static PyObject *__pyx_kp_122;
static PyObject *__pyx_kp_123;
static char __pyx_k_114[] = "serializer is not opened";
static char __pyx_k_115[] = "serializer is not opened";
static char __pyx_k_116[] = "serializer is closed";
static char __pyx_k_117[] = "serializer is closed";
static char __pyx_k_118[] = "too many tags";
static char __pyx_k_119[] = "too many tags";
static char __pyx_k_120[] = "tag handle must be a string";
static char __pyx_k_121[] = "tag handle must be a string";
static char __pyx_k_122[] = "tag prefix must be a string";
static char __pyx_k_123[] = "tag prefix must be a string";
static PyObject *__pyx_kp_124;
static char __pyx_k_124[] = "id%03d";
static PyObject *__pyx_kp_125;
static PyObject *__pyx_kp_126;
static PyObject *__pyx_kp_127;
static PyObject *__pyx_kp_128;
static PyObject *__pyx_kp_129;
static PyObject *__pyx_kp_130;
static PyObject *__pyx_kp_131;
static PyObject *__pyx_kp_132;
static PyObject *__pyx_kp_133;
static PyObject *__pyx_kp_134;
static PyObject *__pyx_kp_135;
static PyObject *__pyx_kp_136;
static PyObject *__pyx_kp_137;
static PyObject *__pyx_kp_138;
static PyObject *__pyx_kp_139;
static PyObject *__pyx_kp_140;
static PyObject *__pyx_kp_141;
static PyObject *__pyx_kp_142;
static char __pyx_k_125[] = "anchor must be a string";
static char __pyx_k_126[] = "anchor must be a string";
static char __pyx_k_127[] = "tag must be a string";
static char __pyx_k_128[] = "tag must be a string";
static char __pyx_k_129[] = "value must be a string";
static char __pyx_k_130[] = "value must be a string";
static char __pyx_k_131[] = "'";
static char __pyx_k_132[] = "'";
static char __pyx_k_133[] = "\"";
static char __pyx_k_134[] = "\"";
static char __pyx_k_135[] = "|";
static char __pyx_k_136[] = "|";
static char __pyx_k_137[] = ">";
static char __pyx_k_138[] = ">";
static char __pyx_k_139[] = "tag must be a string";
static char __pyx_k_140[] = "tag must be a string";
static char __pyx_k_141[] = "tag must be a string";
static char __pyx_k_142[] = "tag must be a string";
static char __pyx_k_143[] = "strict";

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":4
 * import yaml
 * 
 * def get_version_string():             # <<<<<<<<<<<<<<
 *     cdef char *value
 *     value = yaml_get_version_string()
 */

static PyObject *__pyx_pf_5_yaml_get_version_string(PyObject *__pyx_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_get_version_string(PyObject *__pyx_self, PyObject *unused) {
  char *__pyx_v_value;
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_SetupRefcountContext("get_version_string");
  __pyx_self = __pyx_self;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":6
 * def get_version_string():
 *     cdef char *value
 *     value = yaml_get_version_string()             # <<<<<<<<<<<<<<
 *     if PY_MAJOR_VERSION < 3:
 *         return value
 */
  __pyx_v_value = yaml_get_version_string();

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":7
 *     cdef char *value
 *     value = yaml_get_version_string()
 *     if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *         return value
 *     else:
 */
  __pyx_t_1 = (PY_MAJOR_VERSION < 3);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":8
 *     value = yaml_get_version_string()
 *     if PY_MAJOR_VERSION < 3:
 *         return value             # <<<<<<<<<<<<<<
 *     else:
 *         return PyUnicode_FromString(value)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
    goto __pyx_L5;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":10
 *         return value
 *     else:
 *         return PyUnicode_FromString(value)             # <<<<<<<<<<<<<<
 * 
 * def get_version():
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = PyUnicode_FromString(__pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
  }
  __pyx_L5:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("_yaml.get_version_string");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":12
 *         return PyUnicode_FromString(value)
 * 
 * def get_version():             # <<<<<<<<<<<<<<
 *     cdef int major, minor, patch
 *     yaml_get_version(&major, &minor, &patch)
 */

static PyObject *__pyx_pf_5_yaml_get_version(PyObject *__pyx_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_get_version(PyObject *__pyx_self, PyObject *unused) {
  int __pyx_v_major;
  int __pyx_v_minor;
  int __pyx_v_patch;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_SetupRefcountContext("get_version");
  __pyx_self = __pyx_self;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":14
 * def get_version():
 *     cdef int major, minor, patch
 *     yaml_get_version(&major, &minor, &patch)             # <<<<<<<<<<<<<<
 *     return (major, minor, patch)
 * 
 */
  yaml_get_version((&__pyx_v_major), (&__pyx_v_minor), (&__pyx_v_patch));

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":15
 *     cdef int major, minor, patch
 *     yaml_get_version(&major, &minor, &patch)
 *     return (major, minor, patch)             # <<<<<<<<<<<<<<
 * 
 * #Mark = yaml.error.Mark
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyInt_FromLong(__pyx_v_major); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_minor); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_patch); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = ((PyObject *)__pyx_t_4);
  __pyx_t_4 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_yaml.get_version");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":72
 *     cdef readonly pointer
 * 
 *     def __init__(self, object name, int index, int line, int column,             # <<<<<<<<<<<<<<
 *             object buffer, object pointer):
 *         self.name = name
 */

static int __pyx_pf_5_yaml_4Mark___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_5_yaml_4Mark___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_name = 0;
  int __pyx_v_index;
  int __pyx_v_line;
  int __pyx_v_column;
  PyObject *__pyx_v_buffer = 0;
  PyObject *__pyx_v_pointer = 0;
  int __pyx_r;
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_name,&__pyx_kp_index,&__pyx_kp_line,&__pyx_kp_column,&__pyx_kp_buffer,&__pyx_kp_pointer,0};
  __Pyx_SetupRefcountContext("__init__");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[6] = {0,0,0,0,0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
      case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
      case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_kp_name);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_kp_index);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
      case  2:
      values[2] = PyDict_GetItem(__pyx_kwds, __pyx_kp_line);
      if (likely(values[2])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 2); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
      case  3:
      values[3] = PyDict_GetItem(__pyx_kwds, __pyx_kp_column);
      if (likely(values[3])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 3); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
      case  4:
      values[4] = PyDict_GetItem(__pyx_kwds, __pyx_kp_buffer);
      if (likely(values[4])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 4); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
      case  5:
      values[5] = PyDict_GetItem(__pyx_kwds, __pyx_kp_pointer);
      if (likely(values[5])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, 5); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_name = values[0];
    __pyx_v_index = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_line = __Pyx_PyInt_AsInt(values[2]); if (unlikely((__pyx_v_line == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_column = __Pyx_PyInt_AsInt(values[3]); if (unlikely((__pyx_v_column == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_buffer = values[4];
    __pyx_v_pointer = values[5];
  } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_name = PyTuple_GET_ITEM(__pyx_args, 0);
    __pyx_v_index = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_index == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_line = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((__pyx_v_line == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_column = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 3)); if (unlikely((__pyx_v_column == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    __pyx_v_buffer = PyTuple_GET_ITEM(__pyx_args, 4);
    __pyx_v_pointer = PyTuple_GET_ITEM(__pyx_args, 5);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("_yaml.Mark.__init__");
  return -1;
  __pyx_L4_argument_unpacking_done:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":74
 *     def __init__(self, object name, int index, int line, int column,
 *             object buffer, object pointer):
 *         self.name = name             # <<<<<<<<<<<<<<
 *         self.index = index
 *         self.line = line
 */
  __Pyx_INCREF(__pyx_v_name);
  __Pyx_GIVEREF(__pyx_v_name);
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->name);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->name);
  ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->name = __pyx_v_name;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":75
 *             object buffer, object pointer):
 *         self.name = name
 *         self.index = index             # <<<<<<<<<<<<<<
 *         self.line = line
 *         self.column = column
 */
  ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->index = __pyx_v_index;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":76
 *         self.name = name
 *         self.index = index
 *         self.line = line             # <<<<<<<<<<<<<<
 *         self.column = column
 *         self.buffer = buffer
 */
  ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->line = __pyx_v_line;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":77
 *         self.index = index
 *         self.line = line
 *         self.column = column             # <<<<<<<<<<<<<<
 *         self.buffer = buffer
 *         self.pointer = pointer
 */
  ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->column = __pyx_v_column;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":78
 *         self.line = line
 *         self.column = column
 *         self.buffer = buffer             # <<<<<<<<<<<<<<
 *         self.pointer = pointer
 * 
 */
  __Pyx_INCREF(__pyx_v_buffer);
  __Pyx_GIVEREF(__pyx_v_buffer);
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->buffer);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->buffer);
  ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->buffer = __pyx_v_buffer;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":79
 *         self.column = column
 *         self.buffer = buffer
 *         self.pointer = pointer             # <<<<<<<<<<<<<<
 * 
 *     def get_snippet(self):
 */
  __Pyx_INCREF(__pyx_v_pointer);
  __Pyx_GIVEREF(__pyx_v_pointer);
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->pointer);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->pointer);
  ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->pointer = __pyx_v_pointer;

  __pyx_r = 0;
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":81
 *         self.pointer = pointer
 * 
 *     def get_snippet(self):             # <<<<<<<<<<<<<<
 *         return None
 * 
 */

static PyObject *__pyx_pf_5_yaml_4Mark_get_snippet(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_4Mark_get_snippet(PyObject *__pyx_v_self, PyObject *unused) {
  PyObject *__pyx_r = NULL;
  __Pyx_SetupRefcountContext("get_snippet");

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":82
 * 
 *     def get_snippet(self):
 *         return None             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(Py_None);
  __pyx_r = Py_None;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":84
 *         return None
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         where = "  in \"%s\", line %d, column %d"   \
 *                 % (self.name, self.line+1, self.column+1)
 */

static PyObject *__pyx_pf_5_yaml_4Mark___str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pf_5_yaml_4Mark___str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_v_where;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_SetupRefcountContext("__str__");
  __pyx_v_where = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":86
 *     def __str__(self):
 *         where = "  in \"%s\", line %d, column %d"   \
 *                 % (self.name, self.line+1, self.column+1)             # <<<<<<<<<<<<<<
 *         return where
 * 
 */
  __pyx_t_1 = PyInt_FromLong((((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->line + 1)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong((((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->column + 1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __Pyx_INCREF(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->name);
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->name);
  __Pyx_GIVEREF(((struct __pyx_obj_5_yaml_Mark *)__pyx_v_self)->name);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_2 = PyNumber_Remainder(__pyx_kp_6, ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_v_where);
  __pyx_v_where = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":87
 *         where = "  in \"%s\", line %d, column %d"   \
 *                 % (self.name, self.line+1, self.column+1)
 *         return where             # <<<<<<<<<<<<<<
 * 
 * #class YAMLError(Exception):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_where);
  __pyx_r = __pyx_v_where;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.Mark.__str__");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_where);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":262
 *     cdef int unicode_source
 * 
 *     def __init__(self, stream):             # <<<<<<<<<<<<<<
 *         cdef is_readable
 *         if yaml_parser_initialize(&self.parser) == 0:
 */

static int __pyx_pf_5_yaml_7CParser___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_5_yaml_7CParser___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_stream = 0;
  PyObject *__pyx_v_is_readable;
  int __pyx_r;
  int __pyx_1;
  PyObject *__pyx_2 = 0;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_stream,0};
  __Pyx_SetupRefcountContext("__init__");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[1] = {0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_kp_stream);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 262; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_stream = values[0];
  } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_stream = PyTuple_GET_ITEM(__pyx_args, 0);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 262; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("_yaml.CParser.__init__");
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __Pyx_INCREF(__pyx_v_stream);
  __pyx_v_is_readable = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":264
 *     def __init__(self, stream):
 *         cdef is_readable
 *         if yaml_parser_initialize(&self.parser) == 0:             # <<<<<<<<<<<<<<
 *             raise MemoryError
 *         self.parsed_event.type = YAML_NO_EVENT
 */
  __pyx_t_1 = (yaml_parser_initialize((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parser)) == 0);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":265
 *         cdef is_readable
 *         if yaml_parser_initialize(&self.parser) == 0:
 *             raise MemoryError             # <<<<<<<<<<<<<<
 *         self.parsed_event.type = YAML_NO_EVENT
 *         is_readable = 1
 */
    __Pyx_Raise(__pyx_builtin_MemoryError, 0, 0);
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L6;
  }
  __pyx_L6:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":266
 *         if yaml_parser_initialize(&self.parser) == 0:
 *             raise MemoryError
 *         self.parsed_event.type = YAML_NO_EVENT             # <<<<<<<<<<<<<<
 *         is_readable = 1
 *         try:
 */
  ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event.type = YAML_NO_EVENT;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":267
 *             raise MemoryError
 *         self.parsed_event.type = YAML_NO_EVENT
 *         is_readable = 1             # <<<<<<<<<<<<<<
 *         try:
 *             stream.read
 */
  __Pyx_INCREF(__pyx_int_1);
  __Pyx_DECREF(__pyx_v_is_readable);
  __pyx_v_is_readable = __pyx_int_1;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":268
 *         self.parsed_event.type = YAML_NO_EVENT
 *         is_readable = 1
 *         try:             # <<<<<<<<<<<<<<
 *             stream.read
 *         except AttributeError:
 */
  {
    PyObject *__pyx_save_exc_type, *__pyx_save_exc_value, *__pyx_save_exc_tb;
    __Pyx_ExceptionSave(&__pyx_save_exc_type, &__pyx_save_exc_value, &__pyx_save_exc_tb);
    __Pyx_XGOTREF(__pyx_save_exc_type);
    __Pyx_XGOTREF(__pyx_save_exc_value);
    __Pyx_XGOTREF(__pyx_save_exc_tb);
    /*try:*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":269
 *         is_readable = 1
 *         try:
 *             stream.read             # <<<<<<<<<<<<<<
 *         except AttributeError:
 *             is_readable = 0
 */
      __pyx_t_2 = PyObject_GetAttr(__pyx_v_stream, __pyx_kp_read); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    }
    __Pyx_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
    __Pyx_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
    __Pyx_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
    goto __pyx_L14_try_end;
    __pyx_L7_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":270
 *         try:
 *             stream.read
 *         except AttributeError:             # <<<<<<<<<<<<<<
 *             is_readable = 0
 *         self.unicode_source = 0
 */
    __pyx_1 = PyErr_ExceptionMatches(__pyx_builtin_AttributeError);
    if (__pyx_1) {
      __Pyx_AddTraceback("_yaml.__init__");
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_3, &__pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L9_except_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_GOTREF(__pyx_t_4);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":271
 *             stream.read
 *         except AttributeError:
 *             is_readable = 0             # <<<<<<<<<<<<<<
 *         self.unicode_source = 0
 *         if is_readable:
 */
      __Pyx_INCREF(__pyx_int_0);
      __Pyx_DECREF(__pyx_v_is_readable);
      __pyx_v_is_readable = __pyx_int_0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      goto __pyx_L8_exception_handled;
    }
    __pyx_L9_except_error:;
    __Pyx_XDECREF(__pyx_save_exc_type);
    __Pyx_XDECREF(__pyx_save_exc_value);
    __Pyx_XDECREF(__pyx_save_exc_tb);
    goto __pyx_L1_error;
    __pyx_L8_exception_handled:;
    __Pyx_XGIVEREF(__pyx_save_exc_type);
    __Pyx_XGIVEREF(__pyx_save_exc_value);
    __Pyx_XGIVEREF(__pyx_save_exc_tb);
    __Pyx_ExceptionReset(__pyx_save_exc_type, __pyx_save_exc_value, __pyx_save_exc_tb);
    __pyx_L14_try_end:;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":272
 *         except AttributeError:
 *             is_readable = 0
 *         self.unicode_source = 0             # <<<<<<<<<<<<<<
 *         if is_readable:
 *             self.stream = stream
 */
  ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->unicode_source = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":273
 *             is_readable = 0
 *         self.unicode_source = 0
 *         if is_readable:             # <<<<<<<<<<<<<<
 *             self.stream = stream
 *             try:
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_is_readable); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":274
 *         self.unicode_source = 0
 *         if is_readable:
 *             self.stream = stream             # <<<<<<<<<<<<<<
 *             try:
 *                 self.stream_name = stream.name
 */
    __Pyx_INCREF(__pyx_v_stream);
    __Pyx_GIVEREF(__pyx_v_stream);
    __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream);
    __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream);
    ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream = __pyx_v_stream;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":275
 *         if is_readable:
 *             self.stream = stream
 *             try:             # <<<<<<<<<<<<<<
 *                 self.stream_name = stream.name
 *             except AttributeError:
 */
    {
      PyObject *__pyx_save_exc_type, *__pyx_save_exc_value, *__pyx_save_exc_tb;
      __Pyx_ExceptionSave(&__pyx_save_exc_type, &__pyx_save_exc_value, &__pyx_save_exc_tb);
      __Pyx_XGOTREF(__pyx_save_exc_type);
      __Pyx_XGOTREF(__pyx_save_exc_value);
      __Pyx_XGOTREF(__pyx_save_exc_tb);
      /*try:*/ {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":276
 *             self.stream = stream
 *             try:
 *                 self.stream_name = stream.name             # <<<<<<<<<<<<<<
 *             except AttributeError:
 *                 if PY_MAJOR_VERSION < 3:
 */
        __pyx_t_4 = PyObject_GetAttr(__pyx_v_stream, __pyx_kp_name); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L18_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_GIVEREF(__pyx_t_4);
        __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
        __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
        ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name = __pyx_t_4;
        __pyx_t_4 = 0;
      }
      __Pyx_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
      __Pyx_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
      __Pyx_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
      goto __pyx_L25_try_end;
      __pyx_L18_error:;
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":277
 *             try:
 *                 self.stream_name = stream.name
 *             except AttributeError:             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     self.stream_name = '<file>'
 */
      __pyx_1 = PyErr_ExceptionMatches(__pyx_builtin_AttributeError);
      if (__pyx_1) {
        __Pyx_AddTraceback("_yaml.__init__");
        if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_3, &__pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 277; __pyx_clineno = __LINE__; goto __pyx_L20_except_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_GOTREF(__pyx_t_2);

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":278
 *                 self.stream_name = stream.name
 *             except AttributeError:
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     self.stream_name = '<file>'
 *                 else:
 */
        __pyx_t_1 = (PY_MAJOR_VERSION < 3);
        if (__pyx_t_1) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":279
 *             except AttributeError:
 *                 if PY_MAJOR_VERSION < 3:
 *                     self.stream_name = '<file>'             # <<<<<<<<<<<<<<
 *                 else:
 *                     self.stream_name = u'<file>'
 */
          __Pyx_INCREF(__pyx_kp_7);
          __Pyx_GIVEREF(__pyx_kp_7);
          __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
          __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
          ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name = __pyx_kp_7;
          goto __pyx_L28;
        }
        /*else*/ {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":281
 *                     self.stream_name = '<file>'
 *                 else:
 *                     self.stream_name = u'<file>'             # <<<<<<<<<<<<<<
 *             self.stream_cache = None
 *             self.stream_cache_len = 0
 */
          __Pyx_INCREF(((PyObject *)__pyx_kp_8));
          __Pyx_GIVEREF(((PyObject *)__pyx_kp_8));
          __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
          __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
          ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name = ((PyObject *)__pyx_kp_8);
        }
        __pyx_L28:;
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        goto __pyx_L19_exception_handled;
      }
      __pyx_L20_except_error:;
      __Pyx_XDECREF(__pyx_save_exc_type);
      __Pyx_XDECREF(__pyx_save_exc_value);
      __Pyx_XDECREF(__pyx_save_exc_tb);
      goto __pyx_L1_error;
      __pyx_L19_exception_handled:;
      __Pyx_XGIVEREF(__pyx_save_exc_type);
      __Pyx_XGIVEREF(__pyx_save_exc_value);
      __Pyx_XGIVEREF(__pyx_save_exc_tb);
      __Pyx_ExceptionReset(__pyx_save_exc_type, __pyx_save_exc_value, __pyx_save_exc_tb);
      __pyx_L25_try_end:;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":282
 *                 else:
 *                     self.stream_name = u'<file>'
 *             self.stream_cache = None             # <<<<<<<<<<<<<<
 *             self.stream_cache_len = 0
 *             self.stream_cache_pos = 0
 */
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_cache);
    __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_cache);
    ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_cache = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":283
 *                     self.stream_name = u'<file>'
 *             self.stream_cache = None
 *             self.stream_cache_len = 0             # <<<<<<<<<<<<<<
 *             self.stream_cache_pos = 0
 *             yaml_parser_set_input(&self.parser, input_handler, <void *>self)
 */
    ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_cache_len = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":284
 *             self.stream_cache = None
 *             self.stream_cache_len = 0
 *             self.stream_cache_pos = 0             # <<<<<<<<<<<<<<
 *             yaml_parser_set_input(&self.parser, input_handler, <void *>self)
 *         else:
 */
    ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_cache_pos = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":285
 *             self.stream_cache_len = 0
 *             self.stream_cache_pos = 0
 *             yaml_parser_set_input(&self.parser, input_handler, <void *>self)             # <<<<<<<<<<<<<<
 *         else:
 *             if PyUnicode_CheckExact(stream) != 0:
 */
    yaml_parser_set_input((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parser), __pyx_f_5_yaml_input_handler, ((void *)__pyx_v_self));
    goto __pyx_L17;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":287
 *             yaml_parser_set_input(&self.parser, input_handler, <void *>self)
 *         else:
 *             if PyUnicode_CheckExact(stream) != 0:             # <<<<<<<<<<<<<<
 *                 stream = PyUnicode_AsUTF8String(stream)
 *                 if PY_MAJOR_VERSION < 3:
 */
    __pyx_t_1 = (PyUnicode_CheckExact(__pyx_v_stream) != 0);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":288
 *         else:
 *             if PyUnicode_CheckExact(stream) != 0:
 *                 stream = PyUnicode_AsUTF8String(stream)             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     self.stream_name = '<unicode string>'
 */
      __pyx_t_2 = PyUnicode_AsUTF8String(__pyx_v_stream); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_v_stream);
      __pyx_v_stream = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":289
 *             if PyUnicode_CheckExact(stream) != 0:
 *                 stream = PyUnicode_AsUTF8String(stream)
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     self.stream_name = '<unicode string>'
 *                 else:
 */
      __pyx_t_1 = (PY_MAJOR_VERSION < 3);
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":290
 *                 stream = PyUnicode_AsUTF8String(stream)
 *                 if PY_MAJOR_VERSION < 3:
 *                     self.stream_name = '<unicode string>'             # <<<<<<<<<<<<<<
 *                 else:
 *                     self.stream_name = u'<unicode string>'
 */
        __Pyx_INCREF(__pyx_kp_9);
        __Pyx_GIVEREF(__pyx_kp_9);
        __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
        __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
        ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name = __pyx_kp_9;
        goto __pyx_L30;
      }
      /*else*/ {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":292
 *                     self.stream_name = '<unicode string>'
 *                 else:
 *                     self.stream_name = u'<unicode string>'             # <<<<<<<<<<<<<<
 *                 self.unicode_source = 1
 *             else:
 */
        __Pyx_INCREF(((PyObject *)__pyx_kp_10));
        __Pyx_GIVEREF(((PyObject *)__pyx_kp_10));
        __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
        __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
        ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name = ((PyObject *)__pyx_kp_10);
      }
      __pyx_L30:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":293
 *                 else:
 *                     self.stream_name = u'<unicode string>'
 *                 self.unicode_source = 1             # <<<<<<<<<<<<<<
 *             else:
 *                 if PY_MAJOR_VERSION < 3:
 */
      ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->unicode_source = 1;
      goto __pyx_L29;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":295
 *                 self.unicode_source = 1
 *             else:
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     self.stream_name = '<byte string>'
 *                 else:
 */
      __pyx_t_1 = (PY_MAJOR_VERSION < 3);
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":296
 *             else:
 *                 if PY_MAJOR_VERSION < 3:
 *                     self.stream_name = '<byte string>'             # <<<<<<<<<<<<<<
 *                 else:
 *                     self.stream_name = u'<byte string>'
 */
        __Pyx_INCREF(__pyx_kp_11);
        __Pyx_GIVEREF(__pyx_kp_11);
        __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
        __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
        ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name = __pyx_kp_11;
        goto __pyx_L31;
      }
      /*else*/ {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":298
 *                     self.stream_name = '<byte string>'
 *                 else:
 *                     self.stream_name = u'<byte string>'             # <<<<<<<<<<<<<<
 *             if PyString_CheckExact(stream) == 0:
 *                 if PY_MAJOR_VERSION < 3:
 */
        __Pyx_INCREF(((PyObject *)__pyx_kp_12));
        __Pyx_GIVEREF(((PyObject *)__pyx_kp_12));
        __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
        __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
        ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name = ((PyObject *)__pyx_kp_12);
      }
      __pyx_L31:;
    }
    __pyx_L29:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":299
 *                 else:
 *                     self.stream_name = u'<byte string>'
 *             if PyString_CheckExact(stream) == 0:             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise TypeError("a string or stream input is required")
 */
    __pyx_t_1 = (PyString_CheckExact(__pyx_v_stream) == 0);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":300
 *                     self.stream_name = u'<byte string>'
 *             if PyString_CheckExact(stream) == 0:
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     raise TypeError("a string or stream input is required")
 *                 else:
 */
      __pyx_t_1 = (PY_MAJOR_VERSION < 3);
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":301
 *             if PyString_CheckExact(stream) == 0:
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise TypeError("a string or stream input is required")             # <<<<<<<<<<<<<<
 *                 else:
 *                     raise TypeError(u"a string or stream input is required")
 */
        __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_2));
        __Pyx_INCREF(__pyx_kp_13);
        PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_13);
        __Pyx_GIVEREF(__pyx_kp_13);
        __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
        __Pyx_Raise(__pyx_t_3, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L33;
      }
      /*else*/ {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":303
 *                     raise TypeError("a string or stream input is required")
 *                 else:
 *                     raise TypeError(u"a string or stream input is required")             # <<<<<<<<<<<<<<
 *             self.stream = stream
 *             yaml_parser_set_input_string(&self.parser, PyString_AS_STRING(stream), PyString_GET_SIZE(stream))
 */
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_3));
        __Pyx_INCREF(((PyObject *)__pyx_kp_14));
        PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_14));
        __Pyx_GIVEREF(((PyObject *)__pyx_kp_14));
        __pyx_t_2 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
        __Pyx_Raise(__pyx_t_2, 0, 0);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      }
      __pyx_L33:;
      goto __pyx_L32;
    }
    __pyx_L32:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":304
 *                 else:
 *                     raise TypeError(u"a string or stream input is required")
 *             self.stream = stream             # <<<<<<<<<<<<<<
 *             yaml_parser_set_input_string(&self.parser, PyString_AS_STRING(stream), PyString_GET_SIZE(stream))
 *         self.current_token = None
 */
    __Pyx_INCREF(__pyx_v_stream);
    __Pyx_GIVEREF(__pyx_v_stream);
    __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream);
    __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream);
    ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream = __pyx_v_stream;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":305
 *                     raise TypeError(u"a string or stream input is required")
 *             self.stream = stream
 *             yaml_parser_set_input_string(&self.parser, PyString_AS_STRING(stream), PyString_GET_SIZE(stream))             # <<<<<<<<<<<<<<
 *         self.current_token = None
 *         self.current_event = None
 */
    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));
  }
  __pyx_L17:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":306
 *             self.stream = stream
 *             yaml_parser_set_input_string(&self.parser, PyString_AS_STRING(stream), PyString_GET_SIZE(stream))
 *         self.current_token = None             # <<<<<<<<<<<<<<
 *         self.current_event = None
 *         self.anchors = {}
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token);
  ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token = Py_None;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":307
 *             yaml_parser_set_input_string(&self.parser, PyString_AS_STRING(stream), PyString_GET_SIZE(stream))
 *         self.current_token = None
 *         self.current_event = None             # <<<<<<<<<<<<<<
 *         self.anchors = {}
 * 
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event);
  ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event = Py_None;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":308
 *         self.current_token = None
 *         self.current_event = None
 *         self.anchors = {}             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  __pyx_2 = PyDict_New(); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_2));
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->anchors);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->anchors);
  ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->anchors = ((PyObject *)__pyx_2);
  __pyx_2 = 0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_2);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_yaml.CParser.__init__");
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_is_readable);
  __Pyx_DECREF(__pyx_v_stream);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":310
 *         self.anchors = {}
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         yaml_parser_delete(&self.parser)
 *         yaml_event_delete(&self.parsed_event)
 */

static void __pyx_pf_5_yaml_7CParser___dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pf_5_yaml_7CParser___dealloc__(PyObject *__pyx_v_self) {
  __Pyx_SetupRefcountContext("__dealloc__");

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":311
 * 
 *     def __dealloc__(self):
 *         yaml_parser_delete(&self.parser)             # <<<<<<<<<<<<<<
 *         yaml_event_delete(&self.parsed_event)
 * 
 */
  yaml_parser_delete((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parser));

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":312
 *     def __dealloc__(self):
 *         yaml_parser_delete(&self.parser)
 *         yaml_event_delete(&self.parsed_event)             # <<<<<<<<<<<<<<
 * 
 *     cdef object _parser_error(self):
 */
  yaml_event_delete((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event));

  __Pyx_FinishRefcountContext();
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":314
 *         yaml_event_delete(&self.parsed_event)
 * 
 *     cdef object _parser_error(self):             # <<<<<<<<<<<<<<
 *         if self.parser.error == YAML_MEMORY_ERROR:
 *             return MemoryError
 */

static  PyObject *__pyx_f_5_yaml_7CParser__parser_error(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) {
  PyObject *__pyx_v_context_mark;
  PyObject *__pyx_v_problem_mark;
  PyObject *__pyx_v_context;
  PyObject *__pyx_v_problem;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_1 = 0;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_SetupRefcountContext("_parser_error");
  __pyx_v_context_mark = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_problem_mark = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_context = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_problem = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":315
 * 
 *     cdef object _parser_error(self):
 *         if self.parser.error == YAML_MEMORY_ERROR:             # <<<<<<<<<<<<<<
 *             return MemoryError
 *         elif self.parser.error == YAML_READER_ERROR:
 */
  __pyx_t_1 = (__pyx_v_self->parser.error == YAML_MEMORY_ERROR);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":316
 *     cdef object _parser_error(self):
 *         if self.parser.error == YAML_MEMORY_ERROR:
 *             return MemoryError             # <<<<<<<<<<<<<<
 *         elif self.parser.error == YAML_READER_ERROR:
 *             if PY_MAJOR_VERSION < 3:
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_builtin_MemoryError);
    __pyx_r = __pyx_builtin_MemoryError;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":317
 *         if self.parser.error == YAML_MEMORY_ERROR:
 *             return MemoryError
 *         elif self.parser.error == YAML_READER_ERROR:             # <<<<<<<<<<<<<<
 *             if PY_MAJOR_VERSION < 3:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,
 */
  __pyx_t_1 = (__pyx_v_self->parser.error == YAML_READER_ERROR);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":318
 *             return MemoryError
 *         elif self.parser.error == YAML_READER_ERROR:
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,
 *                         self.parser.problem_value, '?', self.parser.problem)
 */
    __pyx_t_1 = (PY_MAJOR_VERSION < 3);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":319
 *         elif self.parser.error == YAML_READER_ERROR:
 *             if PY_MAJOR_VERSION < 3:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,             # <<<<<<<<<<<<<<
 *                         self.parser.problem_value, '?', self.parser.problem)
 *             else:
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ReaderError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_2 = PyInt_FromLong(__pyx_v_self->parser.problem_offset); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":320
 *             if PY_MAJOR_VERSION < 3:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,
 *                         self.parser.problem_value, '?', self.parser.problem)             # <<<<<<<<<<<<<<
 *             else:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,
 */
      __pyx_t_3 = PyInt_FromLong(__pyx_v_self->parser.problem_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyBytes_FromString(__pyx_v_self->parser.problem); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = PyTuple_New(5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_5));
      __Pyx_INCREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_self->stream_name);
      __Pyx_GIVEREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
      __Pyx_GIVEREF(__pyx_t_2);
      PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_kp_15);
      PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_kp_15);
      __Pyx_GIVEREF(__pyx_kp_15);
      PyTuple_SET_ITEM(__pyx_t_5, 4, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_4);
      __pyx_t_2 = 0;
      __pyx_t_3 = 0;
      __pyx_t_4 = 0;
      __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
      __pyx_r = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L0;
      goto __pyx_L4;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":322
 *                         self.parser.problem_value, '?', self.parser.problem)
 *             else:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,             # <<<<<<<<<<<<<<
 *                         self.parser.problem_value, u'?', PyUnicode_FromString(self.parser.problem))
 *         elif self.parser.error == YAML_SCANNER_ERROR    \
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ReaderError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_4 = PyInt_FromLong(__pyx_v_self->parser.problem_offset); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":323
 *             else:
 *                 return ReaderError(self.stream_name, self.parser.problem_offset,
 *                         self.parser.problem_value, u'?', PyUnicode_FromString(self.parser.problem))             # <<<<<<<<<<<<<<
 *         elif self.parser.error == YAML_SCANNER_ERROR    \
 *                 or self.parser.error == YAML_PARSER_ERROR:
 */
      __pyx_t_5 = PyInt_FromLong(__pyx_v_self->parser.problem_value); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_3 = PyUnicode_FromString(__pyx_v_self->parser.problem); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self->stream_name);
      __Pyx_GIVEREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_4);
      PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_5);
      __Pyx_INCREF(((PyObject *)__pyx_kp_16));
      PyTuple_SET_ITEM(__pyx_t_2, 3, ((PyObject *)__pyx_kp_16));
      __Pyx_GIVEREF(((PyObject *)__pyx_kp_16));
      PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_3);
      __pyx_t_4 = 0;
      __pyx_t_5 = 0;
      __pyx_t_3 = 0;
      __pyx_t_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;
    }
    __pyx_L4:;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":325
 *                         self.parser.problem_value, u'?', PyUnicode_FromString(self.parser.problem))
 *         elif self.parser.error == YAML_SCANNER_ERROR    \
 *                 or self.parser.error == YAML_PARSER_ERROR:             # <<<<<<<<<<<<<<
 *             context_mark = None
 *             problem_mark = None
 */
  if (!(__pyx_v_self->parser.error == YAML_SCANNER_ERROR)) {
    __pyx_t_1 = (__pyx_v_self->parser.error == YAML_PARSER_ERROR);
  } else {
    __pyx_t_1 = (__pyx_v_self->parser.error == YAML_SCANNER_ERROR);
  }
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":326
 *         elif self.parser.error == YAML_SCANNER_ERROR    \
 *                 or self.parser.error == YAML_PARSER_ERROR:
 *             context_mark = None             # <<<<<<<<<<<<<<
 *             problem_mark = None
 *             if self.parser.context != NULL:
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_context_mark);
    __pyx_v_context_mark = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":327
 *                 or self.parser.error == YAML_PARSER_ERROR:
 *             context_mark = None
 *             problem_mark = None             # <<<<<<<<<<<<<<
 *             if self.parser.context != NULL:
 *                 context_mark = Mark(self.stream_name,
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_problem_mark);
    __pyx_v_problem_mark = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":328
 *             context_mark = None
 *             problem_mark = None
 *             if self.parser.context != NULL:             # <<<<<<<<<<<<<<
 *                 context_mark = Mark(self.stream_name,
 *                         self.parser.context_mark.index,
 */
    __pyx_t_1 = (__pyx_v_self->parser.context != NULL);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":330
 *             if self.parser.context != NULL:
 *                 context_mark = Mark(self.stream_name,
 *                         self.parser.context_mark.index,             # <<<<<<<<<<<<<<
 *                         self.parser.context_mark.line,
 *                         self.parser.context_mark.column, None, None)
 */
      __pyx_t_3 = PyInt_FromLong(__pyx_v_self->parser.context_mark.index); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":331
 *                 context_mark = Mark(self.stream_name,
 *                         self.parser.context_mark.index,
 *                         self.parser.context_mark.line,             # <<<<<<<<<<<<<<
 *                         self.parser.context_mark.column, None, None)
 *             if self.parser.problem != NULL:
 */
      __pyx_t_2 = PyInt_FromLong(__pyx_v_self->parser.context_mark.line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":332
 *                         self.parser.context_mark.index,
 *                         self.parser.context_mark.line,
 *                         self.parser.context_mark.column, None, None)             # <<<<<<<<<<<<<<
 *             if self.parser.problem != NULL:
 *                 problem_mark = Mark(self.stream_name,
 */
      __pyx_t_5 = PyInt_FromLong(__pyx_v_self->parser.context_mark.column); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = PyTuple_New(6); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 329; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_4));
      __Pyx_INCREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_self->stream_name);
      __Pyx_GIVEREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_2);
      __Pyx_GIVEREF(__pyx_t_2);
      PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_5);
      __Pyx_INCREF(Py_None);
      PyTuple_SET_ITEM(__pyx_t_4, 4, Py_None);
      __Pyx_GIVEREF(Py_None);
      __Pyx_INCREF(Py_None);
      PyTuple_SET_ITEM(__pyx_t_4, 5, Py_None);
      __Pyx_GIVEREF(Py_None);
      __pyx_t_3 = 0;
      __pyx_t_2 = 0;
      __pyx_t_5 = 0;
      __pyx_t_5 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 329; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_v_context_mark);
      __pyx_v_context_mark = __pyx_t_5;
      __pyx_t_5 = 0;
      goto __pyx_L5;
    }
    __pyx_L5:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":333
 *                         self.parser.context_mark.line,
 *                         self.parser.context_mark.column, None, None)
 *             if self.parser.problem != NULL:             # <<<<<<<<<<<<<<
 *                 problem_mark = Mark(self.stream_name,
 *                         self.parser.problem_mark.index,
 */
    __pyx_t_1 = (__pyx_v_self->parser.problem != NULL);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":335
 *             if self.parser.problem != NULL:
 *                 problem_mark = Mark(self.stream_name,
 *                         self.parser.problem_mark.index,             # <<<<<<<<<<<<<<
 *                         self.parser.problem_mark.line,
 *                         self.parser.problem_mark.column, None, None)
 */
      __pyx_t_5 = PyInt_FromLong(__pyx_v_self->parser.problem_mark.index); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":336
 *                 problem_mark = Mark(self.stream_name,
 *                         self.parser.problem_mark.index,
 *                         self.parser.problem_mark.line,             # <<<<<<<<<<<<<<
 *                         self.parser.problem_mark.column, None, None)
 *             context = None
 */
      __pyx_t_4 = PyInt_FromLong(__pyx_v_self->parser.problem_mark.line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":337
 *                         self.parser.problem_mark.index,
 *                         self.parser.problem_mark.line,
 *                         self.parser.problem_mark.column, None, None)             # <<<<<<<<<<<<<<
 *             context = None
 *             if self.parser.context != NULL:
 */
      __pyx_t_2 = PyInt_FromLong(__pyx_v_self->parser.problem_mark.column); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = PyTuple_New(6); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_3));
      __Pyx_INCREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self->stream_name);
      __Pyx_GIVEREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_5);
      PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_4);
      PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
      __Pyx_GIVEREF(__pyx_t_2);
      __Pyx_INCREF(Py_None);
      PyTuple_SET_ITEM(__pyx_t_3, 4, Py_None);
      __Pyx_GIVEREF(Py_None);
      __Pyx_INCREF(Py_None);
      PyTuple_SET_ITEM(__pyx_t_3, 5, Py_None);
      __Pyx_GIVEREF(Py_None);
      __pyx_t_5 = 0;
      __pyx_t_4 = 0;
      __pyx_t_2 = 0;
      __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_v_problem_mark);
      __pyx_v_problem_mark = __pyx_t_2;
      __pyx_t_2 = 0;
      goto __pyx_L6;
    }
    __pyx_L6:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":338
 *                         self.parser.problem_mark.line,
 *                         self.parser.problem_mark.column, None, None)
 *             context = None             # <<<<<<<<<<<<<<
 *             if self.parser.context != NULL:
 *                 if PY_MAJOR_VERSION < 3:
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_context);
    __pyx_v_context = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":339
 *                         self.parser.problem_mark.column, None, None)
 *             context = None
 *             if self.parser.context != NULL:             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     context = self.parser.context
 */
    __pyx_t_1 = (__pyx_v_self->parser.context != NULL);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":340
 *             context = None
 *             if self.parser.context != NULL:
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     context = self.parser.context
 *                 else:
 */
      __pyx_t_1 = (PY_MAJOR_VERSION < 3);
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":341
 *             if self.parser.context != NULL:
 *                 if PY_MAJOR_VERSION < 3:
 *                     context = self.parser.context             # <<<<<<<<<<<<<<
 *                 else:
 *                     context = PyUnicode_FromString(self.parser.context)
 */
        __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_self->parser.context); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_v_context);
        __pyx_v_context = __pyx_t_2;
        __pyx_t_2 = 0;
        goto __pyx_L8;
      }
      /*else*/ {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":343
 *                     context = self.parser.context
 *                 else:
 *                     context = PyUnicode_FromString(self.parser.context)             # <<<<<<<<<<<<<<
 *             if PY_MAJOR_VERSION < 3:
 *                 problem = self.parser.problem
 */
        __pyx_t_2 = PyUnicode_FromString(__pyx_v_self->parser.context); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(__pyx_v_context);
        __pyx_v_context = __pyx_t_2;
        __pyx_t_2 = 0;
      }
      __pyx_L8:;
      goto __pyx_L7;
    }
    __pyx_L7:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":344
 *                 else:
 *                     context = PyUnicode_FromString(self.parser.context)
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 problem = self.parser.problem
 *             else:
 */
    __pyx_t_1 = (PY_MAJOR_VERSION < 3);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":345
 *                     context = PyUnicode_FromString(self.parser.context)
 *             if PY_MAJOR_VERSION < 3:
 *                 problem = self.parser.problem             # <<<<<<<<<<<<<<
 *             else:
 *                 problem = PyUnicode_FromString(self.parser.problem)
 */
      __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_self->parser.problem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_v_problem);
      __pyx_v_problem = __pyx_t_2;
      __pyx_t_2 = 0;
      goto __pyx_L9;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":347
 *                 problem = self.parser.problem
 *             else:
 *                 problem = PyUnicode_FromString(self.parser.problem)             # <<<<<<<<<<<<<<
 *             if self.parser.error == YAML_SCANNER_ERROR:
 *                 return ScannerError(context, context_mark, problem, problem_mark)
 */
      __pyx_t_2 = PyUnicode_FromString(__pyx_v_self->parser.problem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_v_problem);
      __pyx_v_problem = __pyx_t_2;
      __pyx_t_2 = 0;
    }
    __pyx_L9:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":348
 *             else:
 *                 problem = PyUnicode_FromString(self.parser.problem)
 *             if self.parser.error == YAML_SCANNER_ERROR:             # <<<<<<<<<<<<<<
 *                 return ScannerError(context, context_mark, problem, problem_mark)
 *             else:
 */
    __pyx_t_1 = (__pyx_v_self->parser.error == YAML_SCANNER_ERROR);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":349
 *                 problem = PyUnicode_FromString(self.parser.problem)
 *             if self.parser.error == YAML_SCANNER_ERROR:
 *                 return ScannerError(context, context_mark, problem, problem_mark)             # <<<<<<<<<<<<<<
 *             else:
 *                 return ParserError(context, context_mark, problem, problem_mark)
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ScannerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_context);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_context);
      __Pyx_GIVEREF(__pyx_v_context);
      __Pyx_INCREF(__pyx_v_context_mark);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_context_mark);
      __Pyx_GIVEREF(__pyx_v_context_mark);
      __Pyx_INCREF(__pyx_v_problem);
      PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_problem);
      __Pyx_GIVEREF(__pyx_v_problem);
      __Pyx_INCREF(__pyx_v_problem_mark);
      PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_v_problem_mark);
      __Pyx_GIVEREF(__pyx_v_problem_mark);
      __pyx_t_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L0;
      goto __pyx_L10;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":351
 *                 return ScannerError(context, context_mark, problem, problem_mark)
 *             else:
 *                 return ParserError(context, context_mark, problem, problem_mark)             # <<<<<<<<<<<<<<
 *         if PY_MAJOR_VERSION < 3:
 *             raise ValueError("no parser error")
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ParserError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_3));
      __Pyx_INCREF(__pyx_v_context);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_context);
      __Pyx_GIVEREF(__pyx_v_context);
      __Pyx_INCREF(__pyx_v_context_mark);
      PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_context_mark);
      __Pyx_GIVEREF(__pyx_v_context_mark);
      __Pyx_INCREF(__pyx_v_problem);
      PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_problem);
      __Pyx_GIVEREF(__pyx_v_problem);
      __Pyx_INCREF(__pyx_v_problem_mark);
      PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_v_problem_mark);
      __Pyx_GIVEREF(__pyx_v_problem_mark);
      __pyx_t_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      goto __pyx_L0;
    }
    __pyx_L10:;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":352
 *             else:
 *                 return ParserError(context, context_mark, problem, problem_mark)
 *         if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *             raise ValueError("no parser error")
 *         else:
 */
  __pyx_t_1 = (PY_MAJOR_VERSION < 3);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":353
 *                 return ParserError(context, context_mark, problem, problem_mark)
 *         if PY_MAJOR_VERSION < 3:
 *             raise ValueError("no parser error")             # <<<<<<<<<<<<<<
 *         else:
 *             raise ValueError(u"no parser error")
 */
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_INCREF(__pyx_kp_17);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_17);
    __Pyx_GIVEREF(__pyx_kp_17);
    __pyx_t_3 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L11;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":355
 *             raise ValueError("no parser error")
 *         else:
 *             raise ValueError(u"no parser error")             # <<<<<<<<<<<<<<
 * 
 *     def raw_scan(self):
 */
    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_INCREF(((PyObject *)__pyx_kp_18));
    PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_18));
    __Pyx_GIVEREF(((PyObject *)__pyx_kp_18));
    __pyx_t_2 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    __Pyx_Raise(__pyx_t_2, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_L11:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_yaml.CParser._parser_error");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_context_mark);
  __Pyx_DECREF(__pyx_v_problem_mark);
  __Pyx_DECREF(__pyx_v_context);
  __Pyx_DECREF(__pyx_v_problem);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":357
 *             raise ValueError(u"no parser error")
 * 
 *     def raw_scan(self):             # <<<<<<<<<<<<<<
 *         cdef yaml_token_t token
 *         cdef int done
 */

static PyObject *__pyx_pf_5_yaml_7CParser_raw_scan(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_7CParser_raw_scan(PyObject *__pyx_v_self, PyObject *unused) {
  yaml_token_t __pyx_v_token;
  int __pyx_v_done;
  int __pyx_v_count;
  PyObject *__pyx_v_error;
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_SetupRefcountContext("raw_scan");
  __pyx_v_error = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":361
 *         cdef int done
 *         cdef int count
 *         count = 0             # <<<<<<<<<<<<<<
 *         done = 0
 *         while done == 0:
 */
  __pyx_v_count = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":362
 *         cdef int count
 *         count = 0
 *         done = 0             # <<<<<<<<<<<<<<
 *         while done == 0:
 *             if yaml_parser_scan(&self.parser, &token) == 0:
 */
  __pyx_v_done = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":363
 *         count = 0
 *         done = 0
 *         while done == 0:             # <<<<<<<<<<<<<<
 *             if yaml_parser_scan(&self.parser, &token) == 0:
 *                 error = self._parser_error()
 */
  while (1) {
    __pyx_t_1 = (__pyx_v_done == 0);
    if (!__pyx_t_1) break;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":364
 *         done = 0
 *         while done == 0:
 *             if yaml_parser_scan(&self.parser, &token) == 0:             # <<<<<<<<<<<<<<
 *                 error = self._parser_error()
 *                 raise error
 */
    __pyx_t_2 = yaml_parser_scan((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parser), (&__pyx_v_token)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_t_1 = (__pyx_t_2 == 0);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":365
 *         while done == 0:
 *             if yaml_parser_scan(&self.parser, &token) == 0:
 *                 error = self._parser_error()             # <<<<<<<<<<<<<<
 *                 raise error
 *             if token.type == YAML_NO_TOKEN:
 */
      __pyx_t_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 (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_v_error);
      __pyx_v_error = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":366
 *             if yaml_parser_scan(&self.parser, &token) == 0:
 *                 error = self._parser_error()
 *                 raise error             # <<<<<<<<<<<<<<
 *             if token.type == YAML_NO_TOKEN:
 *                 done = 1
 */
      __Pyx_Raise(__pyx_v_error, 0, 0);
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L7;
    }
    __pyx_L7:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":367
 *                 error = self._parser_error()
 *                 raise error
 *             if token.type == YAML_NO_TOKEN:             # <<<<<<<<<<<<<<
 *                 done = 1
 *             else:
 */
    __pyx_t_1 = (__pyx_v_token.type == YAML_NO_TOKEN);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":368
 *                 raise error
 *             if token.type == YAML_NO_TOKEN:
 *                 done = 1             # <<<<<<<<<<<<<<
 *             else:
 *                 count = count+1
 */
      __pyx_v_done = 1;
      goto __pyx_L8;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":370
 *                 done = 1
 *             else:
 *                 count = count+1             # <<<<<<<<<<<<<<
 *             yaml_token_delete(&token)
 *         return count
 */
      __pyx_v_count = (__pyx_v_count + 1);
    }
    __pyx_L8:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":371
 *             else:
 *                 count = count+1
 *             yaml_token_delete(&token)             # <<<<<<<<<<<<<<
 *         return count
 * 
 */
    yaml_token_delete((&__pyx_v_token));
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":372
 *                 count = count+1
 *             yaml_token_delete(&token)
 *         return count             # <<<<<<<<<<<<<<
 * 
 *     cdef object _scan(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CParser.raw_scan");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_error);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":374
 *         return count
 * 
 *     cdef object _scan(self):             # <<<<<<<<<<<<<<
 *         cdef yaml_token_t token
 *         if yaml_parser_scan(&self.parser, &token) == 0:
 */

static  PyObject *__pyx_f_5_yaml_7CParser__scan(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) {
  yaml_token_t __pyx_v_token;
  PyObject *__pyx_v_error;
  PyObject *__pyx_v_token_object;
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_SetupRefcountContext("_scan");
  __pyx_v_error = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_token_object = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":376
 *     cdef object _scan(self):
 *         cdef yaml_token_t token
 *         if yaml_parser_scan(&self.parser, &token) == 0:             # <<<<<<<<<<<<<<
 *             error = self._parser_error()
 *             raise error
 */
  __pyx_t_1 = yaml_parser_scan((&__pyx_v_self->parser), (&__pyx_v_token)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":377
 *         cdef yaml_token_t token
 *         if yaml_parser_scan(&self.parser, &token) == 0:
 *             error = self._parser_error()             # <<<<<<<<<<<<<<
 *             raise error
 *         token_object = self._token_to_object(&token)
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parser_error(__pyx_v_self); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_error);
    __pyx_v_error = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":378
 *         if yaml_parser_scan(&self.parser, &token) == 0:
 *             error = self._parser_error()
 *             raise error             # <<<<<<<<<<<<<<
 *         token_object = self._token_to_object(&token)
 *         yaml_token_delete(&token)
 */
    __Pyx_Raise(__pyx_v_error, 0, 0);
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":379
 *             error = self._parser_error()
 *             raise error
 *         token_object = self._token_to_object(&token)             # <<<<<<<<<<<<<<
 *         yaml_token_delete(&token)
 *         return token_object
 */
  __pyx_t_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_token_to_object(__pyx_v_self, (&__pyx_v_token)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_v_token_object);
  __pyx_v_token_object = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":380
 *             raise error
 *         token_object = self._token_to_object(&token)
 *         yaml_token_delete(&token)             # <<<<<<<<<<<<<<
 *         return token_object
 * 
 */
  yaml_token_delete((&__pyx_v_token));

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":381
 *         token_object = self._token_to_object(&token)
 *         yaml_token_delete(&token)
 *         return token_object             # <<<<<<<<<<<<<<
 * 
 *     cdef object _token_to_object(self, yaml_token_t *token):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_token_object);
  __pyx_r = __pyx_v_token_object;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CParser._scan");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_error);
  __Pyx_DECREF(__pyx_v_token_object);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":383
 *         return token_object
 * 
 *     cdef object _token_to_object(self, yaml_token_t *token):             # <<<<<<<<<<<<<<
 *         start_mark = Mark(self.stream_name,
 *                 token.start_mark.index,
 */

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) {
  PyObject *__pyx_v_start_mark;
  PyObject *__pyx_v_end_mark;
  PyObject *__pyx_v_encoding;
  PyObject *__pyx_v_handle;
  PyObject *__pyx_v_prefix;
  PyObject *__pyx_v_value;
  PyObject *__pyx_v_suffix;
  PyObject *__pyx_v_plain;
  PyObject *__pyx_v_style;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_1 = 0;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  __Pyx_SetupRefcountContext("_token_to_object");
  __pyx_v_start_mark = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_end_mark = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_encoding = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_handle = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_prefix = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_suffix = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_plain = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_style = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":385
 *     cdef object _token_to_object(self, yaml_token_t *token):
 *         start_mark = Mark(self.stream_name,
 *                 token.start_mark.index,             # <<<<<<<<<<<<<<
 *                 token.start_mark.line,
 *                 token.start_mark.column,
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_token->start_mark.index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":386
 *         start_mark = Mark(self.stream_name,
 *                 token.start_mark.index,
 *                 token.start_mark.line,             # <<<<<<<<<<<<<<
 *                 token.start_mark.column,
 *                 None, None)
 */
  __pyx_t_2 = PyInt_FromLong(__pyx_v_token->start_mark.line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":387
 *                 token.start_mark.index,
 *                 token.start_mark.line,
 *                 token.start_mark.column,             # <<<<<<<<<<<<<<
 *                 None, None)
 *         end_mark = Mark(self.stream_name,
 */
  __pyx_t_3 = PyInt_FromLong(__pyx_v_token->start_mark.column); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":388
 *                 token.start_mark.line,
 *                 token.start_mark.column,
 *                 None, None)             # <<<<<<<<<<<<<<
 *         end_mark = Mark(self.stream_name,
 *                 token.end_mark.index,
 */
  __pyx_t_4 = PyTuple_New(6); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __Pyx_INCREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_self->stream_name);
  __Pyx_GIVEREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_4, 4, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_4, 5, Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_v_start_mark);
  __pyx_v_start_mark = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":390
 *                 None, None)
 *         end_mark = Mark(self.stream_name,
 *                 token.end_mark.index,             # <<<<<<<<<<<<<<
 *                 token.end_mark.line,
 *                 token.end_mark.column,
 */
  __pyx_t_3 = PyInt_FromLong(__pyx_v_token->end_mark.index); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":391
 *         end_mark = Mark(self.stream_name,
 *                 token.end_mark.index,
 *                 token.end_mark.line,             # <<<<<<<<<<<<<<
 *                 token.end_mark.column,
 *                 None, None)
 */
  __pyx_t_4 = PyInt_FromLong(__pyx_v_token->end_mark.line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":392
 *                 token.end_mark.index,
 *                 token.end_mark.line,
 *                 token.end_mark.column,             # <<<<<<<<<<<<<<
 *                 None, None)
 *         if token.type == YAML_NO_TOKEN:
 */
  __pyx_t_2 = PyInt_FromLong(__pyx_v_token->end_mark.column); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":393
 *                 token.end_mark.line,
 *                 token.end_mark.column,
 *                 None, None)             # <<<<<<<<<<<<<<
 *         if token.type == YAML_NO_TOKEN:
 *             return None
 */
  __pyx_t_1 = PyTuple_New(6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __Pyx_INCREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->stream_name);
  __Pyx_GIVEREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_1, 4, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_1, 5, Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_v_end_mark);
  __pyx_v_end_mark = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":394
 *                 token.end_mark.column,
 *                 None, None)
 *         if token.type == YAML_NO_TOKEN:             # <<<<<<<<<<<<<<
 *             return None
 *         elif token.type == YAML_STREAM_START_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_NO_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":395
 *                 None, None)
 *         if token.type == YAML_NO_TOKEN:
 *             return None             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_STREAM_START_TOKEN:
 *             encoding = None
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":396
 *         if token.type == YAML_NO_TOKEN:
 *             return None
 *         elif token.type == YAML_STREAM_START_TOKEN:             # <<<<<<<<<<<<<<
 *             encoding = None
 *             if token.data.stream_start.encoding == YAML_UTF8_ENCODING:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_STREAM_START_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":397
 *             return None
 *         elif token.type == YAML_STREAM_START_TOKEN:
 *             encoding = None             # <<<<<<<<<<<<<<
 *             if token.data.stream_start.encoding == YAML_UTF8_ENCODING:
 *                 if self.unicode_source == 0:
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_encoding);
    __pyx_v_encoding = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":398
 *         elif token.type == YAML_STREAM_START_TOKEN:
 *             encoding = None
 *             if token.data.stream_start.encoding == YAML_UTF8_ENCODING:             # <<<<<<<<<<<<<<
 *                 if self.unicode_source == 0:
 *                     encoding = u"utf-8"
 */
    __pyx_t_5 = (__pyx_v_token->data.stream_start.encoding == YAML_UTF8_ENCODING);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":399
 *             encoding = None
 *             if token.data.stream_start.encoding == YAML_UTF8_ENCODING:
 *                 if self.unicode_source == 0:             # <<<<<<<<<<<<<<
 *                     encoding = u"utf-8"
 *             elif token.data.stream_start.encoding == YAML_UTF16LE_ENCODING:
 */
      __pyx_t_5 = (__pyx_v_self->unicode_source == 0);
      if (__pyx_t_5) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":400
 *             if token.data.stream_start.encoding == YAML_UTF8_ENCODING:
 *                 if self.unicode_source == 0:
 *                     encoding = u"utf-8"             # <<<<<<<<<<<<<<
 *             elif token.data.stream_start.encoding == YAML_UTF16LE_ENCODING:
 *                 encoding = u"utf-16-le"
 */
        __Pyx_INCREF(((PyObject *)__pyx_kp_19));
        __Pyx_DECREF(__pyx_v_encoding);
        __pyx_v_encoding = ((PyObject *)__pyx_kp_19);
        goto __pyx_L5;
      }
      __pyx_L5:;
      goto __pyx_L4;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":401
 *                 if self.unicode_source == 0:
 *                     encoding = u"utf-8"
 *             elif token.data.stream_start.encoding == YAML_UTF16LE_ENCODING:             # <<<<<<<<<<<<<<
 *                 encoding = u"utf-16-le"
 *             elif token.data.stream_start.encoding == YAML_UTF16BE_ENCODING:
 */
    __pyx_t_5 = (__pyx_v_token->data.stream_start.encoding == YAML_UTF16LE_ENCODING);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":402
 *                     encoding = u"utf-8"
 *             elif token.data.stream_start.encoding == YAML_UTF16LE_ENCODING:
 *                 encoding = u"utf-16-le"             # <<<<<<<<<<<<<<
 *             elif token.data.stream_start.encoding == YAML_UTF16BE_ENCODING:
 *                 encoding = u"utf-16-be"
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_20));
      __Pyx_DECREF(__pyx_v_encoding);
      __pyx_v_encoding = ((PyObject *)__pyx_kp_20);
      goto __pyx_L4;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":403
 *             elif token.data.stream_start.encoding == YAML_UTF16LE_ENCODING:
 *                 encoding = u"utf-16-le"
 *             elif token.data.stream_start.encoding == YAML_UTF16BE_ENCODING:             # <<<<<<<<<<<<<<
 *                 encoding = u"utf-16-be"
 *             return StreamStartToken(start_mark, end_mark, encoding)
 */
    __pyx_t_5 = (__pyx_v_token->data.stream_start.encoding == YAML_UTF16BE_ENCODING);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":404
 *                 encoding = u"utf-16-le"
 *             elif token.data.stream_start.encoding == YAML_UTF16BE_ENCODING:
 *                 encoding = u"utf-16-be"             # <<<<<<<<<<<<<<
 *             return StreamStartToken(start_mark, end_mark, encoding)
 *         elif token.type == YAML_STREAM_END_TOKEN:
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_21));
      __Pyx_DECREF(__pyx_v_encoding);
      __pyx_v_encoding = ((PyObject *)__pyx_kp_21);
      goto __pyx_L4;
    }
    __pyx_L4:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":405
 *             elif token.data.stream_start.encoding == YAML_UTF16BE_ENCODING:
 *                 encoding = u"utf-16-be"
 *             return StreamStartToken(start_mark, end_mark, encoding)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_STREAM_END_TOKEN:
 *             return StreamEndToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_StreamStartToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __Pyx_INCREF(__pyx_v_encoding);
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_encoding);
    __Pyx_GIVEREF(__pyx_v_encoding);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":406
 *                 encoding = u"utf-16-be"
 *             return StreamStartToken(start_mark, end_mark, encoding)
 *         elif token.type == YAML_STREAM_END_TOKEN:             # <<<<<<<<<<<<<<
 *             return StreamEndToken(start_mark, end_mark)
 *         elif token.type == YAML_VERSION_DIRECTIVE_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_STREAM_END_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":407
 *             return StreamStartToken(start_mark, end_mark, encoding)
 *         elif token.type == YAML_STREAM_END_TOKEN:
 *             return StreamEndToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_VERSION_DIRECTIVE_TOKEN:
 *             return DirectiveToken(u"YAML",
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_StreamEndToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":408
 *         elif token.type == YAML_STREAM_END_TOKEN:
 *             return StreamEndToken(start_mark, end_mark)
 *         elif token.type == YAML_VERSION_DIRECTIVE_TOKEN:             # <<<<<<<<<<<<<<
 *             return DirectiveToken(u"YAML",
 *                     (token.data.version_directive.major,
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_VERSION_DIRECTIVE_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":409
 *             return StreamEndToken(start_mark, end_mark)
 *         elif token.type == YAML_VERSION_DIRECTIVE_TOKEN:
 *             return DirectiveToken(u"YAML",             # <<<<<<<<<<<<<<
 *                     (token.data.version_directive.major,
 *                         token.data.version_directive.minor),
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_DirectiveToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":410
 *         elif token.type == YAML_VERSION_DIRECTIVE_TOKEN:
 *             return DirectiveToken(u"YAML",
 *                     (token.data.version_directive.major,             # <<<<<<<<<<<<<<
 *                         token.data.version_directive.minor),
 *                     start_mark, end_mark)
 */
    __pyx_t_2 = PyInt_FromLong(__pyx_v_token->data.version_directive.major); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 410; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":411
 *             return DirectiveToken(u"YAML",
 *                     (token.data.version_directive.major,
 *                         token.data.version_directive.minor),             # <<<<<<<<<<<<<<
 *                     start_mark, end_mark)
 *         elif token.type == YAML_TAG_DIRECTIVE_TOKEN:
 */
    __pyx_t_1 = PyInt_FromLong(__pyx_v_token->data.version_directive.minor); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 410; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":412
 *                     (token.data.version_directive.major,
 *                         token.data.version_directive.minor),
 *                     start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_TAG_DIRECTIVE_TOKEN:
 *             handle = PyUnicode_FromString(token.data.tag_directive.handle)
 */
    __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(((PyObject *)__pyx_kp_22));
    PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_22));
    __Pyx_GIVEREF(((PyObject *)__pyx_kp_22));
    PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_t_4));
    __Pyx_GIVEREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_4 = 0;
    __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":413
 *                         token.data.version_directive.minor),
 *                     start_mark, end_mark)
 *         elif token.type == YAML_TAG_DIRECTIVE_TOKEN:             # <<<<<<<<<<<<<<
 *             handle = PyUnicode_FromString(token.data.tag_directive.handle)
 *             prefix = PyUnicode_FromString(token.data.tag_directive.prefix)
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_TAG_DIRECTIVE_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":414
 *                     start_mark, end_mark)
 *         elif token.type == YAML_TAG_DIRECTIVE_TOKEN:
 *             handle = PyUnicode_FromString(token.data.tag_directive.handle)             # <<<<<<<<<<<<<<
 *             prefix = PyUnicode_FromString(token.data.tag_directive.prefix)
 *             return DirectiveToken(u"TAG", (handle, prefix),
 */
    __pyx_t_4 = PyUnicode_FromString(__pyx_v_token->data.tag_directive.handle); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_v_handle);
    __pyx_v_handle = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":415
 *         elif token.type == YAML_TAG_DIRECTIVE_TOKEN:
 *             handle = PyUnicode_FromString(token.data.tag_directive.handle)
 *             prefix = PyUnicode_FromString(token.data.tag_directive.prefix)             # <<<<<<<<<<<<<<
 *             return DirectiveToken(u"TAG", (handle, prefix),
 *                     start_mark, end_mark)
 */
    __pyx_t_4 = PyUnicode_FromString(__pyx_v_token->data.tag_directive.prefix); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_v_prefix);
    __pyx_v_prefix = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":416
 *             handle = PyUnicode_FromString(token.data.tag_directive.handle)
 *             prefix = PyUnicode_FromString(token.data.tag_directive.prefix)
 *             return DirectiveToken(u"TAG", (handle, prefix),             # <<<<<<<<<<<<<<
 *                     start_mark, end_mark)
 *         elif token.type == YAML_DOCUMENT_START_TOKEN:
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_DirectiveToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_handle);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_handle);
    __Pyx_GIVEREF(__pyx_v_handle);
    __Pyx_INCREF(__pyx_v_prefix);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_prefix);
    __Pyx_GIVEREF(__pyx_v_prefix);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":417
 *             prefix = PyUnicode_FromString(token.data.tag_directive.prefix)
 *             return DirectiveToken(u"TAG", (handle, prefix),
 *                     start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_DOCUMENT_START_TOKEN:
 *             return DocumentStartToken(start_mark, end_mark)
 */
    __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(((PyObject *)__pyx_kp_23));
    PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_23));
    __Pyx_GIVEREF(((PyObject *)__pyx_kp_23));
    PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_t_4));
    __Pyx_GIVEREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_4 = 0;
    __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":418
 *             return DirectiveToken(u"TAG", (handle, prefix),
 *                     start_mark, end_mark)
 *         elif token.type == YAML_DOCUMENT_START_TOKEN:             # <<<<<<<<<<<<<<
 *             return DocumentStartToken(start_mark, end_mark)
 *         elif token.type == YAML_DOCUMENT_END_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_DOCUMENT_START_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":419
 *                     start_mark, end_mark)
 *         elif token.type == YAML_DOCUMENT_START_TOKEN:
 *             return DocumentStartToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_DOCUMENT_END_TOKEN:
 *             return DocumentEndToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_DocumentStartToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":420
 *         elif token.type == YAML_DOCUMENT_START_TOKEN:
 *             return DocumentStartToken(start_mark, end_mark)
 *         elif token.type == YAML_DOCUMENT_END_TOKEN:             # <<<<<<<<<<<<<<
 *             return DocumentEndToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_SEQUENCE_START_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_DOCUMENT_END_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":421
 *             return DocumentStartToken(start_mark, end_mark)
 *         elif token.type == YAML_DOCUMENT_END_TOKEN:
 *             return DocumentEndToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_BLOCK_SEQUENCE_START_TOKEN:
 *             return BlockSequenceStartToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_DocumentEndToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 421; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 421; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 421; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":422
 *         elif token.type == YAML_DOCUMENT_END_TOKEN:
 *             return DocumentEndToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_SEQUENCE_START_TOKEN:             # <<<<<<<<<<<<<<
 *             return BlockSequenceStartToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_MAPPING_START_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_BLOCK_SEQUENCE_START_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":423
 *             return DocumentEndToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_SEQUENCE_START_TOKEN:
 *             return BlockSequenceStartToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_BLOCK_MAPPING_START_TOKEN:
 *             return BlockMappingStartToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_1); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 423; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 423; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 423; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":424
 *         elif token.type == YAML_BLOCK_SEQUENCE_START_TOKEN:
 *             return BlockSequenceStartToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_MAPPING_START_TOKEN:             # <<<<<<<<<<<<<<
 *             return BlockMappingStartToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_END_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_BLOCK_MAPPING_START_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":425
 *             return BlockSequenceStartToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_MAPPING_START_TOKEN:
 *             return BlockMappingStartToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_BLOCK_END_TOKEN:
 *             return BlockEndToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_2); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":426
 *         elif token.type == YAML_BLOCK_MAPPING_START_TOKEN:
 *             return BlockMappingStartToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_END_TOKEN:             # <<<<<<<<<<<<<<
 *             return BlockEndToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_SEQUENCE_START_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_BLOCK_END_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":427
 *             return BlockMappingStartToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_END_TOKEN:
 *             return BlockEndToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_FLOW_SEQUENCE_START_TOKEN:
 *             return FlowSequenceStartToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_BlockEndToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":428
 *         elif token.type == YAML_BLOCK_END_TOKEN:
 *             return BlockEndToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_SEQUENCE_START_TOKEN:             # <<<<<<<<<<<<<<
 *             return FlowSequenceStartToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_SEQUENCE_END_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_FLOW_SEQUENCE_START_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":429
 *             return BlockEndToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_SEQUENCE_START_TOKEN:
 *             return FlowSequenceStartToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_FLOW_SEQUENCE_END_TOKEN:
 *             return FlowSequenceEndToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_3); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":430
 *         elif token.type == YAML_FLOW_SEQUENCE_START_TOKEN:
 *             return FlowSequenceStartToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_SEQUENCE_END_TOKEN:             # <<<<<<<<<<<<<<
 *             return FlowSequenceEndToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_MAPPING_START_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_FLOW_SEQUENCE_END_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":431
 *             return FlowSequenceStartToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_SEQUENCE_END_TOKEN:
 *             return FlowSequenceEndToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_FLOW_MAPPING_START_TOKEN:
 *             return FlowMappingStartToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_5); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":432
 *         elif token.type == YAML_FLOW_SEQUENCE_END_TOKEN:
 *             return FlowSequenceEndToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_MAPPING_START_TOKEN:             # <<<<<<<<<<<<<<
 *             return FlowMappingStartToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_MAPPING_END_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_FLOW_MAPPING_START_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":433
 *             return FlowSequenceEndToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_MAPPING_START_TOKEN:
 *             return FlowMappingStartToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_FLOW_MAPPING_END_TOKEN:
 *             return FlowMappingEndToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_4); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":434
 *         elif token.type == YAML_FLOW_MAPPING_START_TOKEN:
 *             return FlowMappingStartToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_MAPPING_END_TOKEN:             # <<<<<<<<<<<<<<
 *             return FlowMappingEndToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_ENTRY_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_FLOW_MAPPING_END_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":435
 *             return FlowMappingStartToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_MAPPING_END_TOKEN:
 *             return FlowMappingEndToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_BLOCK_ENTRY_TOKEN:
 *             return BlockEntryToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_FlowMappingEndToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":436
 *         elif token.type == YAML_FLOW_MAPPING_END_TOKEN:
 *             return FlowMappingEndToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_ENTRY_TOKEN:             # <<<<<<<<<<<<<<
 *             return BlockEntryToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_ENTRY_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_BLOCK_ENTRY_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":437
 *             return FlowMappingEndToken(start_mark, end_mark)
 *         elif token.type == YAML_BLOCK_ENTRY_TOKEN:
 *             return BlockEntryToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_FLOW_ENTRY_TOKEN:
 *             return FlowEntryToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_BlockEntryToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":438
 *         elif token.type == YAML_BLOCK_ENTRY_TOKEN:
 *             return BlockEntryToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_ENTRY_TOKEN:             # <<<<<<<<<<<<<<
 *             return FlowEntryToken(start_mark, end_mark)
 *         elif token.type == YAML_KEY_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_FLOW_ENTRY_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":439
 *             return BlockEntryToken(start_mark, end_mark)
 *         elif token.type == YAML_FLOW_ENTRY_TOKEN:
 *             return FlowEntryToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_KEY_TOKEN:
 *             return KeyToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_FlowEntryToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":440
 *         elif token.type == YAML_FLOW_ENTRY_TOKEN:
 *             return FlowEntryToken(start_mark, end_mark)
 *         elif token.type == YAML_KEY_TOKEN:             # <<<<<<<<<<<<<<
 *             return KeyToken(start_mark, end_mark)
 *         elif token.type == YAML_VALUE_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_KEY_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":441
 *             return FlowEntryToken(start_mark, end_mark)
 *         elif token.type == YAML_KEY_TOKEN:
 *             return KeyToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_VALUE_TOKEN:
 *             return ValueToken(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_KeyToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":442
 *         elif token.type == YAML_KEY_TOKEN:
 *             return KeyToken(start_mark, end_mark)
 *         elif token.type == YAML_VALUE_TOKEN:             # <<<<<<<<<<<<<<
 *             return ValueToken(start_mark, end_mark)
 *         elif token.type == YAML_ALIAS_TOKEN:
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_VALUE_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":443
 *             return KeyToken(start_mark, end_mark)
 *         elif token.type == YAML_VALUE_TOKEN:
 *             return ValueToken(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_ALIAS_TOKEN:
 *             value = PyUnicode_FromString(token.data.alias.value)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ValueToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":444
 *         elif token.type == YAML_VALUE_TOKEN:
 *             return ValueToken(start_mark, end_mark)
 *         elif token.type == YAML_ALIAS_TOKEN:             # <<<<<<<<<<<<<<
 *             value = PyUnicode_FromString(token.data.alias.value)
 *             return AliasToken(value, start_mark, end_mark)
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_ALIAS_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":445
 *             return ValueToken(start_mark, end_mark)
 *         elif token.type == YAML_ALIAS_TOKEN:
 *             value = PyUnicode_FromString(token.data.alias.value)             # <<<<<<<<<<<<<<
 *             return AliasToken(value, start_mark, end_mark)
 *         elif token.type == YAML_ANCHOR_TOKEN:
 */
    __pyx_t_1 = PyUnicode_FromString(__pyx_v_token->data.alias.value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v_value);
    __pyx_v_value = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":446
 *         elif token.type == YAML_ALIAS_TOKEN:
 *             value = PyUnicode_FromString(token.data.alias.value)
 *             return AliasToken(value, start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_ANCHOR_TOKEN:
 *             value = PyUnicode_FromString(token.data.anchor.value)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_AliasToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":447
 *             value = PyUnicode_FromString(token.data.alias.value)
 *             return AliasToken(value, start_mark, end_mark)
 *         elif token.type == YAML_ANCHOR_TOKEN:             # <<<<<<<<<<<<<<
 *             value = PyUnicode_FromString(token.data.anchor.value)
 *             return AnchorToken(value, start_mark, end_mark)
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_ANCHOR_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":448
 *             return AliasToken(value, start_mark, end_mark)
 *         elif token.type == YAML_ANCHOR_TOKEN:
 *             value = PyUnicode_FromString(token.data.anchor.value)             # <<<<<<<<<<<<<<
 *             return AnchorToken(value, start_mark, end_mark)
 *         elif token.type == YAML_TAG_TOKEN:
 */
    __pyx_t_4 = PyUnicode_FromString(__pyx_v_token->data.anchor.value); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_v_value);
    __pyx_v_value = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":449
 *         elif token.type == YAML_ANCHOR_TOKEN:
 *             value = PyUnicode_FromString(token.data.anchor.value)
 *             return AnchorToken(value, start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_TAG_TOKEN:
 *             handle = PyUnicode_FromString(token.data.tag.handle)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_AnchorToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":450
 *             value = PyUnicode_FromString(token.data.anchor.value)
 *             return AnchorToken(value, start_mark, end_mark)
 *         elif token.type == YAML_TAG_TOKEN:             # <<<<<<<<<<<<<<
 *             handle = PyUnicode_FromString(token.data.tag.handle)
 *             suffix = PyUnicode_FromString(token.data.tag.suffix)
 */
  __pyx_t_5 = (__pyx_v_token->type == YAML_TAG_TOKEN);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":451
 *             return AnchorToken(value, start_mark, end_mark)
 *         elif token.type == YAML_TAG_TOKEN:
 *             handle = PyUnicode_FromString(token.data.tag.handle)             # <<<<<<<<<<<<<<
 *             suffix = PyUnicode_FromString(token.data.tag.suffix)
 *             if not handle:
 */
    __pyx_t_1 = PyUnicode_FromString(__pyx_v_token->data.tag.handle); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v_handle);
    __pyx_v_handle = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":452
 *         elif token.type == YAML_TAG_TOKEN:
 *             handle = PyUnicode_FromString(token.data.tag.handle)
 *             suffix = PyUnicode_FromString(token.data.tag.suffix)             # <<<<<<<<<<<<<<
 *             if not handle:
 *                 handle = None
 */
    __pyx_t_1 = PyUnicode_FromString(__pyx_v_token->data.tag.suffix); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v_suffix);
    __pyx_v_suffix = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":453
 *             handle = PyUnicode_FromString(token.data.tag.handle)
 *             suffix = PyUnicode_FromString(token.data.tag.suffix)
 *             if not handle:             # <<<<<<<<<<<<<<
 *                 handle = None
 *             return TagToken((handle, suffix), start_mark, end_mark)
 */
    __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_handle); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_t_6 = (!__pyx_t_5);
    if (__pyx_t_6) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":454
 *             suffix = PyUnicode_FromString(token.data.tag.suffix)
 *             if not handle:
 *                 handle = None             # <<<<<<<<<<<<<<
 *             return TagToken((handle, suffix), start_mark, end_mark)
 *         elif token.type == YAML_SCALAR_TOKEN:
 */
      __Pyx_INCREF(Py_None);
      __Pyx_DECREF(__pyx_v_handle);
      __pyx_v_handle = Py_None;
      goto __pyx_L6;
    }
    __pyx_L6:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":455
 *             if not handle:
 *                 handle = None
 *             return TagToken((handle, suffix), start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif token.type == YAML_SCALAR_TOKEN:
 *             value = PyUnicode_DecodeUTF8(token.data.scalar.value,
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_TagToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_handle);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_handle);
    __Pyx_GIVEREF(__pyx_v_handle);
    __Pyx_INCREF(__pyx_v_suffix);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_suffix);
    __Pyx_GIVEREF(__pyx_v_suffix);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_t_1));
    __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_1 = 0;
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":456
 *                 handle = None
 *             return TagToken((handle, suffix), start_mark, end_mark)
 *         elif token.type == YAML_SCALAR_TOKEN:             # <<<<<<<<<<<<<<
 *             value = PyUnicode_DecodeUTF8(token.data.scalar.value,
 *                     token.data.scalar.length, 'strict')
 */
  __pyx_t_6 = (__pyx_v_token->type == YAML_SCALAR_TOKEN);
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":458
 *         elif token.type == YAML_SCALAR_TOKEN:
 *             value = PyUnicode_DecodeUTF8(token.data.scalar.value,
 *                     token.data.scalar.length, 'strict')             # <<<<<<<<<<<<<<
 *             plain = False
 *             style = None
 */
    __pyx_t_1 = PyUnicode_DecodeUTF8(__pyx_v_token->data.scalar.value, __pyx_v_token->data.scalar.length, __pyx_k_24); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v_value);
    __pyx_v_value = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":459
 *             value = PyUnicode_DecodeUTF8(token.data.scalar.value,
 *                     token.data.scalar.length, 'strict')
 *             plain = False             # <<<<<<<<<<<<<<
 *             style = None
 *             if token.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 */
    __pyx_t_1 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v_plain);
    __pyx_v_plain = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":460
 *                     token.data.scalar.length, 'strict')
 *             plain = False
 *             style = None             # <<<<<<<<<<<<<<
 *             if token.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 *                 plain = True
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_style);
    __pyx_v_style = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":461
 *             plain = False
 *             style = None
 *             if token.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 plain = True
 *                 style = u''
 */
    __pyx_t_6 = (__pyx_v_token->data.scalar.style == YAML_PLAIN_SCALAR_STYLE);
    if (__pyx_t_6) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":462
 *             style = None
 *             if token.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 *                 plain = True             # <<<<<<<<<<<<<<
 *                 style = u''
 *             elif token.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 */
      __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_v_plain);
      __pyx_v_plain = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":463
 *             if token.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 *                 plain = True
 *                 style = u''             # <<<<<<<<<<<<<<
 *             elif token.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 *                 style = u'\''
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_25));
      __Pyx_DECREF(__pyx_v_style);
      __pyx_v_style = ((PyObject *)__pyx_kp_25);
      goto __pyx_L7;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":464
 *                 plain = True
 *                 style = u''
 *             elif token.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 style = u'\''
 *             elif token.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 */
    __pyx_t_6 = (__pyx_v_token->data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE);
    if (__pyx_t_6) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":465
 *                 style = u''
 *             elif token.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 *                 style = u'\''             # <<<<<<<<<<<<<<
 *             elif token.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 *                 style = u'"'
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_26));
      __Pyx_DECREF(__pyx_v_style);
      __pyx_v_style = ((PyObject *)__pyx_kp_26);
      goto __pyx_L7;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":466
 *             elif token.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 *                 style = u'\''
 *             elif token.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 style = u'"'
 *             elif token.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 */
    __pyx_t_6 = (__pyx_v_token->data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE);
    if (__pyx_t_6) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":467
 *                 style = u'\''
 *             elif token.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 *                 style = u'"'             # <<<<<<<<<<<<<<
 *             elif token.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 *                 style = u'|'
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_27));
      __Pyx_DECREF(__pyx_v_style);
      __pyx_v_style = ((PyObject *)__pyx_kp_27);
      goto __pyx_L7;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":468
 *             elif token.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 *                 style = u'"'
 *             elif token.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 style = u'|'
 *             elif token.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 */
    __pyx_t_6 = (__pyx_v_token->data.scalar.style == YAML_LITERAL_SCALAR_STYLE);
    if (__pyx_t_6) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":469
 *                 style = u'"'
 *             elif token.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 *                 style = u'|'             # <<<<<<<<<<<<<<
 *             elif token.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 *                 style = u'>'
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_28));
      __Pyx_DECREF(__pyx_v_style);
      __pyx_v_style = ((PyObject *)__pyx_kp_28);
      goto __pyx_L7;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":470
 *             elif token.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 *                 style = u'|'
 *             elif token.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 style = u'>'
 *             return ScalarToken(value, plain,
 */
    __pyx_t_6 = (__pyx_v_token->data.scalar.style == YAML_FOLDED_SCALAR_STYLE);
    if (__pyx_t_6) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":471
 *                 style = u'|'
 *             elif token.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 *                 style = u'>'             # <<<<<<<<<<<<<<
 *             return ScalarToken(value, plain,
 *                     start_mark, end_mark, style)
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_29));
      __Pyx_DECREF(__pyx_v_style);
      __pyx_v_style = ((PyObject *)__pyx_kp_29);
      goto __pyx_L7;
    }
    __pyx_L7:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":472
 *             elif token.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 *                 style = u'>'
 *             return ScalarToken(value, plain,             # <<<<<<<<<<<<<<
 *                     start_mark, end_mark, style)
 *         else:
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ScalarToken); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":473
 *                 style = u'>'
 *             return ScalarToken(value, plain,
 *                     start_mark, end_mark, style)             # <<<<<<<<<<<<<<
 *         else:
 *             if PY_MAJOR_VERSION < 3:
 */
    __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    __Pyx_INCREF(__pyx_v_plain);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_plain);
    __Pyx_GIVEREF(__pyx_v_plain);
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __Pyx_INCREF(__pyx_v_style);
    PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_v_style);
    __Pyx_GIVEREF(__pyx_v_style);
    __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":475
 *                     start_mark, end_mark, style)
 *         else:
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 raise ValueError("unknown token type")
 *             else:
 */
    __pyx_t_6 = (PY_MAJOR_VERSION < 3);
    if (__pyx_t_6) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":476
 *         else:
 *             if PY_MAJOR_VERSION < 3:
 *                 raise ValueError("unknown token type")             # <<<<<<<<<<<<<<
 *             else:
 *                 raise ValueError(u"unknown token type")
 */
      __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_4));
      __Pyx_INCREF(__pyx_kp_30);
      PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_30);
      __Pyx_GIVEREF(__pyx_kp_30);
      __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
      __Pyx_Raise(__pyx_t_1, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L8;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":478
 *                 raise ValueError("unknown token type")
 *             else:
 *                 raise ValueError(u"unknown token type")             # <<<<<<<<<<<<<<
 * 
 *     def get_token(self):
 */
      __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_1));
      __Pyx_INCREF(((PyObject *)__pyx_kp_31));
      PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_31));
      __Pyx_GIVEREF(((PyObject *)__pyx_kp_31));
      __pyx_t_4 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
      __Pyx_Raise(__pyx_t_4, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __pyx_L8:;
  }
  __pyx_L3:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_yaml.CParser._token_to_object");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_start_mark);
  __Pyx_DECREF(__pyx_v_end_mark);
  __Pyx_DECREF(__pyx_v_encoding);
  __Pyx_DECREF(__pyx_v_handle);
  __Pyx_DECREF(__pyx_v_prefix);
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_DECREF(__pyx_v_suffix);
  __Pyx_DECREF(__pyx_v_plain);
  __Pyx_DECREF(__pyx_v_style);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":480
 *                 raise ValueError(u"unknown token type")
 * 
 *     def get_token(self):             # <<<<<<<<<<<<<<
 *         if self.current_token is not None:
 *             value = self.current_token
 */

static PyObject *__pyx_pf_5_yaml_7CParser_get_token(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_7CParser_get_token(PyObject *__pyx_v_self, PyObject *unused) {
  PyObject *__pyx_v_value;
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_SetupRefcountContext("get_token");
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":481
 * 
 *     def get_token(self):
 *         if self.current_token is not None:             # <<<<<<<<<<<<<<
 *             value = self.current_token
 *             self.current_token = None
 */
  __pyx_t_1 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token != Py_None);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":482
 *     def get_token(self):
 *         if self.current_token is not None:
 *             value = self.current_token             # <<<<<<<<<<<<<<
 *             self.current_token = None
 *         else:
 */
    __Pyx_INCREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token);
    __Pyx_DECREF(__pyx_v_value);
    __pyx_v_value = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":483
 *         if self.current_token is not None:
 *             value = self.current_token
 *             self.current_token = None             # <<<<<<<<<<<<<<
 *         else:
 *             value = self._scan()
 */
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token);
    __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token);
    ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token = Py_None;
    goto __pyx_L5;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":485
 *             self.current_token = None
 *         else:
 *             value = self._scan()             # <<<<<<<<<<<<<<
 *         return value
 * 
 */
    __pyx_t_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 (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_value);
    __pyx_v_value = __pyx_t_2;
    __pyx_t_2 = 0;
  }
  __pyx_L5:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":486
 *         else:
 *             value = self._scan()
 *         return value             # <<<<<<<<<<<<<<
 * 
 *     def peek_token(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_value);
  __pyx_r = __pyx_v_value;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("_yaml.CParser.get_token");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":488
 *         return value
 * 
 *     def peek_token(self):             # <<<<<<<<<<<<<<
 *         if self.current_token is None:
 *             self.current_token = self._scan()
 */

static PyObject *__pyx_pf_5_yaml_7CParser_peek_token(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_7CParser_peek_token(PyObject *__pyx_v_self, PyObject *unused) {
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_SetupRefcountContext("peek_token");

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":489
 * 
 *     def peek_token(self):
 *         if self.current_token is None:             # <<<<<<<<<<<<<<
 *             self.current_token = self._scan()
 *         return self.current_token
 */
  __pyx_t_1 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token == Py_None);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":490
 *     def peek_token(self):
 *         if self.current_token is None:
 *             self.current_token = self._scan()             # <<<<<<<<<<<<<<
 *         return self.current_token
 * 
 */
    __pyx_t_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 (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token);
    __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token);
    ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L5;
  }
  __pyx_L5:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":491
 *         if self.current_token is None:
 *             self.current_token = self._scan()
 *         return self.current_token             # <<<<<<<<<<<<<<
 * 
 *     def check_token(self, *choices):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token);
  __pyx_r = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("_yaml.CParser.peek_token");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":493
 *         return self.current_token
 * 
 *     def check_token(self, *choices):             # <<<<<<<<<<<<<<
 *         if self.current_token is None:
 *             self.current_token = self._scan()
 */

static PyObject *__pyx_pf_5_yaml_7CParser_check_token(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pf_5_yaml_7CParser_check_token(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_choices = 0;
  PyObject *__pyx_v_token_class;
  PyObject *__pyx_v_choice;
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_SetupRefcountContext("check_token");
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "check_token", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_choices = __pyx_args;
  __pyx_v_token_class = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_choice = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":494
 * 
 *     def check_token(self, *choices):
 *         if self.current_token is None:             # <<<<<<<<<<<<<<
 *             self.current_token = self._scan()
 *         if self.current_token is None:
 */
  __pyx_t_1 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token == Py_None);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":495
 *     def check_token(self, *choices):
 *         if self.current_token is None:
 *             self.current_token = self._scan()             # <<<<<<<<<<<<<<
 *         if self.current_token is None:
 *             return False
 */
    __pyx_t_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 (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token);
    __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token);
    ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L5;
  }
  __pyx_L5:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":496
 *         if self.current_token is None:
 *             self.current_token = self._scan()
 *         if self.current_token is None:             # <<<<<<<<<<<<<<
 *             return False
 *         if not choices:
 */
  __pyx_t_1 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token == Py_None);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":497
 *             self.current_token = self._scan()
 *         if self.current_token is None:
 *             return False             # <<<<<<<<<<<<<<
 *         if not choices:
 *             return True
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
    goto __pyx_L6;
  }
  __pyx_L6:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":498
 *         if self.current_token is None:
 *             return False
 *         if not choices:             # <<<<<<<<<<<<<<
 *             return True
 *         token_class = self.current_token.__class__
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_choices); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_3 = (!__pyx_t_1);
  if (__pyx_t_3) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":499
 *             return False
 *         if not choices:
 *             return True             # <<<<<<<<<<<<<<
 *         token_class = self.current_token.__class__
 *         for choice in choices:
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
    goto __pyx_L7;
  }
  __pyx_L7:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":500
 *         if not choices:
 *             return True
 *         token_class = self.current_token.__class__             # <<<<<<<<<<<<<<
 *         for choice in choices:
 *             if token_class is choice:
 */
  __pyx_t_2 = PyObject_GetAttr(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_token, __pyx_kp___class__); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_v_token_class);
  __pyx_v_token_class = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":501
 *             return True
 *         token_class = self.current_token.__class__
 *         for choice in choices:             # <<<<<<<<<<<<<<
 *             if token_class is choice:
 *                 return True
 */
  if (PyList_CheckExact(__pyx_v_choices) || PyTuple_CheckExact(__pyx_v_choices)) {
    __pyx_t_4 = 0; __pyx_t_2 = __pyx_v_choices; __Pyx_INCREF(__pyx_t_2);
  } else {
    __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_choices); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
  }
  for (;;) {
    if (likely(PyList_CheckExact(__pyx_t_2))) {
      if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break;
      __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_5); __pyx_t_4++;
    } else if (likely(PyTuple_CheckExact(__pyx_t_2))) {
      if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
      __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_5); __pyx_t_4++;
    } else {
      __pyx_t_5 = PyIter_Next(__pyx_t_2);
      if (!__pyx_t_5) {
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        break;
      }
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF(__pyx_v_choice);
    __pyx_v_choice = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":502
 *         token_class = self.current_token.__class__
 *         for choice in choices:
 *             if token_class is choice:             # <<<<<<<<<<<<<<
 *                 return True
 *         return False
 */
    __pyx_t_3 = (__pyx_v_token_class == __pyx_v_choice);
    if (__pyx_t_3) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":503
 *         for choice in choices:
 *             if token_class is choice:
 *                 return True             # <<<<<<<<<<<<<<
 *         return False
 * 
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_r = __pyx_t_5;
      __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L0;
      goto __pyx_L10;
    }
    __pyx_L10:;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":504
 *             if token_class is choice:
 *                 return True
 *         return False             # <<<<<<<<<<<<<<
 * 
 *     def raw_parse(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_yaml.CParser.check_token");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_choices);
  __Pyx_DECREF(__pyx_v_token_class);
  __Pyx_DECREF(__pyx_v_choice);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":506
 *         return False
 * 
 *     def raw_parse(self):             # <<<<<<<<<<<<<<
 *         cdef yaml_event_t event
 *         cdef int done
 */

static PyObject *__pyx_pf_5_yaml_7CParser_raw_parse(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_7CParser_raw_parse(PyObject *__pyx_v_self, PyObject *unused) {
  yaml_event_t __pyx_v_event;
  int __pyx_v_done;
  int __pyx_v_count;
  PyObject *__pyx_v_error;
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_SetupRefcountContext("raw_parse");
  __pyx_v_error = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":510
 *         cdef int done
 *         cdef int count
 *         count = 0             # <<<<<<<<<<<<<<
 *         done = 0
 *         while done == 0:
 */
  __pyx_v_count = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":511
 *         cdef int count
 *         count = 0
 *         done = 0             # <<<<<<<<<<<<<<
 *         while done == 0:
 *             if yaml_parser_parse(&self.parser, &event) == 0:
 */
  __pyx_v_done = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":512
 *         count = 0
 *         done = 0
 *         while done == 0:             # <<<<<<<<<<<<<<
 *             if yaml_parser_parse(&self.parser, &event) == 0:
 *                 error = self._parser_error()
 */
  while (1) {
    __pyx_t_1 = (__pyx_v_done == 0);
    if (!__pyx_t_1) break;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":513
 *         done = 0
 *         while done == 0:
 *             if yaml_parser_parse(&self.parser, &event) == 0:             # <<<<<<<<<<<<<<
 *                 error = self._parser_error()
 *                 raise error
 */
    __pyx_t_2 = yaml_parser_parse((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parser), (&__pyx_v_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 513; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_t_1 = (__pyx_t_2 == 0);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":514
 *         while done == 0:
 *             if yaml_parser_parse(&self.parser, &event) == 0:
 *                 error = self._parser_error()             # <<<<<<<<<<<<<<
 *                 raise error
 *             if event.type == YAML_NO_EVENT:
 */
      __pyx_t_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 (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_v_error);
      __pyx_v_error = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":515
 *             if yaml_parser_parse(&self.parser, &event) == 0:
 *                 error = self._parser_error()
 *                 raise error             # <<<<<<<<<<<<<<
 *             if event.type == YAML_NO_EVENT:
 *                 done = 1
 */
      __Pyx_Raise(__pyx_v_error, 0, 0);
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L7;
    }
    __pyx_L7:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":516
 *                 error = self._parser_error()
 *                 raise error
 *             if event.type == YAML_NO_EVENT:             # <<<<<<<<<<<<<<
 *                 done = 1
 *             else:
 */
    __pyx_t_1 = (__pyx_v_event.type == YAML_NO_EVENT);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":517
 *                 raise error
 *             if event.type == YAML_NO_EVENT:
 *                 done = 1             # <<<<<<<<<<<<<<
 *             else:
 *                 count = count+1
 */
      __pyx_v_done = 1;
      goto __pyx_L8;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":519
 *                 done = 1
 *             else:
 *                 count = count+1             # <<<<<<<<<<<<<<
 *             yaml_event_delete(&event)
 *         return count
 */
      __pyx_v_count = (__pyx_v_count + 1);
    }
    __pyx_L8:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":520
 *             else:
 *                 count = count+1
 *             yaml_event_delete(&event)             # <<<<<<<<<<<<<<
 *         return count
 * 
 */
    yaml_event_delete((&__pyx_v_event));
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":521
 *                 count = count+1
 *             yaml_event_delete(&event)
 *         return count             # <<<<<<<<<<<<<<
 * 
 *     cdef object _parse(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CParser.raw_parse");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_error);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":523
 *         return count
 * 
 *     cdef object _parse(self):             # <<<<<<<<<<<<<<
 *         cdef yaml_event_t event
 *         if yaml_parser_parse(&self.parser, &event) == 0:
 */

static  PyObject *__pyx_f_5_yaml_7CParser__parse(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) {
  yaml_event_t __pyx_v_event;
  PyObject *__pyx_v_error;
  PyObject *__pyx_v_event_object;
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_SetupRefcountContext("_parse");
  __pyx_v_error = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_event_object = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":525
 *     cdef object _parse(self):
 *         cdef yaml_event_t event
 *         if yaml_parser_parse(&self.parser, &event) == 0:             # <<<<<<<<<<<<<<
 *             error = self._parser_error()
 *             raise error
 */
  __pyx_t_1 = yaml_parser_parse((&__pyx_v_self->parser), (&__pyx_v_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":526
 *         cdef yaml_event_t event
 *         if yaml_parser_parse(&self.parser, &event) == 0:
 *             error = self._parser_error()             # <<<<<<<<<<<<<<
 *             raise error
 *         event_object = self._event_to_object(&event)
 */
    __pyx_t_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parser_error(__pyx_v_self); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_error);
    __pyx_v_error = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":527
 *         if yaml_parser_parse(&self.parser, &event) == 0:
 *             error = self._parser_error()
 *             raise error             # <<<<<<<<<<<<<<
 *         event_object = self._event_to_object(&event)
 *         yaml_event_delete(&event)
 */
    __Pyx_Raise(__pyx_v_error, 0, 0);
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":528
 *             error = self._parser_error()
 *             raise error
 *         event_object = self._event_to_object(&event)             # <<<<<<<<<<<<<<
 *         yaml_event_delete(&event)
 *         return event_object
 */
  __pyx_t_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_event_to_object(__pyx_v_self, (&__pyx_v_event)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_v_event_object);
  __pyx_v_event_object = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":529
 *             raise error
 *         event_object = self._event_to_object(&event)
 *         yaml_event_delete(&event)             # <<<<<<<<<<<<<<
 *         return event_object
 * 
 */
  yaml_event_delete((&__pyx_v_event));

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":530
 *         event_object = self._event_to_object(&event)
 *         yaml_event_delete(&event)
 *         return event_object             # <<<<<<<<<<<<<<
 * 
 *     cdef object _event_to_object(self, yaml_event_t *event):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_event_object);
  __pyx_r = __pyx_v_event_object;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CParser._parse");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_error);
  __Pyx_DECREF(__pyx_v_event_object);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":532
 *         return event_object
 * 
 *     cdef object _event_to_object(self, yaml_event_t *event):             # <<<<<<<<<<<<<<
 *         cdef yaml_tag_directive_t *tag_directive
 *         start_mark = Mark(self.stream_name,
 */

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) {
  yaml_tag_directive_t *__pyx_v_tag_directive;
  PyObject *__pyx_v_start_mark;
  PyObject *__pyx_v_end_mark;
  PyObject *__pyx_v_encoding;
  PyObject *__pyx_v_explicit;
  PyObject *__pyx_v_version;
  PyObject *__pyx_v_tags;
  PyObject *__pyx_v_handle;
  PyObject *__pyx_v_prefix;
  PyObject *__pyx_v_anchor;
  PyObject *__pyx_v_tag;
  PyObject *__pyx_v_value;
  PyObject *__pyx_v_plain_implicit;
  PyObject *__pyx_v_quoted_implicit;
  PyObject *__pyx_v_style;
  PyObject *__pyx_v_implicit;
  PyObject *__pyx_v_flow_style;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_1 = 0;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  __Pyx_SetupRefcountContext("_event_to_object");
  __pyx_v_start_mark = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_end_mark = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_encoding = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_explicit = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_version = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_tags = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_handle = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_prefix = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_anchor = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_tag = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_plain_implicit = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_quoted_implicit = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_style = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_implicit = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_flow_style = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":535
 *         cdef yaml_tag_directive_t *tag_directive
 *         start_mark = Mark(self.stream_name,
 *                 event.start_mark.index,             # <<<<<<<<<<<<<<
 *                 event.start_mark.line,
 *                 event.start_mark.column,
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_event->start_mark.index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":536
 *         start_mark = Mark(self.stream_name,
 *                 event.start_mark.index,
 *                 event.start_mark.line,             # <<<<<<<<<<<<<<
 *                 event.start_mark.column,
 *                 None, None)
 */
  __pyx_t_2 = PyInt_FromLong(__pyx_v_event->start_mark.line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 536; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":537
 *                 event.start_mark.index,
 *                 event.start_mark.line,
 *                 event.start_mark.column,             # <<<<<<<<<<<<<<
 *                 None, None)
 *         end_mark = Mark(self.stream_name,
 */
  __pyx_t_3 = PyInt_FromLong(__pyx_v_event->start_mark.column); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 537; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":538
 *                 event.start_mark.line,
 *                 event.start_mark.column,
 *                 None, None)             # <<<<<<<<<<<<<<
 *         end_mark = Mark(self.stream_name,
 *                 event.end_mark.index,
 */
  __pyx_t_4 = PyTuple_New(6); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 534; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __Pyx_INCREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_self->stream_name);
  __Pyx_GIVEREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_4, 4, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_4, 5, Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 534; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_v_start_mark);
  __pyx_v_start_mark = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":540
 *                 None, None)
 *         end_mark = Mark(self.stream_name,
 *                 event.end_mark.index,             # <<<<<<<<<<<<<<
 *                 event.end_mark.line,
 *                 event.end_mark.column,
 */
  __pyx_t_3 = PyInt_FromLong(__pyx_v_event->end_mark.index); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":541
 *         end_mark = Mark(self.stream_name,
 *                 event.end_mark.index,
 *                 event.end_mark.line,             # <<<<<<<<<<<<<<
 *                 event.end_mark.column,
 *                 None, None)
 */
  __pyx_t_4 = PyInt_FromLong(__pyx_v_event->end_mark.line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":542
 *                 event.end_mark.index,
 *                 event.end_mark.line,
 *                 event.end_mark.column,             # <<<<<<<<<<<<<<
 *                 None, None)
 *         if event.type == YAML_NO_EVENT:
 */
  __pyx_t_2 = PyInt_FromLong(__pyx_v_event->end_mark.column); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":543
 *                 event.end_mark.line,
 *                 event.end_mark.column,
 *                 None, None)             # <<<<<<<<<<<<<<
 *         if event.type == YAML_NO_EVENT:
 *             return None
 */
  __pyx_t_1 = PyTuple_New(6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __Pyx_INCREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->stream_name);
  __Pyx_GIVEREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_1, 4, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_1, 5, Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_v_end_mark);
  __pyx_v_end_mark = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":544
 *                 event.end_mark.column,
 *                 None, None)
 *         if event.type == YAML_NO_EVENT:             # <<<<<<<<<<<<<<
 *             return None
 *         elif event.type == YAML_STREAM_START_EVENT:
 */
  __pyx_t_5 = (__pyx_v_event->type == YAML_NO_EVENT);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":545
 *                 None, None)
 *         if event.type == YAML_NO_EVENT:
 *             return None             # <<<<<<<<<<<<<<
 *         elif event.type == YAML_STREAM_START_EVENT:
 *             encoding = None
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":546
 *         if event.type == YAML_NO_EVENT:
 *             return None
 *         elif event.type == YAML_STREAM_START_EVENT:             # <<<<<<<<<<<<<<
 *             encoding = None
 *             if event.data.stream_start.encoding == YAML_UTF8_ENCODING:
 */
  __pyx_t_5 = (__pyx_v_event->type == YAML_STREAM_START_EVENT);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":547
 *             return None
 *         elif event.type == YAML_STREAM_START_EVENT:
 *             encoding = None             # <<<<<<<<<<<<<<
 *             if event.data.stream_start.encoding == YAML_UTF8_ENCODING:
 *                 if self.unicode_source == 0:
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_encoding);
    __pyx_v_encoding = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":548
 *         elif event.type == YAML_STREAM_START_EVENT:
 *             encoding = None
 *             if event.data.stream_start.encoding == YAML_UTF8_ENCODING:             # <<<<<<<<<<<<<<
 *                 if self.unicode_source == 0:
 *                     encoding = u"utf-8"
 */
    __pyx_t_5 = (__pyx_v_event->data.stream_start.encoding == YAML_UTF8_ENCODING);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":549
 *             encoding = None
 *             if event.data.stream_start.encoding == YAML_UTF8_ENCODING:
 *                 if self.unicode_source == 0:             # <<<<<<<<<<<<<<
 *                     encoding = u"utf-8"
 *             elif event.data.stream_start.encoding == YAML_UTF16LE_ENCODING:
 */
      __pyx_t_5 = (__pyx_v_self->unicode_source == 0);
      if (__pyx_t_5) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":550
 *             if event.data.stream_start.encoding == YAML_UTF8_ENCODING:
 *                 if self.unicode_source == 0:
 *                     encoding = u"utf-8"             # <<<<<<<<<<<<<<
 *             elif event.data.stream_start.encoding == YAML_UTF16LE_ENCODING:
 *                 encoding = u"utf-16-le"
 */
        __Pyx_INCREF(((PyObject *)__pyx_kp_32));
        __Pyx_DECREF(__pyx_v_encoding);
        __pyx_v_encoding = ((PyObject *)__pyx_kp_32);
        goto __pyx_L5;
      }
      __pyx_L5:;
      goto __pyx_L4;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":551
 *                 if self.unicode_source == 0:
 *                     encoding = u"utf-8"
 *             elif event.data.stream_start.encoding == YAML_UTF16LE_ENCODING:             # <<<<<<<<<<<<<<
 *                 encoding = u"utf-16-le"
 *             elif event.data.stream_start.encoding == YAML_UTF16BE_ENCODING:
 */
    __pyx_t_5 = (__pyx_v_event->data.stream_start.encoding == YAML_UTF16LE_ENCODING);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":552
 *                     encoding = u"utf-8"
 *             elif event.data.stream_start.encoding == YAML_UTF16LE_ENCODING:
 *                 encoding = u"utf-16-le"             # <<<<<<<<<<<<<<
 *             elif event.data.stream_start.encoding == YAML_UTF16BE_ENCODING:
 *                 encoding = u"utf-16-be"
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_33));
      __Pyx_DECREF(__pyx_v_encoding);
      __pyx_v_encoding = ((PyObject *)__pyx_kp_33);
      goto __pyx_L4;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":553
 *             elif event.data.stream_start.encoding == YAML_UTF16LE_ENCODING:
 *                 encoding = u"utf-16-le"
 *             elif event.data.stream_start.encoding == YAML_UTF16BE_ENCODING:             # <<<<<<<<<<<<<<
 *                 encoding = u"utf-16-be"
 *             return StreamStartEvent(start_mark, end_mark, encoding)
 */
    __pyx_t_5 = (__pyx_v_event->data.stream_start.encoding == YAML_UTF16BE_ENCODING);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":554
 *                 encoding = u"utf-16-le"
 *             elif event.data.stream_start.encoding == YAML_UTF16BE_ENCODING:
 *                 encoding = u"utf-16-be"             # <<<<<<<<<<<<<<
 *             return StreamStartEvent(start_mark, end_mark, encoding)
 *         elif event.type == YAML_STREAM_END_EVENT:
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_34));
      __Pyx_DECREF(__pyx_v_encoding);
      __pyx_v_encoding = ((PyObject *)__pyx_kp_34);
      goto __pyx_L4;
    }
    __pyx_L4:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":555
 *             elif event.data.stream_start.encoding == YAML_UTF16BE_ENCODING:
 *                 encoding = u"utf-16-be"
 *             return StreamStartEvent(start_mark, end_mark, encoding)             # <<<<<<<<<<<<<<
 *         elif event.type == YAML_STREAM_END_EVENT:
 *             return StreamEndEvent(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_StreamStartEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __Pyx_INCREF(__pyx_v_encoding);
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_encoding);
    __Pyx_GIVEREF(__pyx_v_encoding);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":556
 *                 encoding = u"utf-16-be"
 *             return StreamStartEvent(start_mark, end_mark, encoding)
 *         elif event.type == YAML_STREAM_END_EVENT:             # <<<<<<<<<<<<<<
 *             return StreamEndEvent(start_mark, end_mark)
 *         elif event.type == YAML_DOCUMENT_START_EVENT:
 */
  __pyx_t_5 = (__pyx_v_event->type == YAML_STREAM_END_EVENT);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":557
 *             return StreamStartEvent(start_mark, end_mark, encoding)
 *         elif event.type == YAML_STREAM_END_EVENT:
 *             return StreamEndEvent(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif event.type == YAML_DOCUMENT_START_EVENT:
 *             explicit = False
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_StreamEndEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":558
 *         elif event.type == YAML_STREAM_END_EVENT:
 *             return StreamEndEvent(start_mark, end_mark)
 *         elif event.type == YAML_DOCUMENT_START_EVENT:             # <<<<<<<<<<<<<<
 *             explicit = False
 *             if event.data.document_start.implicit == 0:
 */
  __pyx_t_5 = (__pyx_v_event->type == YAML_DOCUMENT_START_EVENT);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":559
 *             return StreamEndEvent(start_mark, end_mark)
 *         elif event.type == YAML_DOCUMENT_START_EVENT:
 *             explicit = False             # <<<<<<<<<<<<<<
 *             if event.data.document_start.implicit == 0:
 *                 explicit = True
 */
    __pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_explicit);
    __pyx_v_explicit = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":560
 *         elif event.type == YAML_DOCUMENT_START_EVENT:
 *             explicit = False
 *             if event.data.document_start.implicit == 0:             # <<<<<<<<<<<<<<
 *                 explicit = True
 *             version = None
 */
    __pyx_t_5 = (__pyx_v_event->data.document_start.implicit == 0);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":561
 *             explicit = False
 *             if event.data.document_start.implicit == 0:
 *                 explicit = True             # <<<<<<<<<<<<<<
 *             version = None
 *             if event.data.document_start.version_directive != NULL:
 */
      __pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_v_explicit);
      __pyx_v_explicit = __pyx_t_2;
      __pyx_t_2 = 0;
      goto __pyx_L6;
    }
    __pyx_L6:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":562
 *             if event.data.document_start.implicit == 0:
 *                 explicit = True
 *             version = None             # <<<<<<<<<<<<<<
 *             if event.data.document_start.version_directive != NULL:
 *                 version = (event.data.document_start.version_directive.major,
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_version);
    __pyx_v_version = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":563
 *                 explicit = True
 *             version = None
 *             if event.data.document_start.version_directive != NULL:             # <<<<<<<<<<<<<<
 *                 version = (event.data.document_start.version_directive.major,
 *                         event.data.document_start.version_directive.minor)
 */
    __pyx_t_5 = (__pyx_v_event->data.document_start.version_directive != NULL);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":564
 *             version = None
 *             if event.data.document_start.version_directive != NULL:
 *                 version = (event.data.document_start.version_directive.major,             # <<<<<<<<<<<<<<
 *                         event.data.document_start.version_directive.minor)
 *             tags = None
 */
      __pyx_t_2 = PyInt_FromLong(__pyx_v_event->data.document_start.version_directive->major); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":565
 *             if event.data.document_start.version_directive != NULL:
 *                 version = (event.data.document_start.version_directive.major,
 *                         event.data.document_start.version_directive.minor)             # <<<<<<<<<<<<<<
 *             tags = None
 *             if event.data.document_start.tag_directives.start != NULL:
 */
      __pyx_t_1 = PyInt_FromLong(__pyx_v_event->data.document_start.version_directive->minor); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_4));
      PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
      __Pyx_GIVEREF(__pyx_t_2);
      PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
      __Pyx_GIVEREF(__pyx_t_1);
      __pyx_t_2 = 0;
      __pyx_t_1 = 0;
      __Pyx_DECREF(__pyx_v_version);
      __pyx_v_version = ((PyObject *)__pyx_t_4);
      __pyx_t_4 = 0;
      goto __pyx_L7;
    }
    __pyx_L7:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":566
 *                 version = (event.data.document_start.version_directive.major,
 *                         event.data.document_start.version_directive.minor)
 *             tags = None             # <<<<<<<<<<<<<<
 *             if event.data.document_start.tag_directives.start != NULL:
 *                 tags = {}
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_tags);
    __pyx_v_tags = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":567
 *                         event.data.document_start.version_directive.minor)
 *             tags = None
 *             if event.data.document_start.tag_directives.start != NULL:             # <<<<<<<<<<<<<<
 *                 tags = {}
 *                 tag_directive = event.data.document_start.tag_directives.start
 */
    __pyx_t_5 = (__pyx_v_event->data.document_start.tag_directives.start != NULL);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":568
 *             tags = None
 *             if event.data.document_start.tag_directives.start != NULL:
 *                 tags = {}             # <<<<<<<<<<<<<<
 *                 tag_directive = event.data.document_start.tag_directives.start
 *                 while tag_directive != event.data.document_start.tag_directives.end:
 */
      __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_1));
      __Pyx_DECREF(__pyx_v_tags);
      __pyx_v_tags = ((PyObject *)__pyx_1);
      __pyx_1 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":569
 *             if event.data.document_start.tag_directives.start != NULL:
 *                 tags = {}
 *                 tag_directive = event.data.document_start.tag_directives.start             # <<<<<<<<<<<<<<
 *                 while tag_directive != event.data.document_start.tag_directives.end:
 *                     handle = PyUnicode_FromString(tag_directive.handle)
 */
      __pyx_v_tag_directive = __pyx_v_event->data.document_start.tag_directives.start;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":570
 *                 tags = {}
 *                 tag_directive = event.data.document_start.tag_directives.start
 *                 while tag_directive != event.data.document_start.tag_directives.end:             # <<<<<<<<<<<<<<
 *                     handle = PyUnicode_FromString(tag_directive.handle)
 *                     prefix = PyUnicode_FromString(tag_directive.prefix)
 */
      while (1) {
        __pyx_t_5 = (__pyx_v_tag_directive != __pyx_v_event->data.document_start.tag_directives.end);
        if (!__pyx_t_5) break;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":571
 *                 tag_directive = event.data.document_start.tag_directives.start
 *                 while tag_directive != event.data.document_start.tag_directives.end:
 *                     handle = PyUnicode_FromString(tag_directive.handle)             # <<<<<<<<<<<<<<
 *                     prefix = PyUnicode_FromString(tag_directive.prefix)
 *                     tags[handle] = prefix
 */
        __pyx_t_4 = PyUnicode_FromString(__pyx_v_tag_directive->handle); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_v_handle);
        __pyx_v_handle = __pyx_t_4;
        __pyx_t_4 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":572
 *                 while tag_directive != event.data.document_start.tag_directives.end:
 *                     handle = PyUnicode_FromString(tag_directive.handle)
 *                     prefix = PyUnicode_FromString(tag_directive.prefix)             # <<<<<<<<<<<<<<
 *                     tags[handle] = prefix
 *                     tag_directive = tag_directive+1
 */
        __pyx_t_4 = PyUnicode_FromString(__pyx_v_tag_directive->prefix); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_v_prefix);
        __pyx_v_prefix = __pyx_t_4;
        __pyx_t_4 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":573
 *                     handle = PyUnicode_FromString(tag_directive.handle)
 *                     prefix = PyUnicode_FromString(tag_directive.prefix)
 *                     tags[handle] = prefix             # <<<<<<<<<<<<<<
 *                     tag_directive = tag_directive+1
 *             return DocumentStartEvent(start_mark, end_mark,
 */
        if (PyObject_SetItem(__pyx_v_tags, __pyx_v_handle, __pyx_v_prefix) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":574
 *                     prefix = PyUnicode_FromString(tag_directive.prefix)
 *                     tags[handle] = prefix
 *                     tag_directive = tag_directive+1             # <<<<<<<<<<<<<<
 *             return DocumentStartEvent(start_mark, end_mark,
 *                     explicit, version, tags)
 */
        __pyx_v_tag_directive = (__pyx_v_tag_directive + 1);
      }
      goto __pyx_L8;
    }
    __pyx_L8:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":575
 *                     tags[handle] = prefix
 *                     tag_directive = tag_directive+1
 *             return DocumentStartEvent(start_mark, end_mark,             # <<<<<<<<<<<<<<
 *                     explicit, version, tags)
 *         elif event.type == YAML_DOCUMENT_END_EVENT:
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_DocumentStartEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":576
 *                     tag_directive = tag_directive+1
 *             return DocumentStartEvent(start_mark, end_mark,
 *                     explicit, version, tags)             # <<<<<<<<<<<<<<
 *         elif event.type == YAML_DOCUMENT_END_EVENT:
 *             explicit = False
 */
    __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __Pyx_INCREF(__pyx_v_explicit);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_explicit);
    __Pyx_GIVEREF(__pyx_v_explicit);
    __Pyx_INCREF(__pyx_v_version);
    PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_v_version);
    __Pyx_GIVEREF(__pyx_v_version);
    __Pyx_INCREF(__pyx_v_tags);
    PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_v_tags);
    __Pyx_GIVEREF(__pyx_v_tags);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":577
 *             return DocumentStartEvent(start_mark, end_mark,
 *                     explicit, version, tags)
 *         elif event.type == YAML_DOCUMENT_END_EVENT:             # <<<<<<<<<<<<<<
 *             explicit = False
 *             if event.data.document_end.implicit == 0:
 */
  __pyx_t_5 = (__pyx_v_event->type == YAML_DOCUMENT_END_EVENT);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":578
 *                     explicit, version, tags)
 *         elif event.type == YAML_DOCUMENT_END_EVENT:
 *             explicit = False             # <<<<<<<<<<<<<<
 *             if event.data.document_end.implicit == 0:
 *                 explicit = True
 */
    __pyx_t_1 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v_explicit);
    __pyx_v_explicit = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":579
 *         elif event.type == YAML_DOCUMENT_END_EVENT:
 *             explicit = False
 *             if event.data.document_end.implicit == 0:             # <<<<<<<<<<<<<<
 *                 explicit = True
 *             return DocumentEndEvent(start_mark, end_mark, explicit)
 */
    __pyx_t_5 = (__pyx_v_event->data.document_end.implicit == 0);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":580
 *             explicit = False
 *             if event.data.document_end.implicit == 0:
 *                 explicit = True             # <<<<<<<<<<<<<<
 *             return DocumentEndEvent(start_mark, end_mark, explicit)
 *         elif event.type == YAML_ALIAS_EVENT:
 */
      __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_v_explicit);
      __pyx_v_explicit = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L11;
    }
    __pyx_L11:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":581
 *             if event.data.document_end.implicit == 0:
 *                 explicit = True
 *             return DocumentEndEvent(start_mark, end_mark, explicit)             # <<<<<<<<<<<<<<
 *         elif event.type == YAML_ALIAS_EVENT:
 *             anchor = PyUnicode_FromString(event.data.alias.anchor)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_DocumentEndEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __Pyx_INCREF(__pyx_v_explicit);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_explicit);
    __Pyx_GIVEREF(__pyx_v_explicit);
    __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":582
 *                 explicit = True
 *             return DocumentEndEvent(start_mark, end_mark, explicit)
 *         elif event.type == YAML_ALIAS_EVENT:             # <<<<<<<<<<<<<<
 *             anchor = PyUnicode_FromString(event.data.alias.anchor)
 *             return AliasEvent(anchor, start_mark, end_mark)
 */
  __pyx_t_5 = (__pyx_v_event->type == YAML_ALIAS_EVENT);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":583
 *             return DocumentEndEvent(start_mark, end_mark, explicit)
 *         elif event.type == YAML_ALIAS_EVENT:
 *             anchor = PyUnicode_FromString(event.data.alias.anchor)             # <<<<<<<<<<<<<<
 *             return AliasEvent(anchor, start_mark, end_mark)
 *         elif event.type == YAML_SCALAR_EVENT:
 */
    __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.alias.anchor); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_v_anchor);
    __pyx_v_anchor = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":584
 *         elif event.type == YAML_ALIAS_EVENT:
 *             anchor = PyUnicode_FromString(event.data.alias.anchor)
 *             return AliasEvent(anchor, start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif event.type == YAML_SCALAR_EVENT:
 *             anchor = None
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_AliasEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_anchor);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_anchor);
    __Pyx_GIVEREF(__pyx_v_anchor);
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":585
 *             anchor = PyUnicode_FromString(event.data.alias.anchor)
 *             return AliasEvent(anchor, start_mark, end_mark)
 *         elif event.type == YAML_SCALAR_EVENT:             # <<<<<<<<<<<<<<
 *             anchor = None
 *             if event.data.scalar.anchor != NULL:
 */
  __pyx_t_5 = (__pyx_v_event->type == YAML_SCALAR_EVENT);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":586
 *             return AliasEvent(anchor, start_mark, end_mark)
 *         elif event.type == YAML_SCALAR_EVENT:
 *             anchor = None             # <<<<<<<<<<<<<<
 *             if event.data.scalar.anchor != NULL:
 *                 anchor = PyUnicode_FromString(event.data.scalar.anchor)
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_anchor);
    __pyx_v_anchor = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":587
 *         elif event.type == YAML_SCALAR_EVENT:
 *             anchor = None
 *             if event.data.scalar.anchor != NULL:             # <<<<<<<<<<<<<<
 *                 anchor = PyUnicode_FromString(event.data.scalar.anchor)
 *             tag = None
 */
    __pyx_t_5 = (__pyx_v_event->data.scalar.anchor != NULL);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":588
 *             anchor = None
 *             if event.data.scalar.anchor != NULL:
 *                 anchor = PyUnicode_FromString(event.data.scalar.anchor)             # <<<<<<<<<<<<<<
 *             tag = None
 *             if event.data.scalar.tag != NULL:
 */
      __pyx_t_1 = PyUnicode_FromString(__pyx_v_event->data.scalar.anchor); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_v_anchor);
      __pyx_v_anchor = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L12;
    }
    __pyx_L12:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":589
 *             if event.data.scalar.anchor != NULL:
 *                 anchor = PyUnicode_FromString(event.data.scalar.anchor)
 *             tag = None             # <<<<<<<<<<<<<<
 *             if event.data.scalar.tag != NULL:
 *                 tag = PyUnicode_FromString(event.data.scalar.tag)
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_tag);
    __pyx_v_tag = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":590
 *                 anchor = PyUnicode_FromString(event.data.scalar.anchor)
 *             tag = None
 *             if event.data.scalar.tag != NULL:             # <<<<<<<<<<<<<<
 *                 tag = PyUnicode_FromString(event.data.scalar.tag)
 *             value = PyUnicode_DecodeUTF8(event.data.scalar.value,
 */
    __pyx_t_5 = (__pyx_v_event->data.scalar.tag != NULL);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":591
 *             tag = None
 *             if event.data.scalar.tag != NULL:
 *                 tag = PyUnicode_FromString(event.data.scalar.tag)             # <<<<<<<<<<<<<<
 *             value = PyUnicode_DecodeUTF8(event.data.scalar.value,
 *                     event.data.scalar.length, 'strict')
 */
      __pyx_t_1 = PyUnicode_FromString(__pyx_v_event->data.scalar.tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_v_tag);
      __pyx_v_tag = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L13;
    }
    __pyx_L13:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":593
 *                 tag = PyUnicode_FromString(event.data.scalar.tag)
 *             value = PyUnicode_DecodeUTF8(event.data.scalar.value,
 *                     event.data.scalar.length, 'strict')             # <<<<<<<<<<<<<<
 *             plain_implicit = False
 *             if event.data.scalar.plain_implicit == 1:
 */
    __pyx_t_1 = PyUnicode_DecodeUTF8(__pyx_v_event->data.scalar.value, __pyx_v_event->data.scalar.length, __pyx_k_35); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v_value);
    __pyx_v_value = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":594
 *             value = PyUnicode_DecodeUTF8(event.data.scalar.value,
 *                     event.data.scalar.length, 'strict')
 *             plain_implicit = False             # <<<<<<<<<<<<<<
 *             if event.data.scalar.plain_implicit == 1:
 *                 plain_implicit = True
 */
    __pyx_t_1 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v_plain_implicit);
    __pyx_v_plain_implicit = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":595
 *                     event.data.scalar.length, 'strict')
 *             plain_implicit = False
 *             if event.data.scalar.plain_implicit == 1:             # <<<<<<<<<<<<<<
 *                 plain_implicit = True
 *             quoted_implicit = False
 */
    __pyx_t_5 = (__pyx_v_event->data.scalar.plain_implicit == 1);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":596
 *             plain_implicit = False
 *             if event.data.scalar.plain_implicit == 1:
 *                 plain_implicit = True             # <<<<<<<<<<<<<<
 *             quoted_implicit = False
 *             if event.data.scalar.quoted_implicit == 1:
 */
      __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_v_plain_implicit);
      __pyx_v_plain_implicit = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L14;
    }
    __pyx_L14:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":597
 *             if event.data.scalar.plain_implicit == 1:
 *                 plain_implicit = True
 *             quoted_implicit = False             # <<<<<<<<<<<<<<
 *             if event.data.scalar.quoted_implicit == 1:
 *                 quoted_implicit = True
 */
    __pyx_t_1 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v_quoted_implicit);
    __pyx_v_quoted_implicit = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":598
 *                 plain_implicit = True
 *             quoted_implicit = False
 *             if event.data.scalar.quoted_implicit == 1:             # <<<<<<<<<<<<<<
 *                 quoted_implicit = True
 *             style = None
 */
    __pyx_t_5 = (__pyx_v_event->data.scalar.quoted_implicit == 1);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":599
 *             quoted_implicit = False
 *             if event.data.scalar.quoted_implicit == 1:
 *                 quoted_implicit = True             # <<<<<<<<<<<<<<
 *             style = None
 *             if event.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 */
      __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_v_quoted_implicit);
      __pyx_v_quoted_implicit = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L15;
    }
    __pyx_L15:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":600
 *             if event.data.scalar.quoted_implicit == 1:
 *                 quoted_implicit = True
 *             style = None             # <<<<<<<<<<<<<<
 *             if event.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 *                 style = u''
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_style);
    __pyx_v_style = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":601
 *                 quoted_implicit = True
 *             style = None
 *             if event.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 style = u''
 *             elif event.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 */
    __pyx_t_5 = (__pyx_v_event->data.scalar.style == YAML_PLAIN_SCALAR_STYLE);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":602
 *             style = None
 *             if event.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 *                 style = u''             # <<<<<<<<<<<<<<
 *             elif event.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 *                 style = u'\''
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_36));
      __Pyx_DECREF(__pyx_v_style);
      __pyx_v_style = ((PyObject *)__pyx_kp_36);
      goto __pyx_L16;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":603
 *             if event.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 *                 style = u''
 *             elif event.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 style = u'\''
 *             elif event.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 */
    __pyx_t_5 = (__pyx_v_event->data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":604
 *                 style = u''
 *             elif event.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 *                 style = u'\''             # <<<<<<<<<<<<<<
 *             elif event.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 *                 style = u'"'
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_37));
      __Pyx_DECREF(__pyx_v_style);
      __pyx_v_style = ((PyObject *)__pyx_kp_37);
      goto __pyx_L16;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":605
 *             elif event.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 *                 style = u'\''
 *             elif event.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 style = u'"'
 *             elif event.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 */
    __pyx_t_5 = (__pyx_v_event->data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":606
 *                 style = u'\''
 *             elif event.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 *                 style = u'"'             # <<<<<<<<<<<<<<
 *             elif event.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 *                 style = u'|'
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_38));
      __Pyx_DECREF(__pyx_v_style);
      __pyx_v_style = ((PyObject *)__pyx_kp_38);
      goto __pyx_L16;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":607
 *             elif event.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 *                 style = u'"'
 *             elif event.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 style = u'|'
 *             elif event.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 */
    __pyx_t_5 = (__pyx_v_event->data.scalar.style == YAML_LITERAL_SCALAR_STYLE);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":608
 *                 style = u'"'
 *             elif event.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 *                 style = u'|'             # <<<<<<<<<<<<<<
 *             elif event.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 *                 style = u'>'
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_39));
      __Pyx_DECREF(__pyx_v_style);
      __pyx_v_style = ((PyObject *)__pyx_kp_39);
      goto __pyx_L16;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":609
 *             elif event.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 *                 style = u'|'
 *             elif event.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *                 style = u'>'
 *             return ScalarEvent(anchor, tag,
 */
    __pyx_t_5 = (__pyx_v_event->data.scalar.style == YAML_FOLDED_SCALAR_STYLE);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":610
 *                 style = u'|'
 *             elif event.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 *                 style = u'>'             # <<<<<<<<<<<<<<
 *             return ScalarEvent(anchor, tag,
 *                     (plain_implicit, quoted_implicit),
 */
      __Pyx_INCREF(((PyObject *)__pyx_kp_40));
      __Pyx_DECREF(__pyx_v_style);
      __pyx_v_style = ((PyObject *)__pyx_kp_40);
      goto __pyx_L16;
    }
    __pyx_L16:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":611
 *             elif event.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 *                 style = u'>'
 *             return ScalarEvent(anchor, tag,             # <<<<<<<<<<<<<<
 *                     (plain_implicit, quoted_implicit),
 *                     value, start_mark, end_mark, style)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ScalarEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":612
 *                 style = u'>'
 *             return ScalarEvent(anchor, tag,
 *                     (plain_implicit, quoted_implicit),             # <<<<<<<<<<<<<<
 *                     value, start_mark, end_mark, style)
 *         elif event.type == YAML_SEQUENCE_START_EVENT:
 */
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_plain_implicit);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_plain_implicit);
    __Pyx_GIVEREF(__pyx_v_plain_implicit);
    __Pyx_INCREF(__pyx_v_quoted_implicit);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_quoted_implicit);
    __Pyx_GIVEREF(__pyx_v_quoted_implicit);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":613
 *             return ScalarEvent(anchor, tag,
 *                     (plain_implicit, quoted_implicit),
 *                     value, start_mark, end_mark, style)             # <<<<<<<<<<<<<<
 *         elif event.type == YAML_SEQUENCE_START_EVENT:
 *             anchor = None
 */
    __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_anchor);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_anchor);
    __Pyx_GIVEREF(__pyx_v_anchor);
    __Pyx_INCREF(__pyx_v_tag);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_tag);
    __Pyx_GIVEREF(__pyx_v_tag);
    PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_t_1));
    __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __Pyx_INCREF(__pyx_v_style);
    PyTuple_SET_ITEM(__pyx_t_4, 6, __pyx_v_style);
    __Pyx_GIVEREF(__pyx_v_style);
    __pyx_t_1 = 0;
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":614
 *                     (plain_implicit, quoted_implicit),
 *                     value, start_mark, end_mark, style)
 *         elif event.type == YAML_SEQUENCE_START_EVENT:             # <<<<<<<<<<<<<<
 *             anchor = None
 *             if event.data.sequence_start.anchor != NULL:
 */
  __pyx_t_5 = (__pyx_v_event->type == YAML_SEQUENCE_START_EVENT);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":615
 *                     value, start_mark, end_mark, style)
 *         elif event.type == YAML_SEQUENCE_START_EVENT:
 *             anchor = None             # <<<<<<<<<<<<<<
 *             if event.data.sequence_start.anchor != NULL:
 *                 anchor = PyUnicode_FromString(event.data.sequence_start.anchor)
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_anchor);
    __pyx_v_anchor = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":616
 *         elif event.type == YAML_SEQUENCE_START_EVENT:
 *             anchor = None
 *             if event.data.sequence_start.anchor != NULL:             # <<<<<<<<<<<<<<
 *                 anchor = PyUnicode_FromString(event.data.sequence_start.anchor)
 *             tag = None
 */
    __pyx_t_5 = (__pyx_v_event->data.sequence_start.anchor != NULL);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":617
 *             anchor = None
 *             if event.data.sequence_start.anchor != NULL:
 *                 anchor = PyUnicode_FromString(event.data.sequence_start.anchor)             # <<<<<<<<<<<<<<
 *             tag = None
 *             if event.data.sequence_start.tag != NULL:
 */
      __pyx_t_1 = PyUnicode_FromString(__pyx_v_event->data.sequence_start.anchor); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_v_anchor);
      __pyx_v_anchor = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L17;
    }
    __pyx_L17:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":618
 *             if event.data.sequence_start.anchor != NULL:
 *                 anchor = PyUnicode_FromString(event.data.sequence_start.anchor)
 *             tag = None             # <<<<<<<<<<<<<<
 *             if event.data.sequence_start.tag != NULL:
 *                 tag = PyUnicode_FromString(event.data.sequence_start.tag)
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_tag);
    __pyx_v_tag = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":619
 *                 anchor = PyUnicode_FromString(event.data.sequence_start.anchor)
 *             tag = None
 *             if event.data.sequence_start.tag != NULL:             # <<<<<<<<<<<<<<
 *                 tag = PyUnicode_FromString(event.data.sequence_start.tag)
 *             implicit = False
 */
    __pyx_t_5 = (__pyx_v_event->data.sequence_start.tag != NULL);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":620
 *             tag = None
 *             if event.data.sequence_start.tag != NULL:
 *                 tag = PyUnicode_FromString(event.data.sequence_start.tag)             # <<<<<<<<<<<<<<
 *             implicit = False
 *             if event.data.sequence_start.implicit == 1:
 */
      __pyx_t_1 = PyUnicode_FromString(__pyx_v_event->data.sequence_start.tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_v_tag);
      __pyx_v_tag = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L18;
    }
    __pyx_L18:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":621
 *             if event.data.sequence_start.tag != NULL:
 *                 tag = PyUnicode_FromString(event.data.sequence_start.tag)
 *             implicit = False             # <<<<<<<<<<<<<<
 *             if event.data.sequence_start.implicit == 1:
 *                 implicit = True
 */
    __pyx_t_1 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v_implicit);
    __pyx_v_implicit = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":622
 *                 tag = PyUnicode_FromString(event.data.sequence_start.tag)
 *             implicit = False
 *             if event.data.sequence_start.implicit == 1:             # <<<<<<<<<<<<<<
 *                 implicit = True
 *             flow_style = None
 */
    __pyx_t_5 = (__pyx_v_event->data.sequence_start.implicit == 1);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":623
 *             implicit = False
 *             if event.data.sequence_start.implicit == 1:
 *                 implicit = True             # <<<<<<<<<<<<<<
 *             flow_style = None
 *             if event.data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE:
 */
      __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_v_implicit);
      __pyx_v_implicit = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L19;
    }
    __pyx_L19:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":624
 *             if event.data.sequence_start.implicit == 1:
 *                 implicit = True
 *             flow_style = None             # <<<<<<<<<<<<<<
 *             if event.data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE:
 *                 flow_style = True
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_flow_style);
    __pyx_v_flow_style = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":625
 *                 implicit = True
 *             flow_style = None
 *             if event.data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE:             # <<<<<<<<<<<<<<
 *                 flow_style = True
 *             elif event.data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE:
 */
    __pyx_t_5 = (__pyx_v_event->data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":626
 *             flow_style = None
 *             if event.data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE:
 *                 flow_style = True             # <<<<<<<<<<<<<<
 *             elif event.data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE:
 *                 flow_style = False
 */
      __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_v_flow_style);
      __pyx_v_flow_style = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L20;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":627
 *             if event.data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE:
 *                 flow_style = True
 *             elif event.data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE:             # <<<<<<<<<<<<<<
 *                 flow_style = False
 *             return SequenceStartEvent(anchor, tag, implicit,
 */
    __pyx_t_5 = (__pyx_v_event->data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":628
 *                 flow_style = True
 *             elif event.data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE:
 *                 flow_style = False             # <<<<<<<<<<<<<<
 *             return SequenceStartEvent(anchor, tag, implicit,
 *                     start_mark, end_mark, flow_style)
 */
      __pyx_t_1 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_v_flow_style);
      __pyx_v_flow_style = __pyx_t_1;
      __pyx_t_1 = 0;
      goto __pyx_L20;
    }
    __pyx_L20:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":629
 *             elif event.data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE:
 *                 flow_style = False
 *             return SequenceStartEvent(anchor, tag, implicit,             # <<<<<<<<<<<<<<
 *                     start_mark, end_mark, flow_style)
 *         elif event.type == YAML_MAPPING_START_EVENT:
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SequenceStartEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":630
 *                 flow_style = False
 *             return SequenceStartEvent(anchor, tag, implicit,
 *                     start_mark, end_mark, flow_style)             # <<<<<<<<<<<<<<
 *         elif event.type == YAML_MAPPING_START_EVENT:
 *             anchor = None
 */
    __pyx_t_1 = PyTuple_New(6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_anchor);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_anchor);
    __Pyx_GIVEREF(__pyx_v_anchor);
    __Pyx_INCREF(__pyx_v_tag);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_tag);
    __Pyx_GIVEREF(__pyx_v_tag);
    __Pyx_INCREF(__pyx_v_implicit);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_implicit);
    __Pyx_GIVEREF(__pyx_v_implicit);
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __Pyx_INCREF(__pyx_v_flow_style);
    PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_v_flow_style);
    __Pyx_GIVEREF(__pyx_v_flow_style);
    __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":631
 *             return SequenceStartEvent(anchor, tag, implicit,
 *                     start_mark, end_mark, flow_style)
 *         elif event.type == YAML_MAPPING_START_EVENT:             # <<<<<<<<<<<<<<
 *             anchor = None
 *             if event.data.mapping_start.anchor != NULL:
 */
  __pyx_t_5 = (__pyx_v_event->type == YAML_MAPPING_START_EVENT);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":632
 *                     start_mark, end_mark, flow_style)
 *         elif event.type == YAML_MAPPING_START_EVENT:
 *             anchor = None             # <<<<<<<<<<<<<<
 *             if event.data.mapping_start.anchor != NULL:
 *                 anchor = PyUnicode_FromString(event.data.mapping_start.anchor)
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_anchor);
    __pyx_v_anchor = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":633
 *         elif event.type == YAML_MAPPING_START_EVENT:
 *             anchor = None
 *             if event.data.mapping_start.anchor != NULL:             # <<<<<<<<<<<<<<
 *                 anchor = PyUnicode_FromString(event.data.mapping_start.anchor)
 *             tag = None
 */
    __pyx_t_5 = (__pyx_v_event->data.mapping_start.anchor != NULL);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":634
 *             anchor = None
 *             if event.data.mapping_start.anchor != NULL:
 *                 anchor = PyUnicode_FromString(event.data.mapping_start.anchor)             # <<<<<<<<<<<<<<
 *             tag = None
 *             if event.data.mapping_start.tag != NULL:
 */
      __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.mapping_start.anchor); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_v_anchor);
      __pyx_v_anchor = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L21;
    }
    __pyx_L21:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":635
 *             if event.data.mapping_start.anchor != NULL:
 *                 anchor = PyUnicode_FromString(event.data.mapping_start.anchor)
 *             tag = None             # <<<<<<<<<<<<<<
 *             if event.data.mapping_start.tag != NULL:
 *                 tag = PyUnicode_FromString(event.data.mapping_start.tag)
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_tag);
    __pyx_v_tag = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":636
 *                 anchor = PyUnicode_FromString(event.data.mapping_start.anchor)
 *             tag = None
 *             if event.data.mapping_start.tag != NULL:             # <<<<<<<<<<<<<<
 *                 tag = PyUnicode_FromString(event.data.mapping_start.tag)
 *             implicit = False
 */
    __pyx_t_5 = (__pyx_v_event->data.mapping_start.tag != NULL);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":637
 *             tag = None
 *             if event.data.mapping_start.tag != NULL:
 *                 tag = PyUnicode_FromString(event.data.mapping_start.tag)             # <<<<<<<<<<<<<<
 *             implicit = False
 *             if event.data.mapping_start.implicit == 1:
 */
      __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.mapping_start.tag); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_v_tag);
      __pyx_v_tag = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L22;
    }
    __pyx_L22:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":638
 *             if event.data.mapping_start.tag != NULL:
 *                 tag = PyUnicode_FromString(event.data.mapping_start.tag)
 *             implicit = False             # <<<<<<<<<<<<<<
 *             if event.data.mapping_start.implicit == 1:
 *                 implicit = True
 */
    __pyx_t_4 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 638; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_v_implicit);
    __pyx_v_implicit = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":639
 *                 tag = PyUnicode_FromString(event.data.mapping_start.tag)
 *             implicit = False
 *             if event.data.mapping_start.implicit == 1:             # <<<<<<<<<<<<<<
 *                 implicit = True
 *             flow_style = None
 */
    __pyx_t_5 = (__pyx_v_event->data.mapping_start.implicit == 1);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":640
 *             implicit = False
 *             if event.data.mapping_start.implicit == 1:
 *                 implicit = True             # <<<<<<<<<<<<<<
 *             flow_style = None
 *             if event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE:
 */
      __pyx_t_4 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_v_implicit);
      __pyx_v_implicit = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L23;
    }
    __pyx_L23:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":641
 *             if event.data.mapping_start.implicit == 1:
 *                 implicit = True
 *             flow_style = None             # <<<<<<<<<<<<<<
 *             if event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE:
 *                 flow_style = True
 */
    __Pyx_INCREF(Py_None);
    __Pyx_DECREF(__pyx_v_flow_style);
    __pyx_v_flow_style = Py_None;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":642
 *                 implicit = True
 *             flow_style = None
 *             if event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE:             # <<<<<<<<<<<<<<
 *                 flow_style = True
 *             elif event.data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE:
 */
    __pyx_t_5 = (__pyx_v_event->data.mapping_start.style == YAML_FLOW_MAPPING_STYLE);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":643
 *             flow_style = None
 *             if event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE:
 *                 flow_style = True             # <<<<<<<<<<<<<<
 *             elif event.data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE:
 *                 flow_style = False
 */
      __pyx_t_4 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 643; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_v_flow_style);
      __pyx_v_flow_style = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L24;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":644
 *             if event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE:
 *                 flow_style = True
 *             elif event.data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE:             # <<<<<<<<<<<<<<
 *                 flow_style = False
 *             return MappingStartEvent(anchor, tag, implicit,
 */
    __pyx_t_5 = (__pyx_v_event->data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":645
 *                 flow_style = True
 *             elif event.data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE:
 *                 flow_style = False             # <<<<<<<<<<<<<<
 *             return MappingStartEvent(anchor, tag, implicit,
 *                     start_mark, end_mark, flow_style)
 */
      __pyx_t_4 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_v_flow_style);
      __pyx_v_flow_style = __pyx_t_4;
      __pyx_t_4 = 0;
      goto __pyx_L24;
    }
    __pyx_L24:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":646
 *             elif event.data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE:
 *                 flow_style = False
 *             return MappingStartEvent(anchor, tag, implicit,             # <<<<<<<<<<<<<<
 *                     start_mark, end_mark, flow_style)
 *         elif event.type == YAML_SEQUENCE_END_EVENT:
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_MappingStartEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 646; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":647
 *                 flow_style = False
 *             return MappingStartEvent(anchor, tag, implicit,
 *                     start_mark, end_mark, flow_style)             # <<<<<<<<<<<<<<
 *         elif event.type == YAML_SEQUENCE_END_EVENT:
 *             return SequenceEndEvent(start_mark, end_mark)
 */
    __pyx_t_4 = PyTuple_New(6); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 646; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_anchor);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_anchor);
    __Pyx_GIVEREF(__pyx_v_anchor);
    __Pyx_INCREF(__pyx_v_tag);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_tag);
    __Pyx_GIVEREF(__pyx_v_tag);
    __Pyx_INCREF(__pyx_v_implicit);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_implicit);
    __Pyx_GIVEREF(__pyx_v_implicit);
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __Pyx_INCREF(__pyx_v_flow_style);
    PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_v_flow_style);
    __Pyx_GIVEREF(__pyx_v_flow_style);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 646; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":648
 *             return MappingStartEvent(anchor, tag, implicit,
 *                     start_mark, end_mark, flow_style)
 *         elif event.type == YAML_SEQUENCE_END_EVENT:             # <<<<<<<<<<<<<<
 *             return SequenceEndEvent(start_mark, end_mark)
 *         elif event.type == YAML_MAPPING_END_EVENT:
 */
  __pyx_t_5 = (__pyx_v_event->type == YAML_SEQUENCE_END_EVENT);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":649
 *                     start_mark, end_mark, flow_style)
 *         elif event.type == YAML_SEQUENCE_END_EVENT:
 *             return SequenceEndEvent(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         elif event.type == YAML_MAPPING_END_EVENT:
 *             return MappingEndEvent(start_mark, end_mark)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SequenceEndEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 649; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 649; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 649; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    __pyx_r = __pyx_t_4;
    __pyx_t_4 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":650
 *         elif event.type == YAML_SEQUENCE_END_EVENT:
 *             return SequenceEndEvent(start_mark, end_mark)
 *         elif event.type == YAML_MAPPING_END_EVENT:             # <<<<<<<<<<<<<<
 *             return MappingEndEvent(start_mark, end_mark)
 *         else:
 */
  __pyx_t_5 = (__pyx_v_event->type == YAML_MAPPING_END_EVENT);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":651
 *             return SequenceEndEvent(start_mark, end_mark)
 *         elif event.type == YAML_MAPPING_END_EVENT:
 *             return MappingEndEvent(start_mark, end_mark)             # <<<<<<<<<<<<<<
 *         else:
 *             if PY_MAJOR_VERSION < 3:
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_MappingEndEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_start_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_start_mark);
    __Pyx_GIVEREF(__pyx_v_start_mark);
    __Pyx_INCREF(__pyx_v_end_mark);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_end_mark);
    __Pyx_GIVEREF(__pyx_v_end_mark);
    __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":653
 *             return MappingEndEvent(start_mark, end_mark)
 *         else:
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 raise ValueError("unknown event type")
 *             else:
 */
    __pyx_t_5 = (PY_MAJOR_VERSION < 3);
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":654
 *         else:
 *             if PY_MAJOR_VERSION < 3:
 *                 raise ValueError("unknown event type")             # <<<<<<<<<<<<<<
 *             else:
 *                 raise ValueError(u"unknown event type")
 */
      __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_1));
      __Pyx_INCREF(__pyx_kp_41);
      PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_41);
      __Pyx_GIVEREF(__pyx_kp_41);
      __pyx_t_4 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
      __Pyx_Raise(__pyx_t_4, 0, 0);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L25;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":656
 *                 raise ValueError("unknown event type")
 *             else:
 *                 raise ValueError(u"unknown event type")             # <<<<<<<<<<<<<<
 * 
 *     def get_event(self):
 */
      __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_4));
      __Pyx_INCREF(((PyObject *)__pyx_kp_42));
      PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_42));
      __Pyx_GIVEREF(((PyObject *)__pyx_kp_42));
      __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
      __Pyx_Raise(__pyx_t_1, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __pyx_L25:;
  }
  __pyx_L3:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_yaml.CParser._event_to_object");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_start_mark);
  __Pyx_DECREF(__pyx_v_end_mark);
  __Pyx_DECREF(__pyx_v_encoding);
  __Pyx_DECREF(__pyx_v_explicit);
  __Pyx_DECREF(__pyx_v_version);
  __Pyx_DECREF(__pyx_v_tags);
  __Pyx_DECREF(__pyx_v_handle);
  __Pyx_DECREF(__pyx_v_prefix);
  __Pyx_DECREF(__pyx_v_anchor);
  __Pyx_DECREF(__pyx_v_tag);
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_DECREF(__pyx_v_plain_implicit);
  __Pyx_DECREF(__pyx_v_quoted_implicit);
  __Pyx_DECREF(__pyx_v_style);
  __Pyx_DECREF(__pyx_v_implicit);
  __Pyx_DECREF(__pyx_v_flow_style);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":658
 *                 raise ValueError(u"unknown event type")
 * 
 *     def get_event(self):             # <<<<<<<<<<<<<<
 *         if self.current_event is not None:
 *             value = self.current_event
 */

static PyObject *__pyx_pf_5_yaml_7CParser_get_event(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_7CParser_get_event(PyObject *__pyx_v_self, PyObject *unused) {
  PyObject *__pyx_v_value;
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_SetupRefcountContext("get_event");
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":659
 * 
 *     def get_event(self):
 *         if self.current_event is not None:             # <<<<<<<<<<<<<<
 *             value = self.current_event
 *             self.current_event = None
 */
  __pyx_t_1 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event != Py_None);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":660
 *     def get_event(self):
 *         if self.current_event is not None:
 *             value = self.current_event             # <<<<<<<<<<<<<<
 *             self.current_event = None
 *         else:
 */
    __Pyx_INCREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event);
    __Pyx_DECREF(__pyx_v_value);
    __pyx_v_value = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":661
 *         if self.current_event is not None:
 *             value = self.current_event
 *             self.current_event = None             # <<<<<<<<<<<<<<
 *         else:
 *             value = self._parse()
 */
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event);
    __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event);
    ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event = Py_None;
    goto __pyx_L5;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":663
 *             self.current_event = None
 *         else:
 *             value = self._parse()             # <<<<<<<<<<<<<<
 *         return value
 * 
 */
    __pyx_t_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 (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 663; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_value);
    __pyx_v_value = __pyx_t_2;
    __pyx_t_2 = 0;
  }
  __pyx_L5:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":664
 *         else:
 *             value = self._parse()
 *         return value             # <<<<<<<<<<<<<<
 * 
 *     def peek_event(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_value);
  __pyx_r = __pyx_v_value;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("_yaml.CParser.get_event");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":666
 *         return value
 * 
 *     def peek_event(self):             # <<<<<<<<<<<<<<
 *         if self.current_event is None:
 *             self.current_event = self._parse()
 */

static PyObject *__pyx_pf_5_yaml_7CParser_peek_event(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_7CParser_peek_event(PyObject *__pyx_v_self, PyObject *unused) {
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_SetupRefcountContext("peek_event");

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":667
 * 
 *     def peek_event(self):
 *         if self.current_event is None:             # <<<<<<<<<<<<<<
 *             self.current_event = self._parse()
 *         return self.current_event
 */
  __pyx_t_1 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event == Py_None);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":668
 *     def peek_event(self):
 *         if self.current_event is None:
 *             self.current_event = self._parse()             # <<<<<<<<<<<<<<
 *         return self.current_event
 * 
 */
    __pyx_t_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 (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event);
    __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event);
    ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L5;
  }
  __pyx_L5:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":669
 *         if self.current_event is None:
 *             self.current_event = self._parse()
 *         return self.current_event             # <<<<<<<<<<<<<<
 * 
 *     def check_event(self, *choices):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event);
  __pyx_r = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("_yaml.CParser.peek_event");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":671
 *         return self.current_event
 * 
 *     def check_event(self, *choices):             # <<<<<<<<<<<<<<
 *         if self.current_event is None:
 *             self.current_event = self._parse()
 */

static PyObject *__pyx_pf_5_yaml_7CParser_check_event(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pf_5_yaml_7CParser_check_event(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_choices = 0;
  PyObject *__pyx_v_event_class;
  PyObject *__pyx_v_choice;
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_SetupRefcountContext("check_event");
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "check_event", 0))) return NULL;
  __Pyx_INCREF(__pyx_args);
  __pyx_v_choices = __pyx_args;
  __pyx_v_event_class = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_choice = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":672
 * 
 *     def check_event(self, *choices):
 *         if self.current_event is None:             # <<<<<<<<<<<<<<
 *             self.current_event = self._parse()
 *         if self.current_event is None:
 */
  __pyx_t_1 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event == Py_None);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":673
 *     def check_event(self, *choices):
 *         if self.current_event is None:
 *             self.current_event = self._parse()             # <<<<<<<<<<<<<<
 *         if self.current_event is None:
 *             return False
 */
    __pyx_t_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 (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 673; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event);
    __Pyx_DECREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event);
    ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L5;
  }
  __pyx_L5:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":674
 *         if self.current_event is None:
 *             self.current_event = self._parse()
 *         if self.current_event is None:             # <<<<<<<<<<<<<<
 *             return False
 *         if not choices:
 */
  __pyx_t_1 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event == Py_None);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":675
 *             self.current_event = self._parse()
 *         if self.current_event is None:
 *             return False             # <<<<<<<<<<<<<<
 *         if not choices:
 *             return True
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
    goto __pyx_L6;
  }
  __pyx_L6:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":676
 *         if self.current_event is None:
 *             return False
 *         if not choices:             # <<<<<<<<<<<<<<
 *             return True
 *         event_class = self.current_event.__class__
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_choices); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_3 = (!__pyx_t_1);
  if (__pyx_t_3) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":677
 *             return False
 *         if not choices:
 *             return True             # <<<<<<<<<<<<<<
 *         event_class = self.current_event.__class__
 *         for choice in choices:
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_r = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L0;
    goto __pyx_L7;
  }
  __pyx_L7:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":678
 *         if not choices:
 *             return True
 *         event_class = self.current_event.__class__             # <<<<<<<<<<<<<<
 *         for choice in choices:
 *             if event_class is choice:
 */
  __pyx_t_2 = PyObject_GetAttr(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->current_event, __pyx_kp___class__); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_v_event_class);
  __pyx_v_event_class = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":679
 *             return True
 *         event_class = self.current_event.__class__
 *         for choice in choices:             # <<<<<<<<<<<<<<
 *             if event_class is choice:
 *                 return True
 */
  if (PyList_CheckExact(__pyx_v_choices) || PyTuple_CheckExact(__pyx_v_choices)) {
    __pyx_t_4 = 0; __pyx_t_2 = __pyx_v_choices; __Pyx_INCREF(__pyx_t_2);
  } else {
    __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_choices); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
  }
  for (;;) {
    if (likely(PyList_CheckExact(__pyx_t_2))) {
      if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break;
      __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_5); __pyx_t_4++;
    } else if (likely(PyTuple_CheckExact(__pyx_t_2))) {
      if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
      __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_5); __pyx_t_4++;
    } else {
      __pyx_t_5 = PyIter_Next(__pyx_t_2);
      if (!__pyx_t_5) {
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        break;
      }
      __Pyx_GOTREF(__pyx_t_5);
    }
    __Pyx_DECREF(__pyx_v_choice);
    __pyx_v_choice = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":680
 *         event_class = self.current_event.__class__
 *         for choice in choices:
 *             if event_class is choice:             # <<<<<<<<<<<<<<
 *                 return True
 *         return False
 */
    __pyx_t_3 = (__pyx_v_event_class == __pyx_v_choice);
    if (__pyx_t_3) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":681
 *         for choice in choices:
 *             if event_class is choice:
 *                 return True             # <<<<<<<<<<<<<<
 *         return False
 * 
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_5 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 681; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_r = __pyx_t_5;
      __pyx_t_5 = 0;
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L0;
      goto __pyx_L10;
    }
    __pyx_L10:;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":682
 *             if event_class is choice:
 *                 return True
 *         return False             # <<<<<<<<<<<<<<
 * 
 *     def check_node(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("_yaml.CParser.check_event");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_choices);
  __Pyx_DECREF(__pyx_v_event_class);
  __Pyx_DECREF(__pyx_v_choice);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":684
 *         return False
 * 
 *     def check_node(self):             # <<<<<<<<<<<<<<
 *         self._parse_next_event()
 *         if self.parsed_event.type == YAML_STREAM_START_EVENT:
 */

static PyObject *__pyx_pf_5_yaml_7CParser_check_node(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_7CParser_check_node(PyObject *__pyx_v_self, PyObject *unused) {
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_SetupRefcountContext("check_node");

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":685
 * 
 *     def check_node(self):
 *         self._parse_next_event()             # <<<<<<<<<<<<<<
 *         if self.parsed_event.type == YAML_STREAM_START_EVENT:
 *             yaml_event_delete(&self.parsed_event)
 */
  __pyx_t_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 (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":686
 *     def check_node(self):
 *         self._parse_next_event()
 *         if self.parsed_event.type == YAML_STREAM_START_EVENT:             # <<<<<<<<<<<<<<
 *             yaml_event_delete(&self.parsed_event)
 *             self._parse_next_event()
 */
  __pyx_t_2 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event.type == YAML_STREAM_START_EVENT);
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":687
 *         self._parse_next_event()
 *         if self.parsed_event.type == YAML_STREAM_START_EVENT:
 *             yaml_event_delete(&self.parsed_event)             # <<<<<<<<<<<<<<
 *             self._parse_next_event()
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 */
    yaml_event_delete((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event));

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":688
 *         if self.parsed_event.type == YAML_STREAM_START_EVENT:
 *             yaml_event_delete(&self.parsed_event)
 *             self._parse_next_event()             # <<<<<<<<<<<<<<
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 *             return True
 */
    __pyx_t_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 (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L5;
  }
  __pyx_L5:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":689
 *             yaml_event_delete(&self.parsed_event)
 *             self._parse_next_event()
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:             # <<<<<<<<<<<<<<
 *             return True
 *         return False
 */
  __pyx_t_2 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event.type != YAML_STREAM_END_EVENT);
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":690
 *             self._parse_next_event()
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 *             return True             # <<<<<<<<<<<<<<
 *         return False
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
    goto __pyx_L6;
  }
  __pyx_L6:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":691
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 *             return True
 *         return False             # <<<<<<<<<<<<<<
 * 
 *     def get_node(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CParser.check_node");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":693
 *         return False
 * 
 *     def get_node(self):             # <<<<<<<<<<<<<<
 *         self._parse_next_event()
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 */

static PyObject *__pyx_pf_5_yaml_7CParser_get_node(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_7CParser_get_node(PyObject *__pyx_v_self, PyObject *unused) {
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_SetupRefcountContext("get_node");

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":694
 * 
 *     def get_node(self):
 *         self._parse_next_event()             # <<<<<<<<<<<<<<
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 *             return self._compose_document()
 */
  __pyx_t_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 (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":695
 *     def get_node(self):
 *         self._parse_next_event()
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:             # <<<<<<<<<<<<<<
 *             return self._compose_document()
 * 
 */
  __pyx_t_2 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event.type != YAML_STREAM_END_EVENT);
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":696
 *         self._parse_next_event()
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 *             return self._compose_document()             # <<<<<<<<<<<<<<
 * 
 *     def get_single_node(self):
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = ((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 (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 696; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
    goto __pyx_L5;
  }
  __pyx_L5:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CParser.get_node");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":698
 *             return self._compose_document()
 * 
 *     def get_single_node(self):             # <<<<<<<<<<<<<<
 *         self._parse_next_event()
 *         yaml_event_delete(&self.parsed_event)
 */

static PyObject *__pyx_pf_5_yaml_7CParser_get_single_node(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_7CParser_get_single_node(PyObject *__pyx_v_self, PyObject *unused) {
  PyObject *__pyx_v_document;
  PyObject *__pyx_v_mark;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_1 = 0;
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_SetupRefcountContext("get_single_node");
  __pyx_v_document = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_mark = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":699
 * 
 *     def get_single_node(self):
 *         self._parse_next_event()             # <<<<<<<<<<<<<<
 *         yaml_event_delete(&self.parsed_event)
 *         self._parse_next_event()
 */
  __pyx_t_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 (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":700
 *     def get_single_node(self):
 *         self._parse_next_event()
 *         yaml_event_delete(&self.parsed_event)             # <<<<<<<<<<<<<<
 *         self._parse_next_event()
 *         document = None
 */
  yaml_event_delete((&((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event));

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":701
 *         self._parse_next_event()
 *         yaml_event_delete(&self.parsed_event)
 *         self._parse_next_event()             # <<<<<<<<<<<<<<
 *         document = None
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 */
  __pyx_t_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 (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 701; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":702
 *         yaml_event_delete(&self.parsed_event)
 *         self._parse_next_event()
 *         document = None             # <<<<<<<<<<<<<<
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 *             document = self._compose_document()
 */
  __Pyx_INCREF(Py_None);
  __Pyx_DECREF(__pyx_v_document);
  __pyx_v_document = Py_None;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":703
 *         self._parse_next_event()
 *         document = None
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:             # <<<<<<<<<<<<<<
 *             document = self._compose_document()
 *         self._parse_next_event()
 */
  __pyx_t_2 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event.type != YAML_STREAM_END_EVENT);
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":704
 *         document = None
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 *             document = self._compose_document()             # <<<<<<<<<<<<<<
 *         self._parse_next_event()
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 */
    __pyx_t_3 = ((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 (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 704; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_document);
    __pyx_v_document = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L5;
  }
  __pyx_L5:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":705
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 *             document = self._compose_document()
 *         self._parse_next_event()             # <<<<<<<<<<<<<<
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 *             mark = Mark(self.stream_name,
 */
  __pyx_t_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 (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 705; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":706
 *             document = self._compose_document()
 *         self._parse_next_event()
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:             # <<<<<<<<<<<<<<
 *             mark = Mark(self.stream_name,
 *                     self.parsed_event.start_mark.index,
 */
  __pyx_t_2 = (((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event.type != YAML_STREAM_END_EVENT);
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":708
 *         if self.parsed_event.type != YAML_STREAM_END_EVENT:
 *             mark = Mark(self.stream_name,
 *                     self.parsed_event.start_mark.index,             # <<<<<<<<<<<<<<
 *                     self.parsed_event.start_mark.line,
 *                     self.parsed_event.start_mark.column,
 */
    __pyx_t_3 = PyInt_FromLong(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event.start_mark.index); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":709
 *             mark = Mark(self.stream_name,
 *                     self.parsed_event.start_mark.index,
 *                     self.parsed_event.start_mark.line,             # <<<<<<<<<<<<<<
 *                     self.parsed_event.start_mark.column,
 *                     None, None)
 */
    __pyx_t_4 = PyInt_FromLong(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event.start_mark.line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":710
 *                     self.parsed_event.start_mark.index,
 *                     self.parsed_event.start_mark.line,
 *                     self.parsed_event.start_mark.column,             # <<<<<<<<<<<<<<
 *                     None, None)
 *             if PY_MAJOR_VERSION < 3:
 */
    __pyx_t_5 = PyInt_FromLong(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->parsed_event.start_mark.column); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":711
 *                     self.parsed_event.start_mark.line,
 *                     self.parsed_event.start_mark.column,
 *                     None, None)             # <<<<<<<<<<<<<<
 *             if PY_MAJOR_VERSION < 3:
 *                 raise ComposerError("expected a single document in the stream",
 */
    __pyx_t_6 = PyTuple_New(6); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 707; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_6));
    __Pyx_INCREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
    PyTuple_SET_ITEM(__pyx_t_6, 0, ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
    __Pyx_GIVEREF(((struct __pyx_obj_5_yaml_CParser *)__pyx_v_self)->stream_name);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __Pyx_INCREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 4, Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_INCREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_6, 5, Py_None);
    __Pyx_GIVEREF(Py_None);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 707; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_v_mark);
    __pyx_v_mark = __pyx_t_5;
    __pyx_t_5 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":712
 *                     self.parsed_event.start_mark.column,
 *                     None, None)
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 raise ComposerError("expected a single document in the stream",
 *                         document.start_mark, "but found another document", mark)
 */
    __pyx_t_2 = (PY_MAJOR_VERSION < 3);
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":713
 *                     None, None)
 *             if PY_MAJOR_VERSION < 3:
 *                 raise ComposerError("expected a single document in the stream",             # <<<<<<<<<<<<<<
 *                         document.start_mark, "but found another document", mark)
 *             else:
 */
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ComposerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 713; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":714
 *             if PY_MAJOR_VERSION < 3:
 *                 raise ComposerError("expected a single document in the stream",
 *                         document.start_mark, "but found another document", mark)             # <<<<<<<<<<<<<<
 *             else:
 *                 raise ComposerError(u"expected a single document in the stream",
 */
      __pyx_t_5 = PyObject_GetAttr(__pyx_v_document, __pyx_kp_start_mark); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 714; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 713; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_6));
      __Pyx_INCREF(__pyx_kp_43);
      PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_43);
      __Pyx_GIVEREF(__pyx_kp_43);
      PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_kp_44);
      PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_kp_44);
      __Pyx_GIVEREF(__pyx_kp_44);
      __Pyx_INCREF(__pyx_v_mark);
      PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_v_mark);
      __Pyx_GIVEREF(__pyx_v_mark);
      __pyx_t_5 = 0;
      __pyx_t_5 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 713; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
      __Pyx_Raise(__pyx_t_5, 0, 0);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 713; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L7;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":716
 *                         document.start_mark, "but found another document", mark)
 *             else:
 *                 raise ComposerError(u"expected a single document in the stream",             # <<<<<<<<<<<<<<
 *                         document.start_mark, u"but found another document", mark)
 *         return document
 */
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ComposerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":717
 *             else:
 *                 raise ComposerError(u"expected a single document in the stream",
 *                         document.start_mark, u"but found another document", mark)             # <<<<<<<<<<<<<<
 *         return document
 * 
 */
      __pyx_t_5 = PyObject_GetAttr(__pyx_v_document, __pyx_kp_start_mark); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_6));
      __Pyx_INCREF(((PyObject *)__pyx_kp_45));
      PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_kp_45));
      __Pyx_GIVEREF(((PyObject *)__pyx_kp_45));
      PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_5);
      __Pyx_INCREF(((PyObject *)__pyx_kp_46));
      PyTuple_SET_ITEM(__pyx_t_6, 2, ((PyObject *)__pyx_kp_46));
      __Pyx_GIVEREF(((PyObject *)__pyx_kp_46));
      __Pyx_INCREF(__pyx_v_mark);
      PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_v_mark);
      __Pyx_GIVEREF(__pyx_v_mark);
      __pyx_t_5 = 0;
      __pyx_t_5 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
      __Pyx_Raise(__pyx_t_5, 0, 0);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __pyx_L7:;
    goto __pyx_L6;
  }
  __pyx_L6:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":718
 *                 raise ComposerError(u"expected a single document in the stream",
 *                         document.start_mark, u"but found another document", mark)
 *         return document             # <<<<<<<<<<<<<<
 * 
 *     cdef object _compose_document(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_document);
  __pyx_r = __pyx_v_document;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_yaml.CParser.get_single_node");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_document);
  __Pyx_DECREF(__pyx_v_mark);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":720
 *         return document
 * 
 *     cdef object _compose_document(self):             # <<<<<<<<<<<<<<
 *         yaml_event_delete(&self.parsed_event)
 *         node = self._compose_node(None, None)
 */

static  PyObject *__pyx_f_5_yaml_7CParser__compose_document(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) {
  PyObject *__pyx_v_node;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_1 = 0;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  __Pyx_SetupRefcountContext("_compose_document");
  __pyx_v_node = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":721
 * 
 *     cdef object _compose_document(self):
 *         yaml_event_delete(&self.parsed_event)             # <<<<<<<<<<<<<<
 *         node = self._compose_node(None, None)
 *         self._parse_next_event()
 */
  yaml_event_delete((&__pyx_v_self->parsed_event));

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":722
 *     cdef object _compose_document(self):
 *         yaml_event_delete(&self.parsed_event)
 *         node = self._compose_node(None, None)             # <<<<<<<<<<<<<<
 *         self._parse_next_event()
 *         yaml_event_delete(&self.parsed_event)
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_node(__pyx_v_self, Py_None, Py_None); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 722; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_v_node);
  __pyx_v_node = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":723
 *         yaml_event_delete(&self.parsed_event)
 *         node = self._compose_node(None, None)
 *         self._parse_next_event()             # <<<<<<<<<<<<<<
 *         yaml_event_delete(&self.parsed_event)
 *         self.anchors = {}
 */
  __pyx_t_2 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parse_next_event(__pyx_v_self); if (unlikely(__pyx_t_2 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":724
 *         node = self._compose_node(None, None)
 *         self._parse_next_event()
 *         yaml_event_delete(&self.parsed_event)             # <<<<<<<<<<<<<<
 *         self.anchors = {}
 *         return node
 */
  yaml_event_delete((&__pyx_v_self->parsed_event));

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":725
 *         self._parse_next_event()
 *         yaml_event_delete(&self.parsed_event)
 *         self.anchors = {}             # <<<<<<<<<<<<<<
 *         return node
 * 
 */
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 725; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_1));
  __Pyx_GIVEREF(((PyObject *)__pyx_1));
  __Pyx_GOTREF(__pyx_v_self->anchors);
  __Pyx_DECREF(__pyx_v_self->anchors);
  __pyx_v_self->anchors = ((PyObject *)__pyx_1);
  __pyx_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":726
 *         yaml_event_delete(&self.parsed_event)
 *         self.anchors = {}
 *         return node             # <<<<<<<<<<<<<<
 * 
 *     cdef object _compose_node(self, object parent, object index):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_node);
  __pyx_r = __pyx_v_node;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("_yaml.CParser._compose_document");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_node);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":728
 *         return node
 * 
 *     cdef object _compose_node(self, object parent, object index):             # <<<<<<<<<<<<<<
 *         self._parse_next_event()
 *         if self.parsed_event.type == YAML_ALIAS_EVENT:
 */

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) {
  PyObject *__pyx_v_anchor;
  PyObject *__pyx_v_mark;
  PyObject *__pyx_v_node;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_1 = 0;
  PyObject *__pyx_2 = 0;
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_SetupRefcountContext("_compose_node");
  __pyx_v_anchor = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_mark = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_node = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":729
 * 
 *     cdef object _compose_node(self, object parent, object index):
 *         self._parse_next_event()             # <<<<<<<<<<<<<<
 *         if self.parsed_event.type == YAML_ALIAS_EVENT:
 *             anchor = PyUnicode_FromString(self.parsed_event.data.alias.anchor)
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parse_next_event(__pyx_v_self); if (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":730
 *     cdef object _compose_node(self, object parent, object index):
 *         self._parse_next_event()
 *         if self.parsed_event.type == YAML_ALIAS_EVENT:             # <<<<<<<<<<<<<<
 *             anchor = PyUnicode_FromString(self.parsed_event.data.alias.anchor)
 *             if anchor not in self.anchors:
 */
  __pyx_t_2 = (__pyx_v_self->parsed_event.type == YAML_ALIAS_EVENT);
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":731
 *         self._parse_next_event()
 *         if self.parsed_event.type == YAML_ALIAS_EVENT:
 *             anchor = PyUnicode_FromString(self.parsed_event.data.alias.anchor)             # <<<<<<<<<<<<<<
 *             if anchor not in self.anchors:
 *                 mark = Mark(self.stream_name,
 */
    __pyx_t_3 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.alias.anchor); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 731; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_anchor);
    __pyx_v_anchor = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":732
 *         if self.parsed_event.type == YAML_ALIAS_EVENT:
 *             anchor = PyUnicode_FromString(self.parsed_event.data.alias.anchor)
 *             if anchor not in self.anchors:             # <<<<<<<<<<<<<<
 *                 mark = Mark(self.stream_name,
 *                         self.parsed_event.start_mark.index,
 */
    __pyx_t_2 = (!PySequence_Contains(__pyx_v_self->anchors, __pyx_v_anchor)); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 732; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":734
 *             if anchor not in self.anchors:
 *                 mark = Mark(self.stream_name,
 *                         self.parsed_event.start_mark.index,             # <<<<<<<<<<<<<<
 *                         self.parsed_event.start_mark.line,
 *                         self.parsed_event.start_mark.column,
 */
      __pyx_t_3 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.index); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 734; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":735
 *                 mark = Mark(self.stream_name,
 *                         self.parsed_event.start_mark.index,
 *                         self.parsed_event.start_mark.line,             # <<<<<<<<<<<<<<
 *                         self.parsed_event.start_mark.column,
 *                         None, None)
 */
      __pyx_t_4 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 735; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":736
 *                         self.parsed_event.start_mark.index,
 *                         self.parsed_event.start_mark.line,
 *                         self.parsed_event.start_mark.column,             # <<<<<<<<<<<<<<
 *                         None, None)
 *                 if PY_MAJOR_VERSION < 3:
 */
      __pyx_t_5 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.column); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 736; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":737
 *                         self.parsed_event.start_mark.line,
 *                         self.parsed_event.start_mark.column,
 *                         None, None)             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise ComposerError(None, None, "found undefined alias", mark)
 */
      __pyx_t_6 = PyTuple_New(6); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_6));
      __Pyx_INCREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_self->stream_name);
      __Pyx_GIVEREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_4);
      PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_5);
      __Pyx_INCREF(Py_None);
      PyTuple_SET_ITEM(__pyx_t_6, 4, Py_None);
      __Pyx_GIVEREF(Py_None);
      __Pyx_INCREF(Py_None);
      PyTuple_SET_ITEM(__pyx_t_6, 5, Py_None);
      __Pyx_GIVEREF(Py_None);
      __pyx_t_3 = 0;
      __pyx_t_4 = 0;
      __pyx_t_5 = 0;
      __pyx_t_5 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
      __Pyx_DECREF(__pyx_v_mark);
      __pyx_v_mark = __pyx_t_5;
      __pyx_t_5 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":738
 *                         self.parsed_event.start_mark.column,
 *                         None, None)
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     raise ComposerError(None, None, "found undefined alias", mark)
 *                 else:
 */
      __pyx_t_2 = (PY_MAJOR_VERSION < 3);
      if (__pyx_t_2) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":739
 *                         None, None)
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise ComposerError(None, None, "found undefined alias", mark)             # <<<<<<<<<<<<<<
 *                 else:
 *                     raise ComposerError(None, None, u"found undefined alias", mark)
 */
        __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ComposerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_1);
        __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_5));
        __Pyx_INCREF(Py_None);
        PyTuple_SET_ITEM(__pyx_t_5, 0, Py_None);
        __Pyx_GIVEREF(Py_None);
        __Pyx_INCREF(Py_None);
        PyTuple_SET_ITEM(__pyx_t_5, 1, Py_None);
        __Pyx_GIVEREF(Py_None);
        __Pyx_INCREF(__pyx_kp_47);
        PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_47);
        __Pyx_GIVEREF(__pyx_kp_47);
        __Pyx_INCREF(__pyx_v_mark);
        PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_v_mark);
        __Pyx_GIVEREF(__pyx_v_mark);
        __pyx_t_6 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
        __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
        __Pyx_Raise(__pyx_t_6, 0, 0);
        __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L5;
      }
      /*else*/ {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":741
 *                     raise ComposerError(None, None, "found undefined alias", mark)
 *                 else:
 *                     raise ComposerError(None, None, u"found undefined alias", mark)             # <<<<<<<<<<<<<<
 *             yaml_event_delete(&self.parsed_event)
 *             return self.anchors[anchor]
 */
        __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ComposerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_1);
        __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_6));
        __Pyx_INCREF(Py_None);
        PyTuple_SET_ITEM(__pyx_t_6, 0, Py_None);
        __Pyx_GIVEREF(Py_None);
        __Pyx_INCREF(Py_None);
        PyTuple_SET_ITEM(__pyx_t_6, 1, Py_None);
        __Pyx_GIVEREF(Py_None);
        __Pyx_INCREF(((PyObject *)__pyx_kp_48));
        PyTuple_SET_ITEM(__pyx_t_6, 2, ((PyObject *)__pyx_kp_48));
        __Pyx_GIVEREF(((PyObject *)__pyx_kp_48));
        __Pyx_INCREF(__pyx_v_mark);
        PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_v_mark);
        __Pyx_GIVEREF(__pyx_v_mark);
        __pyx_t_5 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_5);
        __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
        __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
        __Pyx_Raise(__pyx_t_5, 0, 0);
        __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      }
      __pyx_L5:;
      goto __pyx_L4;
    }
    __pyx_L4:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":742
 *                 else:
 *                     raise ComposerError(None, None, u"found undefined alias", mark)
 *             yaml_event_delete(&self.parsed_event)             # <<<<<<<<<<<<<<
 *             return self.anchors[anchor]
 *         anchor = None
 */
    yaml_event_delete((&__pyx_v_self->parsed_event));

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":743
 *                     raise ComposerError(None, None, u"found undefined alias", mark)
 *             yaml_event_delete(&self.parsed_event)
 *             return self.anchors[anchor]             # <<<<<<<<<<<<<<
 *         anchor = None
 *         if self.parsed_event.type == YAML_SCALAR_EVENT  \
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = PyObject_GetItem(__pyx_v_self->anchors, __pyx_v_anchor); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 743; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_r = __pyx_1;
    __pyx_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":744
 *             yaml_event_delete(&self.parsed_event)
 *             return self.anchors[anchor]
 *         anchor = None             # <<<<<<<<<<<<<<
 *         if self.parsed_event.type == YAML_SCALAR_EVENT  \
 *                 and self.parsed_event.data.scalar.anchor != NULL:
 */
  __Pyx_INCREF(Py_None);
  __Pyx_DECREF(__pyx_v_anchor);
  __pyx_v_anchor = Py_None;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":746
 *         anchor = None
 *         if self.parsed_event.type == YAML_SCALAR_EVENT  \
 *                 and self.parsed_event.data.scalar.anchor != NULL:             # <<<<<<<<<<<<<<
 *             anchor = PyUnicode_FromString(self.parsed_event.data.scalar.anchor)
 *         elif self.parsed_event.type == YAML_SEQUENCE_START_EVENT    \
 */
  if ((__pyx_v_self->parsed_event.type == YAML_SCALAR_EVENT)) {
    __pyx_t_2 = (__pyx_v_self->parsed_event.data.scalar.anchor != NULL);
  } else {
    __pyx_t_2 = (__pyx_v_self->parsed_event.type == YAML_SCALAR_EVENT);
  }
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":747
 *         if self.parsed_event.type == YAML_SCALAR_EVENT  \
 *                 and self.parsed_event.data.scalar.anchor != NULL:
 *             anchor = PyUnicode_FromString(self.parsed_event.data.scalar.anchor)             # <<<<<<<<<<<<<<
 *         elif self.parsed_event.type == YAML_SEQUENCE_START_EVENT    \
 *                 and self.parsed_event.data.sequence_start.anchor != NULL:
 */
    __pyx_t_5 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.scalar.anchor); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 747; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_v_anchor);
    __pyx_v_anchor = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L6;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":749
 *             anchor = PyUnicode_FromString(self.parsed_event.data.scalar.anchor)
 *         elif self.parsed_event.type == YAML_SEQUENCE_START_EVENT    \
 *                 and self.parsed_event.data.sequence_start.anchor != NULL:             # <<<<<<<<<<<<<<
 *             anchor = PyUnicode_FromString(self.parsed_event.data.sequence_start.anchor)
 *         elif self.parsed_event.type == YAML_MAPPING_START_EVENT    \
 */
  if ((__pyx_v_self->parsed_event.type == YAML_SEQUENCE_START_EVENT)) {
    __pyx_t_2 = (__pyx_v_self->parsed_event.data.sequence_start.anchor != NULL);
  } else {
    __pyx_t_2 = (__pyx_v_self->parsed_event.type == YAML_SEQUENCE_START_EVENT);
  }
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":750
 *         elif self.parsed_event.type == YAML_SEQUENCE_START_EVENT    \
 *                 and self.parsed_event.data.sequence_start.anchor != NULL:
 *             anchor = PyUnicode_FromString(self.parsed_event.data.sequence_start.anchor)             # <<<<<<<<<<<<<<
 *         elif self.parsed_event.type == YAML_MAPPING_START_EVENT    \
 *                 and self.parsed_event.data.mapping_start.anchor != NULL:
 */
    __pyx_t_5 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.sequence_start.anchor); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_v_anchor);
    __pyx_v_anchor = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L6;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":752
 *             anchor = PyUnicode_FromString(self.parsed_event.data.sequence_start.anchor)
 *         elif self.parsed_event.type == YAML_MAPPING_START_EVENT    \
 *                 and self.parsed_event.data.mapping_start.anchor != NULL:             # <<<<<<<<<<<<<<
 *             anchor = PyUnicode_FromString(self.parsed_event.data.mapping_start.anchor)
 *         if anchor is not None:
 */
  if ((__pyx_v_self->parsed_event.type == YAML_MAPPING_START_EVENT)) {
    __pyx_t_2 = (__pyx_v_self->parsed_event.data.mapping_start.anchor != NULL);
  } else {
    __pyx_t_2 = (__pyx_v_self->parsed_event.type == YAML_MAPPING_START_EVENT);
  }
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":753
 *         elif self.parsed_event.type == YAML_MAPPING_START_EVENT    \
 *                 and self.parsed_event.data.mapping_start.anchor != NULL:
 *             anchor = PyUnicode_FromString(self.parsed_event.data.mapping_start.anchor)             # <<<<<<<<<<<<<<
 *         if anchor is not None:
 *             if anchor in self.anchors:
 */
    __pyx_t_5 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.mapping_start.anchor); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_v_anchor);
    __pyx_v_anchor = __pyx_t_5;
    __pyx_t_5 = 0;
    goto __pyx_L6;
  }
  __pyx_L6:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":754
 *                 and self.parsed_event.data.mapping_start.anchor != NULL:
 *             anchor = PyUnicode_FromString(self.parsed_event.data.mapping_start.anchor)
 *         if anchor is not None:             # <<<<<<<<<<<<<<
 *             if anchor in self.anchors:
 *                 mark = Mark(self.stream_name,
 */
  __pyx_t_2 = (__pyx_v_anchor != Py_None);
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":755
 *             anchor = PyUnicode_FromString(self.parsed_event.data.mapping_start.anchor)
 *         if anchor is not None:
 *             if anchor in self.anchors:             # <<<<<<<<<<<<<<
 *                 mark = Mark(self.stream_name,
 *                         self.parsed_event.start_mark.index,
 */
    __pyx_t_2 = (PySequence_Contains(__pyx_v_self->anchors, __pyx_v_anchor)); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 755; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":757
 *             if anchor in self.anchors:
 *                 mark = Mark(self.stream_name,
 *                         self.parsed_event.start_mark.index,             # <<<<<<<<<<<<<<
 *                         self.parsed_event.start_mark.line,
 *                         self.parsed_event.start_mark.column,
 */
      __pyx_t_5 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.index); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 757; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":758
 *                 mark = Mark(self.stream_name,
 *                         self.parsed_event.start_mark.index,
 *                         self.parsed_event.start_mark.line,             # <<<<<<<<<<<<<<
 *                         self.parsed_event.start_mark.column,
 *                         None, None)
 */
      __pyx_t_6 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.line); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 758; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_6);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":759
 *                         self.parsed_event.start_mark.index,
 *                         self.parsed_event.start_mark.line,
 *                         self.parsed_event.start_mark.column,             # <<<<<<<<<<<<<<
 *                         None, None)
 *                 if PY_MAJOR_VERSION < 3:
 */
      __pyx_t_4 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.column); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":760
 *                         self.parsed_event.start_mark.line,
 *                         self.parsed_event.start_mark.column,
 *                         None, None)             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise ComposerError("found duplicate anchor; first occurence",
 */
      __pyx_t_3 = PyTuple_New(6); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_3));
      __Pyx_INCREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self->stream_name);
      __Pyx_GIVEREF(__pyx_v_self->stream_name);
      PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_5);
      PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_6);
      __Pyx_GIVEREF(__pyx_t_6);
      PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_4);
      __Pyx_INCREF(Py_None);
      PyTuple_SET_ITEM(__pyx_t_3, 4, Py_None);
      __Pyx_GIVEREF(Py_None);
      __Pyx_INCREF(Py_None);
      PyTuple_SET_ITEM(__pyx_t_3, 5, Py_None);
      __Pyx_GIVEREF(Py_None);
      __pyx_t_5 = 0;
      __pyx_t_6 = 0;
      __pyx_t_4 = 0;
      __pyx_t_4 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 756; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_v_mark);
      __pyx_v_mark = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":761
 *                         self.parsed_event.start_mark.column,
 *                         None, None)
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     raise ComposerError("found duplicate anchor; first occurence",
 *                             self.anchors[anchor].start_mark, "second occurence", mark)
 */
      __pyx_t_2 = (PY_MAJOR_VERSION < 3);
      if (__pyx_t_2) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":762
 *                         None, None)
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise ComposerError("found duplicate anchor; first occurence",             # <<<<<<<<<<<<<<
 *                             self.anchors[anchor].start_mark, "second occurence", mark)
 *                 else:
 */
        __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ComposerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_1);

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":763
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise ComposerError("found duplicate anchor; first occurence",
 *                             self.anchors[anchor].start_mark, "second occurence", mark)             # <<<<<<<<<<<<<<
 *                 else:
 *                     raise ComposerError(u"found duplicate anchor; first occurence",
 */
        __pyx_2 = PyObject_GetItem(__pyx_v_self->anchors, __pyx_v_anchor); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_2);
        __pyx_t_4 = PyObject_GetAttr(__pyx_2, __pyx_kp_start_mark); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 763; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_2); __pyx_2 = 0;
        __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_3));
        __Pyx_INCREF(__pyx_kp_49);
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_49);
        __Pyx_GIVEREF(__pyx_kp_49);
        PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
        __Pyx_GIVEREF(__pyx_t_4);
        __Pyx_INCREF(__pyx_kp_50);
        PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_50);
        __Pyx_GIVEREF(__pyx_kp_50);
        __Pyx_INCREF(__pyx_v_mark);
        PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_v_mark);
        __Pyx_GIVEREF(__pyx_v_mark);
        __pyx_t_4 = 0;
        __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
        __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
        __Pyx_Raise(__pyx_t_4, 0, 0);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 762; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L9;
      }
      /*else*/ {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":765
 *                             self.anchors[anchor].start_mark, "second occurence", mark)
 *                 else:
 *                     raise ComposerError(u"found duplicate anchor; first occurence",             # <<<<<<<<<<<<<<
 *                             self.anchors[anchor].start_mark, u"second occurence", mark)
 *         self.descend_resolver(parent, index)
 */
        __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_kp_ComposerError); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_2);

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":766
 *                 else:
 *                     raise ComposerError(u"found duplicate anchor; first occurence",
 *                             self.anchors[anchor].start_mark, u"second occurence", mark)             # <<<<<<<<<<<<<<
 *         self.descend_resolver(parent, index)
 *         if self.parsed_event.type == YAML_SCALAR_EVENT:
 */
        __pyx_1 = PyObject_GetItem(__pyx_v_self->anchors, __pyx_v_anchor); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_1);
        __pyx_t_4 = PyObject_GetAttr(__pyx_1, __pyx_kp_start_mark); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
        __pyx_t_3 = PyTuple_New(4); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_3));
        __Pyx_INCREF(((PyObject *)__pyx_kp_51));
        PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_51));
        __Pyx_GIVEREF(((PyObject *)__pyx_kp_51));
        PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
        __Pyx_GIVEREF(__pyx_t_4);
        __Pyx_INCREF(((PyObject *)__pyx_kp_52));
        PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_52));
        __Pyx_GIVEREF(((PyObject *)__pyx_kp_52));
        __Pyx_INCREF(__pyx_v_mark);
        PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_v_mark);
        __Pyx_GIVEREF(__pyx_v_mark);
        __pyx_t_4 = 0;
        __pyx_t_4 = PyObject_Call(__pyx_2, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_2); __pyx_2 = 0;
        __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
        __Pyx_Raise(__pyx_t_4, 0, 0);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      }
      __pyx_L9:;
      goto __pyx_L8;
    }
    __pyx_L8:;
    goto __pyx_L7;
  }
  __pyx_L7:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":767
 *                     raise ComposerError(u"found duplicate anchor; first occurence",
 *                             self.anchors[anchor].start_mark, u"second occurence", mark)
 *         self.descend_resolver(parent, index)             # <<<<<<<<<<<<<<
 *         if self.parsed_event.type == YAML_SCALAR_EVENT:
 *             node = self._compose_scalar_node(anchor)
 */
  __pyx_t_4 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_kp_descend_resolver); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __Pyx_INCREF(__pyx_v_parent);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_parent);
  __Pyx_GIVEREF(__pyx_v_parent);
  __Pyx_INCREF(__pyx_v_index);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_index);
  __Pyx_GIVEREF(__pyx_v_index);
  __pyx_t_6 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":768
 *                             self.anchors[anchor].start_mark, u"second occurence", mark)
 *         self.descend_resolver(parent, index)
 *         if self.parsed_event.type == YAML_SCALAR_EVENT:             # <<<<<<<<<<<<<<
 *             node = self._compose_scalar_node(anchor)
 *         elif self.parsed_event.type == YAML_SEQUENCE_START_EVENT:
 */
  __pyx_t_2 = (__pyx_v_self->parsed_event.type == YAML_SCALAR_EVENT);
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":769
 *         self.descend_resolver(parent, index)
 *         if self.parsed_event.type == YAML_SCALAR_EVENT:
 *             node = self._compose_scalar_node(anchor)             # <<<<<<<<<<<<<<
 *         elif self.parsed_event.type == YAML_SEQUENCE_START_EVENT:
 *             node = self._compose_sequence_node(anchor)
 */
    __pyx_t_6 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_scalar_node(__pyx_v_self, __pyx_v_anchor); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 769; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_v_node);
    __pyx_v_node = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L10;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":770
 *         if self.parsed_event.type == YAML_SCALAR_EVENT:
 *             node = self._compose_scalar_node(anchor)
 *         elif self.parsed_event.type == YAML_SEQUENCE_START_EVENT:             # <<<<<<<<<<<<<<
 *             node = self._compose_sequence_node(anchor)
 *         elif self.parsed_event.type == YAML_MAPPING_START_EVENT:
 */
  __pyx_t_2 = (__pyx_v_self->parsed_event.type == YAML_SEQUENCE_START_EVENT);
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":771
 *             node = self._compose_scalar_node(anchor)
 *         elif self.parsed_event.type == YAML_SEQUENCE_START_EVENT:
 *             node = self._compose_sequence_node(anchor)             # <<<<<<<<<<<<<<
 *         elif self.parsed_event.type == YAML_MAPPING_START_EVENT:
 *             node = self._compose_mapping_node(anchor)
 */
    __pyx_t_6 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_sequence_node(__pyx_v_self, __pyx_v_anchor); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_v_node);
    __pyx_v_node = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L10;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":772
 *         elif self.parsed_event.type == YAML_SEQUENCE_START_EVENT:
 *             node = self._compose_sequence_node(anchor)
 *         elif self.parsed_event.type == YAML_MAPPING_START_EVENT:             # <<<<<<<<<<<<<<
 *             node = self._compose_mapping_node(anchor)
 *         self.ascend_resolver()
 */
  __pyx_t_2 = (__pyx_v_self->parsed_event.type == YAML_MAPPING_START_EVENT);
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":773
 *             node = self._compose_sequence_node(anchor)
 *         elif self.parsed_event.type == YAML_MAPPING_START_EVENT:
 *             node = self._compose_mapping_node(anchor)             # <<<<<<<<<<<<<<
 *         self.ascend_resolver()
 *         return node
 */
    __pyx_t_6 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_mapping_node(__pyx_v_self, __pyx_v_anchor); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 773; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_6);
    __Pyx_DECREF(__pyx_v_node);
    __pyx_v_node = __pyx_t_6;
    __pyx_t_6 = 0;
    goto __pyx_L10;
  }
  __pyx_L10:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":774
 *         elif self.parsed_event.type == YAML_MAPPING_START_EVENT:
 *             node = self._compose_mapping_node(anchor)
 *         self.ascend_resolver()             # <<<<<<<<<<<<<<
 *         return node
 * 
 */
  __pyx_t_6 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_kp_ascend_resolver); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_3 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":775
 *             node = self._compose_mapping_node(anchor)
 *         self.ascend_resolver()
 *         return node             # <<<<<<<<<<<<<<
 * 
 *     cdef _compose_scalar_node(self, object anchor):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_node);
  __pyx_r = __pyx_v_node;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_yaml.CParser._compose_node");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_anchor);
  __Pyx_DECREF(__pyx_v_mark);
  __Pyx_DECREF(__pyx_v_node);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":777
 *         return node
 * 
 *     cdef _compose_scalar_node(self, object anchor):             # <<<<<<<<<<<<<<
 *         start_mark = Mark(self.stream_name,
 *                 self.parsed_event.start_mark.index,
 */

static  PyObject *__pyx_f_5_yaml_7CParser__compose_scalar_node(struct __pyx_obj_5_yaml_CParser *__pyx_v_self, PyObject *__pyx_v_anchor) {
  PyObject *__pyx_v_start_mark;
  PyObject *__pyx_v_end_mark;
  PyObject *__pyx_v_value;
  PyObject *__pyx_v_plain_implicit;
  PyObject *__pyx_v_quoted_implicit;
  PyObject *__pyx_v_tag;
  PyObject *__pyx_v_style;
  PyObject *__pyx_v_node;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_1 = 0;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  __Pyx_SetupRefcountContext("_compose_scalar_node");
  __pyx_v_start_mark = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_end_mark = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_plain_implicit = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_quoted_implicit = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_tag = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_style = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_node = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":779
 *     cdef _compose_scalar_node(self, object anchor):
 *         start_mark = Mark(self.stream_name,
 *                 self.parsed_event.start_mark.index,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.start_mark.line,
 *                 self.parsed_event.start_mark.column,
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 779; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":780
 *         start_mark = Mark(self.stream_name,
 *                 self.parsed_event.start_mark.index,
 *                 self.parsed_event.start_mark.line,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.start_mark.column,
 *                 None, None)
 */
  __pyx_t_2 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":781
 *                 self.parsed_event.start_mark.index,
 *                 self.parsed_event.start_mark.line,
 *                 self.parsed_event.start_mark.column,             # <<<<<<<<<<<<<<
 *                 None, None)
 *         end_mark = Mark(self.stream_name,
 */
  __pyx_t_3 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.column); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 781; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":782
 *                 self.parsed_event.start_mark.line,
 *                 self.parsed_event.start_mark.column,
 *                 None, None)             # <<<<<<<<<<<<<<
 *         end_mark = Mark(self.stream_name,
 *                 self.parsed_event.end_mark.index,
 */
  __pyx_t_4 = PyTuple_New(6); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __Pyx_INCREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_self->stream_name);
  __Pyx_GIVEREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_4, 4, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_4, 5, Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_v_start_mark);
  __pyx_v_start_mark = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":784
 *                 None, None)
 *         end_mark = Mark(self.stream_name,
 *                 self.parsed_event.end_mark.index,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.end_mark.line,
 *                 self.parsed_event.end_mark.column,
 */
  __pyx_t_3 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.index); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":785
 *         end_mark = Mark(self.stream_name,
 *                 self.parsed_event.end_mark.index,
 *                 self.parsed_event.end_mark.line,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.end_mark.column,
 *                 None, None)
 */
  __pyx_t_4 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":786
 *                 self.parsed_event.end_mark.index,
 *                 self.parsed_event.end_mark.line,
 *                 self.parsed_event.end_mark.column,             # <<<<<<<<<<<<<<
 *                 None, None)
 *         value = PyUnicode_DecodeUTF8(self.parsed_event.data.scalar.value,
 */
  __pyx_t_2 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.column); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":787
 *                 self.parsed_event.end_mark.line,
 *                 self.parsed_event.end_mark.column,
 *                 None, None)             # <<<<<<<<<<<<<<
 *         value = PyUnicode_DecodeUTF8(self.parsed_event.data.scalar.value,
 *                 self.parsed_event.data.scalar.length, 'strict')
 */
  __pyx_t_1 = PyTuple_New(6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __Pyx_INCREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->stream_name);
  __Pyx_GIVEREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_1, 4, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_1, 5, Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_v_end_mark);
  __pyx_v_end_mark = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":789
 *                 None, None)
 *         value = PyUnicode_DecodeUTF8(self.parsed_event.data.scalar.value,
 *                 self.parsed_event.data.scalar.length, 'strict')             # <<<<<<<<<<<<<<
 *         plain_implicit = False
 *         if self.parsed_event.data.scalar.plain_implicit == 1:
 */
  __pyx_t_2 = PyUnicode_DecodeUTF8(__pyx_v_self->parsed_event.data.scalar.value, __pyx_v_self->parsed_event.data.scalar.length, __pyx_k_53); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 788; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_v_value);
  __pyx_v_value = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":790
 *         value = PyUnicode_DecodeUTF8(self.parsed_event.data.scalar.value,
 *                 self.parsed_event.data.scalar.length, 'strict')
 *         plain_implicit = False             # <<<<<<<<<<<<<<
 *         if self.parsed_event.data.scalar.plain_implicit == 1:
 *             plain_implicit = True
 */
  __pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 790; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_v_plain_implicit);
  __pyx_v_plain_implicit = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":791
 *                 self.parsed_event.data.scalar.length, 'strict')
 *         plain_implicit = False
 *         if self.parsed_event.data.scalar.plain_implicit == 1:             # <<<<<<<<<<<<<<
 *             plain_implicit = True
 *         quoted_implicit = False
 */
  __pyx_t_5 = (__pyx_v_self->parsed_event.data.scalar.plain_implicit == 1);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":792
 *         plain_implicit = False
 *         if self.parsed_event.data.scalar.plain_implicit == 1:
 *             plain_implicit = True             # <<<<<<<<<<<<<<
 *         quoted_implicit = False
 *         if self.parsed_event.data.scalar.quoted_implicit == 1:
 */
    __pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_plain_implicit);
    __pyx_v_plain_implicit = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":793
 *         if self.parsed_event.data.scalar.plain_implicit == 1:
 *             plain_implicit = True
 *         quoted_implicit = False             # <<<<<<<<<<<<<<
 *         if self.parsed_event.data.scalar.quoted_implicit == 1:
 *             quoted_implicit = True
 */
  __pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_v_quoted_implicit);
  __pyx_v_quoted_implicit = __pyx_t_2;
  __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":794
 *             plain_implicit = True
 *         quoted_implicit = False
 *         if self.parsed_event.data.scalar.quoted_implicit == 1:             # <<<<<<<<<<<<<<
 *             quoted_implicit = True
 *         if self.parsed_event.data.scalar.tag == NULL    \
 */
  __pyx_t_5 = (__pyx_v_self->parsed_event.data.scalar.quoted_implicit == 1);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":795
 *         quoted_implicit = False
 *         if self.parsed_event.data.scalar.quoted_implicit == 1:
 *             quoted_implicit = True             # <<<<<<<<<<<<<<
 *         if self.parsed_event.data.scalar.tag == NULL    \
 *                 or (self.parsed_event.data.scalar.tag[0] == c'!'
 */
    __pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_quoted_implicit);
    __pyx_v_quoted_implicit = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L4;
  }
  __pyx_L4:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":796
 *         if self.parsed_event.data.scalar.quoted_implicit == 1:
 *             quoted_implicit = True
 *         if self.parsed_event.data.scalar.tag == NULL    \             # <<<<<<<<<<<<<<
 *                 or (self.parsed_event.data.scalar.tag[0] == c'!'
 *                         and self.parsed_event.data.scalar.tag[1] == c'\0'):
 */
  if (!(__pyx_v_self->parsed_event.data.scalar.tag == NULL)) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":797
 *             quoted_implicit = True
 *         if self.parsed_event.data.scalar.tag == NULL    \
 *                 or (self.parsed_event.data.scalar.tag[0] == c'!'             # <<<<<<<<<<<<<<
 *                         and self.parsed_event.data.scalar.tag[1] == c'\0'):
 *             tag = self.resolve(ScalarNode, value, (plain_implicit, quoted_implicit))
 */
    if (((__pyx_v_self->parsed_event.data.scalar.tag[0]) == '!')) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":798
 *         if self.parsed_event.data.scalar.tag == NULL    \
 *                 or (self.parsed_event.data.scalar.tag[0] == c'!'
 *                         and self.parsed_event.data.scalar.tag[1] == c'\0'):             # <<<<<<<<<<<<<<
 *             tag = self.resolve(ScalarNode, value, (plain_implicit, quoted_implicit))
 *         else:
 */
      __pyx_t_5 = ((__pyx_v_self->parsed_event.data.scalar.tag[1]) == '\x00');
    } else {
      __pyx_t_5 = ((__pyx_v_self->parsed_event.data.scalar.tag[0]) == '!');
    }
    __pyx_t_6 = __pyx_t_5;
  } else {
    __pyx_t_6 = (__pyx_v_self->parsed_event.data.scalar.tag == NULL);
  }
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":799
 *                 or (self.parsed_event.data.scalar.tag[0] == c'!'
 *                         and self.parsed_event.data.scalar.tag[1] == c'\0'):
 *             tag = self.resolve(ScalarNode, value, (plain_implicit, quoted_implicit))             # <<<<<<<<<<<<<<
 *         else:
 *             tag = PyUnicode_FromString(self.parsed_event.data.scalar.tag)
 */
    __pyx_t_2 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_kp_resolve); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ScalarNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_plain_implicit);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_plain_implicit);
    __Pyx_GIVEREF(__pyx_v_plain_implicit);
    __Pyx_INCREF(__pyx_v_quoted_implicit);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_quoted_implicit);
    __Pyx_GIVEREF(__pyx_v_quoted_implicit);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_1);
    __Pyx_GIVEREF(__pyx_1);
    __Pyx_INCREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_t_1));
    __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
    __pyx_1 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_v_tag);
    __pyx_v_tag = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L5;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":801
 *             tag = self.resolve(ScalarNode, value, (plain_implicit, quoted_implicit))
 *         else:
 *             tag = PyUnicode_FromString(self.parsed_event.data.scalar.tag)             # <<<<<<<<<<<<<<
 *         style = None
 *         if self.parsed_event.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 */
    __pyx_t_1 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.scalar.tag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 801; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v_tag);
    __pyx_v_tag = __pyx_t_1;
    __pyx_t_1 = 0;
  }
  __pyx_L5:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":802
 *         else:
 *             tag = PyUnicode_FromString(self.parsed_event.data.scalar.tag)
 *         style = None             # <<<<<<<<<<<<<<
 *         if self.parsed_event.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 *             style = u''
 */
  __Pyx_INCREF(Py_None);
  __Pyx_DECREF(__pyx_v_style);
  __pyx_v_style = Py_None;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":803
 *             tag = PyUnicode_FromString(self.parsed_event.data.scalar.tag)
 *         style = None
 *         if self.parsed_event.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *             style = u''
 *         elif self.parsed_event.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 */
  __pyx_t_6 = (__pyx_v_self->parsed_event.data.scalar.style == YAML_PLAIN_SCALAR_STYLE);
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":804
 *         style = None
 *         if self.parsed_event.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 *             style = u''             # <<<<<<<<<<<<<<
 *         elif self.parsed_event.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 *             style = u'\''
 */
    __Pyx_INCREF(((PyObject *)__pyx_kp_54));
    __Pyx_DECREF(__pyx_v_style);
    __pyx_v_style = ((PyObject *)__pyx_kp_54);
    goto __pyx_L6;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":805
 *         if self.parsed_event.data.scalar.style == YAML_PLAIN_SCALAR_STYLE:
 *             style = u''
 *         elif self.parsed_event.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *             style = u'\''
 *         elif self.parsed_event.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 */
  __pyx_t_6 = (__pyx_v_self->parsed_event.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE);
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":806
 *             style = u''
 *         elif self.parsed_event.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 *             style = u'\''             # <<<<<<<<<<<<<<
 *         elif self.parsed_event.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 *             style = u'"'
 */
    __Pyx_INCREF(((PyObject *)__pyx_kp_55));
    __Pyx_DECREF(__pyx_v_style);
    __pyx_v_style = ((PyObject *)__pyx_kp_55);
    goto __pyx_L6;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":807
 *         elif self.parsed_event.data.scalar.style == YAML_SINGLE_QUOTED_SCALAR_STYLE:
 *             style = u'\''
 *         elif self.parsed_event.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *             style = u'"'
 *         elif self.parsed_event.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 */
  __pyx_t_6 = (__pyx_v_self->parsed_event.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE);
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":808
 *             style = u'\''
 *         elif self.parsed_event.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 *             style = u'"'             # <<<<<<<<<<<<<<
 *         elif self.parsed_event.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 *             style = u'|'
 */
    __Pyx_INCREF(((PyObject *)__pyx_kp_56));
    __Pyx_DECREF(__pyx_v_style);
    __pyx_v_style = ((PyObject *)__pyx_kp_56);
    goto __pyx_L6;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":809
 *         elif self.parsed_event.data.scalar.style == YAML_DOUBLE_QUOTED_SCALAR_STYLE:
 *             style = u'"'
 *         elif self.parsed_event.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *             style = u'|'
 *         elif self.parsed_event.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 */
  __pyx_t_6 = (__pyx_v_self->parsed_event.data.scalar.style == YAML_LITERAL_SCALAR_STYLE);
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":810
 *             style = u'"'
 *         elif self.parsed_event.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 *             style = u'|'             # <<<<<<<<<<<<<<
 *         elif self.parsed_event.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 *             style = u'>'
 */
    __Pyx_INCREF(((PyObject *)__pyx_kp_57));
    __Pyx_DECREF(__pyx_v_style);
    __pyx_v_style = ((PyObject *)__pyx_kp_57);
    goto __pyx_L6;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":811
 *         elif self.parsed_event.data.scalar.style == YAML_LITERAL_SCALAR_STYLE:
 *             style = u'|'
 *         elif self.parsed_event.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:             # <<<<<<<<<<<<<<
 *             style = u'>'
 *         node = ScalarNode(tag, value, start_mark, end_mark, style)
 */
  __pyx_t_6 = (__pyx_v_self->parsed_event.data.scalar.style == YAML_FOLDED_SCALAR_STYLE);
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":812
 *             style = u'|'
 *         elif self.parsed_event.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 *             style = u'>'             # <<<<<<<<<<<<<<
 *         node = ScalarNode(tag, value, start_mark, end_mark, style)
 *         if anchor is not None:
 */
    __Pyx_INCREF(((PyObject *)__pyx_kp_58));
    __Pyx_DECREF(__pyx_v_style);
    __pyx_v_style = ((PyObject *)__pyx_kp_58);
    goto __pyx_L6;
  }
  __pyx_L6:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":813
 *         elif self.parsed_event.data.scalar.style == YAML_FOLDED_SCALAR_STYLE:
 *             style = u'>'
 *         node = ScalarNode(tag, value, start_mark, end_mark, style)             # <<<<<<<<<<<<<<
 *         if anchor is not None:
 *             self.anchors[anchor] = node
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ScalarNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __Pyx_INCREF(__pyx_v_tag);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_tag);
  __Pyx_GIVEREF(__pyx_v_tag);
  __Pyx_INCREF(__pyx_v_value);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_INCREF(__pyx_v_start_mark);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_start_mark);
  __Pyx_GIVEREF(__pyx_v_start_mark);
  __Pyx_INCREF(__pyx_v_end_mark);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_v_end_mark);
  __Pyx_GIVEREF(__pyx_v_end_mark);
  __Pyx_INCREF(__pyx_v_style);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_v_style);
  __Pyx_GIVEREF(__pyx_v_style);
  __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_v_node);
  __pyx_v_node = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":814
 *             style = u'>'
 *         node = ScalarNode(tag, value, start_mark, end_mark, style)
 *         if anchor is not None:             # <<<<<<<<<<<<<<
 *             self.anchors[anchor] = node
 *         yaml_event_delete(&self.parsed_event)
 */
  __pyx_t_6 = (__pyx_v_anchor != Py_None);
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":815
 *         node = ScalarNode(tag, value, start_mark, end_mark, style)
 *         if anchor is not None:
 *             self.anchors[anchor] = node             # <<<<<<<<<<<<<<
 *         yaml_event_delete(&self.parsed_event)
 *         return node
 */
    if (PyObject_SetItem(__pyx_v_self->anchors, __pyx_v_anchor, __pyx_v_node) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 815; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L7;
  }
  __pyx_L7:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":816
 *         if anchor is not None:
 *             self.anchors[anchor] = node
 *         yaml_event_delete(&self.parsed_event)             # <<<<<<<<<<<<<<
 *         return node
 * 
 */
  yaml_event_delete((&__pyx_v_self->parsed_event));

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":817
 *             self.anchors[anchor] = node
 *         yaml_event_delete(&self.parsed_event)
 *         return node             # <<<<<<<<<<<<<<
 * 
 *     cdef _compose_sequence_node(self, object anchor):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_node);
  __pyx_r = __pyx_v_node;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_yaml.CParser._compose_scalar_node");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_start_mark);
  __Pyx_DECREF(__pyx_v_end_mark);
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_DECREF(__pyx_v_plain_implicit);
  __Pyx_DECREF(__pyx_v_quoted_implicit);
  __Pyx_DECREF(__pyx_v_tag);
  __Pyx_DECREF(__pyx_v_style);
  __Pyx_DECREF(__pyx_v_node);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":819
 *         return node
 * 
 *     cdef _compose_sequence_node(self, object anchor):             # <<<<<<<<<<<<<<
 *         cdef int index
 *         start_mark = Mark(self.stream_name,
 */

static  PyObject *__pyx_f_5_yaml_7CParser__compose_sequence_node(struct __pyx_obj_5_yaml_CParser *__pyx_v_self, PyObject *__pyx_v_anchor) {
  int __pyx_v_index;
  PyObject *__pyx_v_start_mark;
  PyObject *__pyx_v_implicit;
  PyObject *__pyx_v_tag;
  PyObject *__pyx_v_flow_style;
  PyObject *__pyx_v_value;
  PyObject *__pyx_v_node;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_1 = 0;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  __Pyx_SetupRefcountContext("_compose_sequence_node");
  __pyx_v_start_mark = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_implicit = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_tag = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_flow_style = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_node = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":822
 *         cdef int index
 *         start_mark = Mark(self.stream_name,
 *                 self.parsed_event.start_mark.index,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.start_mark.line,
 *                 self.parsed_event.start_mark.column,
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":823
 *         start_mark = Mark(self.stream_name,
 *                 self.parsed_event.start_mark.index,
 *                 self.parsed_event.start_mark.line,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.start_mark.column,
 *                 None, None)
 */
  __pyx_t_2 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":824
 *                 self.parsed_event.start_mark.index,
 *                 self.parsed_event.start_mark.line,
 *                 self.parsed_event.start_mark.column,             # <<<<<<<<<<<<<<
 *                 None, None)
 *         implicit = False
 */
  __pyx_t_3 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.column); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 824; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":825
 *                 self.parsed_event.start_mark.line,
 *                 self.parsed_event.start_mark.column,
 *                 None, None)             # <<<<<<<<<<<<<<
 *         implicit = False
 *         if self.parsed_event.data.sequence_start.implicit == 1:
 */
  __pyx_t_4 = PyTuple_New(6); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __Pyx_INCREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_self->stream_name);
  __Pyx_GIVEREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_4, 4, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_4, 5, Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_v_start_mark);
  __pyx_v_start_mark = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":826
 *                 self.parsed_event.start_mark.column,
 *                 None, None)
 *         implicit = False             # <<<<<<<<<<<<<<
 *         if self.parsed_event.data.sequence_start.implicit == 1:
 *             implicit = True
 */
  __pyx_t_3 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_v_implicit);
  __pyx_v_implicit = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":827
 *                 None, None)
 *         implicit = False
 *         if self.parsed_event.data.sequence_start.implicit == 1:             # <<<<<<<<<<<<<<
 *             implicit = True
 *         if self.parsed_event.data.sequence_start.tag == NULL    \
 */
  __pyx_t_5 = (__pyx_v_self->parsed_event.data.sequence_start.implicit == 1);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":828
 *         implicit = False
 *         if self.parsed_event.data.sequence_start.implicit == 1:
 *             implicit = True             # <<<<<<<<<<<<<<
 *         if self.parsed_event.data.sequence_start.tag == NULL    \
 *                 or (self.parsed_event.data.sequence_start.tag[0] == c'!'
 */
    __pyx_t_3 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_implicit);
    __pyx_v_implicit = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":829
 *         if self.parsed_event.data.sequence_start.implicit == 1:
 *             implicit = True
 *         if self.parsed_event.data.sequence_start.tag == NULL    \             # <<<<<<<<<<<<<<
 *                 or (self.parsed_event.data.sequence_start.tag[0] == c'!'
 *                         and self.parsed_event.data.sequence_start.tag[1] == c'\0'):
 */
  if (!(__pyx_v_self->parsed_event.data.sequence_start.tag == NULL)) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":830
 *             implicit = True
 *         if self.parsed_event.data.sequence_start.tag == NULL    \
 *                 or (self.parsed_event.data.sequence_start.tag[0] == c'!'             # <<<<<<<<<<<<<<
 *                         and self.parsed_event.data.sequence_start.tag[1] == c'\0'):
 *             tag = self.resolve(SequenceNode, None, implicit)
 */
    if (((__pyx_v_self->parsed_event.data.sequence_start.tag[0]) == '!')) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":831
 *         if self.parsed_event.data.sequence_start.tag == NULL    \
 *                 or (self.parsed_event.data.sequence_start.tag[0] == c'!'
 *                         and self.parsed_event.data.sequence_start.tag[1] == c'\0'):             # <<<<<<<<<<<<<<
 *             tag = self.resolve(SequenceNode, None, implicit)
 *         else:
 */
      __pyx_t_5 = ((__pyx_v_self->parsed_event.data.sequence_start.tag[1]) == '\x00');
    } else {
      __pyx_t_5 = ((__pyx_v_self->parsed_event.data.sequence_start.tag[0]) == '!');
    }
    __pyx_t_6 = __pyx_t_5;
  } else {
    __pyx_t_6 = (__pyx_v_self->parsed_event.data.sequence_start.tag == NULL);
  }
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":832
 *                 or (self.parsed_event.data.sequence_start.tag[0] == c'!'
 *                         and self.parsed_event.data.sequence_start.tag[1] == c'\0'):
 *             tag = self.resolve(SequenceNode, None, implicit)             # <<<<<<<<<<<<<<
 *         else:
 *             tag = PyUnicode_FromString(self.parsed_event.data.sequence_start.tag)
 */
    __pyx_t_3 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_kp_resolve); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SequenceNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_1);
    __Pyx_GIVEREF(__pyx_1);
    __Pyx_INCREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_INCREF(__pyx_v_implicit);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_implicit);
    __Pyx_GIVEREF(__pyx_v_implicit);
    __pyx_1 = 0;
    __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_v_tag);
    __pyx_v_tag = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L4;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":834
 *             tag = self.resolve(SequenceNode, None, implicit)
 *         else:
 *             tag = PyUnicode_FromString(self.parsed_event.data.sequence_start.tag)             # <<<<<<<<<<<<<<
 *         flow_style = None
 *         if self.parsed_event.data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE:
 */
    __pyx_t_2 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.sequence_start.tag); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_tag);
    __pyx_v_tag = __pyx_t_2;
    __pyx_t_2 = 0;
  }
  __pyx_L4:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":835
 *         else:
 *             tag = PyUnicode_FromString(self.parsed_event.data.sequence_start.tag)
 *         flow_style = None             # <<<<<<<<<<<<<<
 *         if self.parsed_event.data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE:
 *             flow_style = True
 */
  __Pyx_INCREF(Py_None);
  __Pyx_DECREF(__pyx_v_flow_style);
  __pyx_v_flow_style = Py_None;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":836
 *             tag = PyUnicode_FromString(self.parsed_event.data.sequence_start.tag)
 *         flow_style = None
 *         if self.parsed_event.data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE:             # <<<<<<<<<<<<<<
 *             flow_style = True
 *         elif self.parsed_event.data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE:
 */
  __pyx_t_6 = (__pyx_v_self->parsed_event.data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE);
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":837
 *         flow_style = None
 *         if self.parsed_event.data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE:
 *             flow_style = True             # <<<<<<<<<<<<<<
 *         elif self.parsed_event.data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE:
 *             flow_style = False
 */
    __pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_flow_style);
    __pyx_v_flow_style = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L5;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":838
 *         if self.parsed_event.data.sequence_start.style == YAML_FLOW_SEQUENCE_STYLE:
 *             flow_style = True
 *         elif self.parsed_event.data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE:             # <<<<<<<<<<<<<<
 *             flow_style = False
 *         value = []
 */
  __pyx_t_6 = (__pyx_v_self->parsed_event.data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE);
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":839
 *             flow_style = True
 *         elif self.parsed_event.data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE:
 *             flow_style = False             # <<<<<<<<<<<<<<
 *         value = []
 *         node = SequenceNode(tag, value, start_mark, None, flow_style)
 */
    __pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_flow_style);
    __pyx_v_flow_style = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L5;
  }
  __pyx_L5:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":840
 *         elif self.parsed_event.data.sequence_start.style == YAML_BLOCK_SEQUENCE_STYLE:
 *             flow_style = False
 *         value = []             # <<<<<<<<<<<<<<
 *         node = SequenceNode(tag, value, start_mark, None, flow_style)
 *         if anchor is not None:
 */
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
  __Pyx_DECREF(__pyx_v_value);
  __pyx_v_value = ((PyObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":841
 *             flow_style = False
 *         value = []
 *         node = SequenceNode(tag, value, start_mark, None, flow_style)             # <<<<<<<<<<<<<<
 *         if anchor is not None:
 *             self.anchors[anchor] = node
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SequenceNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
  __Pyx_INCREF(__pyx_v_tag);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_tag);
  __Pyx_GIVEREF(__pyx_v_tag);
  __Pyx_INCREF(__pyx_v_value);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_INCREF(__pyx_v_start_mark);
  PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_start_mark);
  __Pyx_GIVEREF(__pyx_v_start_mark);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_2, 3, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(__pyx_v_flow_style);
  PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_v_flow_style);
  __Pyx_GIVEREF(__pyx_v_flow_style);
  __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_v_node);
  __pyx_v_node = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":842
 *         value = []
 *         node = SequenceNode(tag, value, start_mark, None, flow_style)
 *         if anchor is not None:             # <<<<<<<<<<<<<<
 *             self.anchors[anchor] = node
 *         yaml_event_delete(&self.parsed_event)
 */
  __pyx_t_6 = (__pyx_v_anchor != Py_None);
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":843
 *         node = SequenceNode(tag, value, start_mark, None, flow_style)
 *         if anchor is not None:
 *             self.anchors[anchor] = node             # <<<<<<<<<<<<<<
 *         yaml_event_delete(&self.parsed_event)
 *         index = 0
 */
    if (PyObject_SetItem(__pyx_v_self->anchors, __pyx_v_anchor, __pyx_v_node) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L6;
  }
  __pyx_L6:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":844
 *         if anchor is not None:
 *             self.anchors[anchor] = node
 *         yaml_event_delete(&self.parsed_event)             # <<<<<<<<<<<<<<
 *         index = 0
 *         self._parse_next_event()
 */
  yaml_event_delete((&__pyx_v_self->parsed_event));

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":845
 *             self.anchors[anchor] = node
 *         yaml_event_delete(&self.parsed_event)
 *         index = 0             # <<<<<<<<<<<<<<
 *         self._parse_next_event()
 *         while self.parsed_event.type != YAML_SEQUENCE_END_EVENT:
 */
  __pyx_v_index = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":846
 *         yaml_event_delete(&self.parsed_event)
 *         index = 0
 *         self._parse_next_event()             # <<<<<<<<<<<<<<
 *         while self.parsed_event.type != YAML_SEQUENCE_END_EVENT:
 *             value.append(self._compose_node(node, index))
 */
  __pyx_t_7 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parse_next_event(__pyx_v_self); if (unlikely(__pyx_t_7 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 846; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":847
 *         index = 0
 *         self._parse_next_event()
 *         while self.parsed_event.type != YAML_SEQUENCE_END_EVENT:             # <<<<<<<<<<<<<<
 *             value.append(self._compose_node(node, index))
 *             index = index+1
 */
  while (1) {
    __pyx_t_6 = (__pyx_v_self->parsed_event.type != YAML_SEQUENCE_END_EVENT);
    if (!__pyx_t_6) break;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":848
 *         self._parse_next_event()
 *         while self.parsed_event.type != YAML_SEQUENCE_END_EVENT:
 *             value.append(self._compose_node(node, index))             # <<<<<<<<<<<<<<
 *             index = index+1
 *             self._parse_next_event()
 */
    __pyx_t_4 = PyInt_FromLong(__pyx_v_index); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_node(__pyx_v_self, __pyx_v_node, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_4 = __Pyx_PyObject_Append(__pyx_v_value, __pyx_t_2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":849
 *         while self.parsed_event.type != YAML_SEQUENCE_END_EVENT:
 *             value.append(self._compose_node(node, index))
 *             index = index+1             # <<<<<<<<<<<<<<
 *             self._parse_next_event()
 *         node.end_mark = Mark(self.stream_name,
 */
    __pyx_v_index = (__pyx_v_index + 1);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":850
 *             value.append(self._compose_node(node, index))
 *             index = index+1
 *             self._parse_next_event()             # <<<<<<<<<<<<<<
 *         node.end_mark = Mark(self.stream_name,
 *                 self.parsed_event.end_mark.index,
 */
    __pyx_t_7 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parse_next_event(__pyx_v_self); if (unlikely(__pyx_t_7 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":852
 *             self._parse_next_event()
 *         node.end_mark = Mark(self.stream_name,
 *                 self.parsed_event.end_mark.index,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.end_mark.line,
 *                 self.parsed_event.end_mark.column,
 */
  __pyx_t_4 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.index); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 852; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":853
 *         node.end_mark = Mark(self.stream_name,
 *                 self.parsed_event.end_mark.index,
 *                 self.parsed_event.end_mark.line,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.end_mark.column,
 *                 None, None)
 */
  __pyx_t_2 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":854
 *                 self.parsed_event.end_mark.index,
 *                 self.parsed_event.end_mark.line,
 *                 self.parsed_event.end_mark.column,             # <<<<<<<<<<<<<<
 *                 None, None)
 *         yaml_event_delete(&self.parsed_event)
 */
  __pyx_t_3 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.column); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 854; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":855
 *                 self.parsed_event.end_mark.line,
 *                 self.parsed_event.end_mark.column,
 *                 None, None)             # <<<<<<<<<<<<<<
 *         yaml_event_delete(&self.parsed_event)
 *         return node
 */
  __pyx_t_1 = PyTuple_New(6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 851; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __Pyx_INCREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->stream_name);
  __Pyx_GIVEREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_1, 4, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_1, 5, Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_t_4 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 851; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":851
 *             index = index+1
 *             self._parse_next_event()
 *         node.end_mark = Mark(self.stream_name,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.end_mark.index,
 *                 self.parsed_event.end_mark.line,
 */
  if (PyObject_SetAttr(__pyx_v_node, __pyx_kp_end_mark, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 851; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":856
 *                 self.parsed_event.end_mark.column,
 *                 None, None)
 *         yaml_event_delete(&self.parsed_event)             # <<<<<<<<<<<<<<
 *         return node
 * 
 */
  yaml_event_delete((&__pyx_v_self->parsed_event));

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":857
 *                 None, None)
 *         yaml_event_delete(&self.parsed_event)
 *         return node             # <<<<<<<<<<<<<<
 * 
 *     cdef _compose_mapping_node(self, object anchor):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_node);
  __pyx_r = __pyx_v_node;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_yaml.CParser._compose_sequence_node");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_start_mark);
  __Pyx_DECREF(__pyx_v_implicit);
  __Pyx_DECREF(__pyx_v_tag);
  __Pyx_DECREF(__pyx_v_flow_style);
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_DECREF(__pyx_v_node);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":859
 *         return node
 * 
 *     cdef _compose_mapping_node(self, object anchor):             # <<<<<<<<<<<<<<
 *         start_mark = Mark(self.stream_name,
 *                 self.parsed_event.start_mark.index,
 */

static  PyObject *__pyx_f_5_yaml_7CParser__compose_mapping_node(struct __pyx_obj_5_yaml_CParser *__pyx_v_self, PyObject *__pyx_v_anchor) {
  PyObject *__pyx_v_start_mark;
  PyObject *__pyx_v_implicit;
  PyObject *__pyx_v_tag;
  PyObject *__pyx_v_flow_style;
  PyObject *__pyx_v_value;
  PyObject *__pyx_v_node;
  PyObject *__pyx_v_item_key;
  PyObject *__pyx_v_item_value;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_1 = 0;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  __Pyx_SetupRefcountContext("_compose_mapping_node");
  __pyx_v_start_mark = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_implicit = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_tag = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_flow_style = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_node = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_item_key = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_item_value = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":861
 *     cdef _compose_mapping_node(self, object anchor):
 *         start_mark = Mark(self.stream_name,
 *                 self.parsed_event.start_mark.index,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.start_mark.line,
 *                 self.parsed_event.start_mark.column,
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 861; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":862
 *         start_mark = Mark(self.stream_name,
 *                 self.parsed_event.start_mark.index,
 *                 self.parsed_event.start_mark.line,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.start_mark.column,
 *                 None, None)
 */
  __pyx_t_2 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":863
 *                 self.parsed_event.start_mark.index,
 *                 self.parsed_event.start_mark.line,
 *                 self.parsed_event.start_mark.column,             # <<<<<<<<<<<<<<
 *                 None, None)
 *         implicit = False
 */
  __pyx_t_3 = PyInt_FromLong(__pyx_v_self->parsed_event.start_mark.column); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 863; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":864
 *                 self.parsed_event.start_mark.line,
 *                 self.parsed_event.start_mark.column,
 *                 None, None)             # <<<<<<<<<<<<<<
 *         implicit = False
 *         if self.parsed_event.data.mapping_start.implicit == 1:
 */
  __pyx_t_4 = PyTuple_New(6); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __Pyx_INCREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_self->stream_name);
  __Pyx_GIVEREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_4, 4, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_4, 5, Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_v_start_mark);
  __pyx_v_start_mark = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":865
 *                 self.parsed_event.start_mark.column,
 *                 None, None)
 *         implicit = False             # <<<<<<<<<<<<<<
 *         if self.parsed_event.data.mapping_start.implicit == 1:
 *             implicit = True
 */
  __pyx_t_3 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_v_implicit);
  __pyx_v_implicit = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":866
 *                 None, None)
 *         implicit = False
 *         if self.parsed_event.data.mapping_start.implicit == 1:             # <<<<<<<<<<<<<<
 *             implicit = True
 *         if self.parsed_event.data.mapping_start.tag == NULL    \
 */
  __pyx_t_5 = (__pyx_v_self->parsed_event.data.mapping_start.implicit == 1);
  if (__pyx_t_5) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":867
 *         implicit = False
 *         if self.parsed_event.data.mapping_start.implicit == 1:
 *             implicit = True             # <<<<<<<<<<<<<<
 *         if self.parsed_event.data.mapping_start.tag == NULL    \
 *                 or (self.parsed_event.data.mapping_start.tag[0] == c'!'
 */
    __pyx_t_3 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_implicit);
    __pyx_v_implicit = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":868
 *         if self.parsed_event.data.mapping_start.implicit == 1:
 *             implicit = True
 *         if self.parsed_event.data.mapping_start.tag == NULL    \             # <<<<<<<<<<<<<<
 *                 or (self.parsed_event.data.mapping_start.tag[0] == c'!'
 *                         and self.parsed_event.data.mapping_start.tag[1] == c'\0'):
 */
  if (!(__pyx_v_self->parsed_event.data.mapping_start.tag == NULL)) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":869
 *             implicit = True
 *         if self.parsed_event.data.mapping_start.tag == NULL    \
 *                 or (self.parsed_event.data.mapping_start.tag[0] == c'!'             # <<<<<<<<<<<<<<
 *                         and self.parsed_event.data.mapping_start.tag[1] == c'\0'):
 *             tag = self.resolve(MappingNode, None, implicit)
 */
    if (((__pyx_v_self->parsed_event.data.mapping_start.tag[0]) == '!')) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":870
 *         if self.parsed_event.data.mapping_start.tag == NULL    \
 *                 or (self.parsed_event.data.mapping_start.tag[0] == c'!'
 *                         and self.parsed_event.data.mapping_start.tag[1] == c'\0'):             # <<<<<<<<<<<<<<
 *             tag = self.resolve(MappingNode, None, implicit)
 *         else:
 */
      __pyx_t_5 = ((__pyx_v_self->parsed_event.data.mapping_start.tag[1]) == '\x00');
    } else {
      __pyx_t_5 = ((__pyx_v_self->parsed_event.data.mapping_start.tag[0]) == '!');
    }
    __pyx_t_6 = __pyx_t_5;
  } else {
    __pyx_t_6 = (__pyx_v_self->parsed_event.data.mapping_start.tag == NULL);
  }
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":871
 *                 or (self.parsed_event.data.mapping_start.tag[0] == c'!'
 *                         and self.parsed_event.data.mapping_start.tag[1] == c'\0'):
 *             tag = self.resolve(MappingNode, None, implicit)             # <<<<<<<<<<<<<<
 *         else:
 *             tag = PyUnicode_FromString(self.parsed_event.data.mapping_start.tag)
 */
    __pyx_t_3 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_kp_resolve); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_MappingNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_1);
    __Pyx_GIVEREF(__pyx_1);
    __Pyx_INCREF(Py_None);
    PyTuple_SET_ITEM(__pyx_t_4, 1, Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_INCREF(__pyx_v_implicit);
    PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_v_implicit);
    __Pyx_GIVEREF(__pyx_v_implicit);
    __pyx_1 = 0;
    __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_v_tag);
    __pyx_v_tag = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L4;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":873
 *             tag = self.resolve(MappingNode, None, implicit)
 *         else:
 *             tag = PyUnicode_FromString(self.parsed_event.data.mapping_start.tag)             # <<<<<<<<<<<<<<
 *         flow_style = None
 *         if self.parsed_event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE:
 */
    __pyx_t_2 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.mapping_start.tag); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 873; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_tag);
    __pyx_v_tag = __pyx_t_2;
    __pyx_t_2 = 0;
  }
  __pyx_L4:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":874
 *         else:
 *             tag = PyUnicode_FromString(self.parsed_event.data.mapping_start.tag)
 *         flow_style = None             # <<<<<<<<<<<<<<
 *         if self.parsed_event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE:
 *             flow_style = True
 */
  __Pyx_INCREF(Py_None);
  __Pyx_DECREF(__pyx_v_flow_style);
  __pyx_v_flow_style = Py_None;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":875
 *             tag = PyUnicode_FromString(self.parsed_event.data.mapping_start.tag)
 *         flow_style = None
 *         if self.parsed_event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE:             # <<<<<<<<<<<<<<
 *             flow_style = True
 *         elif self.parsed_event.data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE:
 */
  __pyx_t_6 = (__pyx_v_self->parsed_event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE);
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":876
 *         flow_style = None
 *         if self.parsed_event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE:
 *             flow_style = True             # <<<<<<<<<<<<<<
 *         elif self.parsed_event.data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE:
 *             flow_style = False
 */
    __pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 876; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_flow_style);
    __pyx_v_flow_style = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L5;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":877
 *         if self.parsed_event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE:
 *             flow_style = True
 *         elif self.parsed_event.data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE:             # <<<<<<<<<<<<<<
 *             flow_style = False
 *         value = []
 */
  __pyx_t_6 = (__pyx_v_self->parsed_event.data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE);
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":878
 *             flow_style = True
 *         elif self.parsed_event.data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE:
 *             flow_style = False             # <<<<<<<<<<<<<<
 *         value = []
 *         node = MappingNode(tag, value, start_mark, None, flow_style)
 */
    __pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 878; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_flow_style);
    __pyx_v_flow_style = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L5;
  }
  __pyx_L5:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":879
 *         elif self.parsed_event.data.mapping_start.style == YAML_BLOCK_MAPPING_STYLE:
 *             flow_style = False
 *         value = []             # <<<<<<<<<<<<<<
 *         node = MappingNode(tag, value, start_mark, None, flow_style)
 *         if anchor is not None:
 */
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 879; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
  __Pyx_DECREF(__pyx_v_value);
  __pyx_v_value = ((PyObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":880
 *             flow_style = False
 *         value = []
 *         node = MappingNode(tag, value, start_mark, None, flow_style)             # <<<<<<<<<<<<<<
 *         if anchor is not None:
 *             self.anchors[anchor] = node
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_MappingNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 880; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 880; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
  __Pyx_INCREF(__pyx_v_tag);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_tag);
  __Pyx_GIVEREF(__pyx_v_tag);
  __Pyx_INCREF(__pyx_v_value);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_INCREF(__pyx_v_start_mark);
  PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_start_mark);
  __Pyx_GIVEREF(__pyx_v_start_mark);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_2, 3, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(__pyx_v_flow_style);
  PyTuple_SET_ITEM(__pyx_t_2, 4, __pyx_v_flow_style);
  __Pyx_GIVEREF(__pyx_v_flow_style);
  __pyx_t_4 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 880; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_v_node);
  __pyx_v_node = __pyx_t_4;
  __pyx_t_4 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":881
 *         value = []
 *         node = MappingNode(tag, value, start_mark, None, flow_style)
 *         if anchor is not None:             # <<<<<<<<<<<<<<
 *             self.anchors[anchor] = node
 *         yaml_event_delete(&self.parsed_event)
 */
  __pyx_t_6 = (__pyx_v_anchor != Py_None);
  if (__pyx_t_6) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":882
 *         node = MappingNode(tag, value, start_mark, None, flow_style)
 *         if anchor is not None:
 *             self.anchors[anchor] = node             # <<<<<<<<<<<<<<
 *         yaml_event_delete(&self.parsed_event)
 *         self._parse_next_event()
 */
    if (PyObject_SetItem(__pyx_v_self->anchors, __pyx_v_anchor, __pyx_v_node) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 882; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L6;
  }
  __pyx_L6:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":883
 *         if anchor is not None:
 *             self.anchors[anchor] = node
 *         yaml_event_delete(&self.parsed_event)             # <<<<<<<<<<<<<<
 *         self._parse_next_event()
 *         while self.parsed_event.type != YAML_MAPPING_END_EVENT:
 */
  yaml_event_delete((&__pyx_v_self->parsed_event));

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":884
 *             self.anchors[anchor] = node
 *         yaml_event_delete(&self.parsed_event)
 *         self._parse_next_event()             # <<<<<<<<<<<<<<
 *         while self.parsed_event.type != YAML_MAPPING_END_EVENT:
 *             item_key = self._compose_node(node, None)
 */
  __pyx_t_7 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parse_next_event(__pyx_v_self); if (unlikely(__pyx_t_7 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 884; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":885
 *         yaml_event_delete(&self.parsed_event)
 *         self._parse_next_event()
 *         while self.parsed_event.type != YAML_MAPPING_END_EVENT:             # <<<<<<<<<<<<<<
 *             item_key = self._compose_node(node, None)
 *             item_value = self._compose_node(node, item_key)
 */
  while (1) {
    __pyx_t_6 = (__pyx_v_self->parsed_event.type != YAML_MAPPING_END_EVENT);
    if (!__pyx_t_6) break;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":886
 *         self._parse_next_event()
 *         while self.parsed_event.type != YAML_MAPPING_END_EVENT:
 *             item_key = self._compose_node(node, None)             # <<<<<<<<<<<<<<
 *             item_value = self._compose_node(node, item_key)
 *             value.append((item_key, item_value))
 */
    __pyx_t_4 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_node(__pyx_v_self, __pyx_v_node, Py_None); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 886; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_v_item_key);
    __pyx_v_item_key = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":887
 *         while self.parsed_event.type != YAML_MAPPING_END_EVENT:
 *             item_key = self._compose_node(node, None)
 *             item_value = self._compose_node(node, item_key)             # <<<<<<<<<<<<<<
 *             value.append((item_key, item_value))
 *             self._parse_next_event()
 */
    __pyx_t_4 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_compose_node(__pyx_v_self, __pyx_v_node, __pyx_v_item_key); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(__pyx_v_item_value);
    __pyx_v_item_value = __pyx_t_4;
    __pyx_t_4 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":888
 *             item_key = self._compose_node(node, None)
 *             item_value = self._compose_node(node, item_key)
 *             value.append((item_key, item_value))             # <<<<<<<<<<<<<<
 *             self._parse_next_event()
 *         node.end_mark = Mark(self.stream_name,
 */
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_item_key);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_item_key);
    __Pyx_GIVEREF(__pyx_v_item_key);
    __Pyx_INCREF(__pyx_v_item_value);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_item_value);
    __Pyx_GIVEREF(__pyx_v_item_value);
    __pyx_t_2 = __Pyx_PyObject_Append(__pyx_v_value, ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":889
 *             item_value = self._compose_node(node, item_key)
 *             value.append((item_key, item_value))
 *             self._parse_next_event()             # <<<<<<<<<<<<<<
 *         node.end_mark = Mark(self.stream_name,
 *                 self.parsed_event.end_mark.index,
 */
    __pyx_t_7 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parse_next_event(__pyx_v_self); if (unlikely(__pyx_t_7 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 889; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":891
 *             self._parse_next_event()
 *         node.end_mark = Mark(self.stream_name,
 *                 self.parsed_event.end_mark.index,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.end_mark.line,
 *                 self.parsed_event.end_mark.column,
 */
  __pyx_t_2 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.index); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":892
 *         node.end_mark = Mark(self.stream_name,
 *                 self.parsed_event.end_mark.index,
 *                 self.parsed_event.end_mark.line,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.end_mark.column,
 *                 None, None)
 */
  __pyx_t_4 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.line); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":893
 *                 self.parsed_event.end_mark.index,
 *                 self.parsed_event.end_mark.line,
 *                 self.parsed_event.end_mark.column,             # <<<<<<<<<<<<<<
 *                 None, None)
 *         yaml_event_delete(&self.parsed_event)
 */
  __pyx_t_3 = PyInt_FromLong(__pyx_v_self->parsed_event.end_mark.column); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 893; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":894
 *                 self.parsed_event.end_mark.line,
 *                 self.parsed_event.end_mark.column,
 *                 None, None)             # <<<<<<<<<<<<<<
 *         yaml_event_delete(&self.parsed_event)
 *         return node
 */
  __pyx_t_1 = PyTuple_New(6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 890; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __Pyx_INCREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->stream_name);
  __Pyx_GIVEREF(__pyx_v_self->stream_name);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_1, 4, Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_1, 5, Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_5_yaml_Mark)), ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 890; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":890
 *             value.append((item_key, item_value))
 *             self._parse_next_event()
 *         node.end_mark = Mark(self.stream_name,             # <<<<<<<<<<<<<<
 *                 self.parsed_event.end_mark.index,
 *                 self.parsed_event.end_mark.line,
 */
  if (PyObject_SetAttr(__pyx_v_node, __pyx_kp_end_mark, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 890; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":895
 *                 self.parsed_event.end_mark.column,
 *                 None, None)
 *         yaml_event_delete(&self.parsed_event)             # <<<<<<<<<<<<<<
 *         return node
 * 
 */
  yaml_event_delete((&__pyx_v_self->parsed_event));

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":896
 *                 None, None)
 *         yaml_event_delete(&self.parsed_event)
 *         return node             # <<<<<<<<<<<<<<
 * 
 *     cdef int _parse_next_event(self) except 0:
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_node);
  __pyx_r = __pyx_v_node;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_yaml.CParser._compose_mapping_node");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_start_mark);
  __Pyx_DECREF(__pyx_v_implicit);
  __Pyx_DECREF(__pyx_v_tag);
  __Pyx_DECREF(__pyx_v_flow_style);
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_DECREF(__pyx_v_node);
  __Pyx_DECREF(__pyx_v_item_key);
  __Pyx_DECREF(__pyx_v_item_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":898
 *         return node
 * 
 *     cdef int _parse_next_event(self) except 0:             # <<<<<<<<<<<<<<
 *         if self.parsed_event.type == YAML_NO_EVENT:
 *             if yaml_parser_parse(&self.parser, &self.parsed_event) == 0:
 */

static  int __pyx_f_5_yaml_7CParser__parse_next_event(struct __pyx_obj_5_yaml_CParser *__pyx_v_self) {
  PyObject *__pyx_v_error;
  int __pyx_r;
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_SetupRefcountContext("_parse_next_event");
  __pyx_v_error = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":899
 * 
 *     cdef int _parse_next_event(self) except 0:
 *         if self.parsed_event.type == YAML_NO_EVENT:             # <<<<<<<<<<<<<<
 *             if yaml_parser_parse(&self.parser, &self.parsed_event) == 0:
 *                 error = self._parser_error()
 */
  __pyx_t_1 = (__pyx_v_self->parsed_event.type == YAML_NO_EVENT);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":900
 *     cdef int _parse_next_event(self) except 0:
 *         if self.parsed_event.type == YAML_NO_EVENT:
 *             if yaml_parser_parse(&self.parser, &self.parsed_event) == 0:             # <<<<<<<<<<<<<<
 *                 error = self._parser_error()
 *                 raise error
 */
    __pyx_t_2 = yaml_parser_parse((&__pyx_v_self->parser), (&__pyx_v_self->parsed_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_t_1 = (__pyx_t_2 == 0);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":901
 *         if self.parsed_event.type == YAML_NO_EVENT:
 *             if yaml_parser_parse(&self.parser, &self.parsed_event) == 0:
 *                 error = self._parser_error()             # <<<<<<<<<<<<<<
 *                 raise error
 *         return 1
 */
      __pyx_t_3 = ((struct __pyx_vtabstruct_5_yaml_CParser *)__pyx_v_self->__pyx_vtab)->_parser_error(__pyx_v_self); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 901; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_v_error);
      __pyx_v_error = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":902
 *             if yaml_parser_parse(&self.parser, &self.parsed_event) == 0:
 *                 error = self._parser_error()
 *                 raise error             # <<<<<<<<<<<<<<
 *         return 1
 * 
 */
      __Pyx_Raise(__pyx_v_error, 0, 0);
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 902; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L4;
    }
    __pyx_L4:;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":903
 *                 error = self._parser_error()
 *                 raise error
 *         return 1             # <<<<<<<<<<<<<<
 * 
 * cdef int input_handler(void *data, char *buffer, int size, int *read) except 0:
 */
  __pyx_r = 1;
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CParser._parse_next_event");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_error);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":905
 *         return 1
 * 
 * cdef int input_handler(void *data, char *buffer, int size, int *read) except 0:             # <<<<<<<<<<<<<<
 *     cdef CParser parser
 *     parser = <CParser>data
 */

static  int __pyx_f_5_yaml_input_handler(void *__pyx_v_data, char *__pyx_v_buffer, int __pyx_v_size, int *__pyx_v_read) {
  struct __pyx_obj_5_yaml_CParser *__pyx_v_parser;
  PyObject *__pyx_v_value;
  int __pyx_r;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_SetupRefcountContext("input_handler");
  __pyx_v_parser = ((struct __pyx_obj_5_yaml_CParser *)Py_None); __Pyx_INCREF(Py_None);
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":907
 * cdef int input_handler(void *data, char *buffer, int size, int *read) except 0:
 *     cdef CParser parser
 *     parser = <CParser>data             # <<<<<<<<<<<<<<
 *     if parser.stream_cache is None:
 *         value = parser.stream.read(size)
 */
  __Pyx_INCREF(((PyObject *)((struct __pyx_obj_5_yaml_CParser *)__pyx_v_data)));
  __Pyx_DECREF(((PyObject *)__pyx_v_parser));
  __pyx_v_parser = ((struct __pyx_obj_5_yaml_CParser *)__pyx_v_data);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":908
 *     cdef CParser parser
 *     parser = <CParser>data
 *     if parser.stream_cache is None:             # <<<<<<<<<<<<<<
 *         value = parser.stream.read(size)
 *         if PyUnicode_CheckExact(value) != 0:
 */
  __pyx_t_1 = (__pyx_v_parser->stream_cache == Py_None);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":909
 *     parser = <CParser>data
 *     if parser.stream_cache is None:
 *         value = parser.stream.read(size)             # <<<<<<<<<<<<<<
 *         if PyUnicode_CheckExact(value) != 0:
 *             value = PyUnicode_AsUTF8String(value)
 */
    __pyx_t_2 = PyObject_GetAttr(__pyx_v_parser->stream, __pyx_kp_read); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 909; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyInt_FromLong(__pyx_v_size); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 909; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 909; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_3 = 0;
    __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 909; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_v_value);
    __pyx_v_value = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":910
 *     if parser.stream_cache is None:
 *         value = parser.stream.read(size)
 *         if PyUnicode_CheckExact(value) != 0:             # <<<<<<<<<<<<<<
 *             value = PyUnicode_AsUTF8String(value)
 *             parser.unicode_source = 1
 */
    __pyx_t_1 = (PyUnicode_CheckExact(__pyx_v_value) != 0);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":911
 *         value = parser.stream.read(size)
 *         if PyUnicode_CheckExact(value) != 0:
 *             value = PyUnicode_AsUTF8String(value)             # <<<<<<<<<<<<<<
 *             parser.unicode_source = 1
 *         if PyString_CheckExact(value) == 0:
 */
      __pyx_t_3 = PyUnicode_AsUTF8String(__pyx_v_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_v_value);
      __pyx_v_value = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":912
 *         if PyUnicode_CheckExact(value) != 0:
 *             value = PyUnicode_AsUTF8String(value)
 *             parser.unicode_source = 1             # <<<<<<<<<<<<<<
 *         if PyString_CheckExact(value) == 0:
 *             if PY_MAJOR_VERSION < 3:
 */
      __pyx_v_parser->unicode_source = 1;
      goto __pyx_L4;
    }
    __pyx_L4:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":913
 *             value = PyUnicode_AsUTF8String(value)
 *             parser.unicode_source = 1
 *         if PyString_CheckExact(value) == 0:             # <<<<<<<<<<<<<<
 *             if PY_MAJOR_VERSION < 3:
 *                 raise TypeError("a string value is expected")
 */
    __pyx_t_1 = (PyString_CheckExact(__pyx_v_value) == 0);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":914
 *             parser.unicode_source = 1
 *         if PyString_CheckExact(value) == 0:
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 raise TypeError("a string value is expected")
 *             else:
 */
      __pyx_t_1 = (PY_MAJOR_VERSION < 3);
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":915
 *         if PyString_CheckExact(value) == 0:
 *             if PY_MAJOR_VERSION < 3:
 *                 raise TypeError("a string value is expected")             # <<<<<<<<<<<<<<
 *             else:
 *                 raise TypeError(u"a string value is expected")
 */
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 915; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_3));
        __Pyx_INCREF(__pyx_kp_59);
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_59);
        __Pyx_GIVEREF(__pyx_kp_59);
        __pyx_t_4 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 915; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
        __Pyx_Raise(__pyx_t_4, 0, 0);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 915; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L6;
      }
      /*else*/ {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":917
 *                 raise TypeError("a string value is expected")
 *             else:
 *                 raise TypeError(u"a string value is expected")             # <<<<<<<<<<<<<<
 *         parser.stream_cache = value
 *         parser.stream_cache_pos = 0
 */
        __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_4));
        __Pyx_INCREF(((PyObject *)__pyx_kp_60));
        PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_60));
        __Pyx_GIVEREF(((PyObject *)__pyx_kp_60));
        __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
        __Pyx_Raise(__pyx_t_3, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      }
      __pyx_L6:;
      goto __pyx_L5;
    }
    __pyx_L5:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":918
 *             else:
 *                 raise TypeError(u"a string value is expected")
 *         parser.stream_cache = value             # <<<<<<<<<<<<<<
 *         parser.stream_cache_pos = 0
 *         parser.stream_cache_len = PyString_GET_SIZE(value)
 */
    __Pyx_INCREF(__pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    __Pyx_GOTREF(__pyx_v_parser->stream_cache);
    __Pyx_DECREF(__pyx_v_parser->stream_cache);
    __pyx_v_parser->stream_cache = __pyx_v_value;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":919
 *                 raise TypeError(u"a string value is expected")
 *         parser.stream_cache = value
 *         parser.stream_cache_pos = 0             # <<<<<<<<<<<<<<
 *         parser.stream_cache_len = PyString_GET_SIZE(value)
 *     if (parser.stream_cache_len - parser.stream_cache_pos) < size:
 */
    __pyx_v_parser->stream_cache_pos = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":920
 *         parser.stream_cache = value
 *         parser.stream_cache_pos = 0
 *         parser.stream_cache_len = PyString_GET_SIZE(value)             # <<<<<<<<<<<<<<
 *     if (parser.stream_cache_len - parser.stream_cache_pos) < size:
 *         size = parser.stream_cache_len - parser.stream_cache_pos
 */
    __pyx_v_parser->stream_cache_len = PyString_GET_SIZE(__pyx_v_value);
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":921
 *         parser.stream_cache_pos = 0
 *         parser.stream_cache_len = PyString_GET_SIZE(value)
 *     if (parser.stream_cache_len - parser.stream_cache_pos) < size:             # <<<<<<<<<<<<<<
 *         size = parser.stream_cache_len - parser.stream_cache_pos
 *     if size > 0:
 */
  __pyx_t_1 = ((__pyx_v_parser->stream_cache_len - __pyx_v_parser->stream_cache_pos) < __pyx_v_size);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":922
 *         parser.stream_cache_len = PyString_GET_SIZE(value)
 *     if (parser.stream_cache_len - parser.stream_cache_pos) < size:
 *         size = parser.stream_cache_len - parser.stream_cache_pos             # <<<<<<<<<<<<<<
 *     if size > 0:
 *         memcpy(buffer, PyString_AS_STRING(parser.stream_cache)
 */
    __pyx_v_size = (__pyx_v_parser->stream_cache_len - __pyx_v_parser->stream_cache_pos);
    goto __pyx_L7;
  }
  __pyx_L7:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":923
 *     if (parser.stream_cache_len - parser.stream_cache_pos) < size:
 *         size = parser.stream_cache_len - parser.stream_cache_pos
 *     if size > 0:             # <<<<<<<<<<<<<<
 *         memcpy(buffer, PyString_AS_STRING(parser.stream_cache)
 *                             + parser.stream_cache_pos, size)
 */
  __pyx_t_1 = (__pyx_v_size > 0);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":925
 *     if size > 0:
 *         memcpy(buffer, PyString_AS_STRING(parser.stream_cache)
 *                             + parser.stream_cache_pos, size)             # <<<<<<<<<<<<<<
 *     read[0] = size
 *     parser.stream_cache_pos += size
 */
    memcpy(__pyx_v_buffer, (PyString_AS_STRING(__pyx_v_parser->stream_cache) + __pyx_v_parser->stream_cache_pos), __pyx_v_size);
    goto __pyx_L8;
  }
  __pyx_L8:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":926
 *         memcpy(buffer, PyString_AS_STRING(parser.stream_cache)
 *                             + parser.stream_cache_pos, size)
 *     read[0] = size             # <<<<<<<<<<<<<<
 *     parser.stream_cache_pos += size
 *     if parser.stream_cache_pos == parser.stream_cache_len:
 */
  (__pyx_v_read[0]) = __pyx_v_size;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":927
 *                             + parser.stream_cache_pos, size)
 *     read[0] = size
 *     parser.stream_cache_pos += size             # <<<<<<<<<<<<<<
 *     if parser.stream_cache_pos == parser.stream_cache_len:
 *         parser.stream_cache = None
 */
  __pyx_v_parser->stream_cache_pos += __pyx_v_size;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":928
 *     read[0] = size
 *     parser.stream_cache_pos += size
 *     if parser.stream_cache_pos == parser.stream_cache_len:             # <<<<<<<<<<<<<<
 *         parser.stream_cache = None
 *     return 1
 */
  __pyx_t_1 = (__pyx_v_parser->stream_cache_pos == __pyx_v_parser->stream_cache_len);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":929
 *     parser.stream_cache_pos += size
 *     if parser.stream_cache_pos == parser.stream_cache_len:
 *         parser.stream_cache = None             # <<<<<<<<<<<<<<
 *     return 1
 * 
 */
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF(__pyx_v_parser->stream_cache);
    __Pyx_DECREF(__pyx_v_parser->stream_cache);
    __pyx_v_parser->stream_cache = Py_None;
    goto __pyx_L9;
  }
  __pyx_L9:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":930
 *     if parser.stream_cache_pos == parser.stream_cache_len:
 *         parser.stream_cache = None
 *     return 1             # <<<<<<<<<<<<<<
 * 
 * cdef class CEmitter:
 */
  __pyx_r = 1;
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_yaml.input_handler");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF((PyObject *)__pyx_v_parser);
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":950
 *     cdef object use_encoding
 * 
 *     def __init__(self, stream, canonical=None, indent=None, width=None,             # <<<<<<<<<<<<<<
 *             allow_unicode=None, line_break=None, encoding=None,
 *             explicit_start=None, explicit_end=None, version=None, tags=None):
 */

static int __pyx_pf_5_yaml_8CEmitter___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_5_yaml_8CEmitter___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_stream = 0;
  PyObject *__pyx_v_canonical = 0;
  PyObject *__pyx_v_indent = 0;
  PyObject *__pyx_v_width = 0;
  PyObject *__pyx_v_allow_unicode = 0;
  PyObject *__pyx_v_line_break = 0;
  PyObject *__pyx_v_encoding = 0;
  PyObject *__pyx_v_explicit_start = 0;
  PyObject *__pyx_v_explicit_end = 0;
  PyObject *__pyx_v_version = 0;
  PyObject *__pyx_v_tags = 0;
  int __pyx_r;
  PyObject *__pyx_1 = 0;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  static PyObject **__pyx_pyargnames[] = {&__pyx_kp_stream,&__pyx_kp_canonical,&__pyx_kp_indent,&__pyx_kp_width,&__pyx_kp_allow_unicode,&__pyx_kp_line_break,&__pyx_kp_encoding,&__pyx_kp_explicit_start,&__pyx_kp_explicit_end,&__pyx_kp_version,&__pyx_kp_tags,0};
  __Pyx_SetupRefcountContext("__init__");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[11] = {0,0,0,0,0,0,0,0,0,0,0};
    values[1] = Py_None;
    values[2] = Py_None;
    values[3] = Py_None;
    values[4] = Py_None;
    values[5] = Py_None;
    values[6] = Py_None;
    values[7] = Py_None;
    values[8] = Py_None;
    values[9] = Py_None;
    values[10] = Py_None;
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case 11: values[10] = PyTuple_GET_ITEM(__pyx_args, 10);
      case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
      case  9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
      case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
      case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
      case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
      case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
      case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_kp_stream);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      if (kw_args > 1) {
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_canonical);
        if (unlikely(value)) { values[1] = value; kw_args--; }
      }
      case  2:
      if (kw_args > 1) {
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_indent);
        if (unlikely(value)) { values[2] = value; kw_args--; }
      }
      case  3:
      if (kw_args > 1) {
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_width);
        if (unlikely(value)) { values[3] = value; kw_args--; }
      }
      case  4:
      if (kw_args > 1) {
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_allow_unicode);
        if (unlikely(value)) { values[4] = value; kw_args--; }
      }
      case  5:
      if (kw_args > 1) {
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_line_break);
        if (unlikely(value)) { values[5] = value; kw_args--; }
      }
      case  6:
      if (kw_args > 1) {
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_encoding);
        if (unlikely(value)) { values[6] = value; kw_args--; }
      }
      case  7:
      if (kw_args > 1) {
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_explicit_start);
        if (unlikely(value)) { values[7] = value; kw_args--; }
      }
      case  8:
      if (kw_args > 1) {
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_explicit_end);
        if (unlikely(value)) { values[8] = value; kw_args--; }
      }
      case  9:
      if (kw_args > 1) {
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_version);
        if (unlikely(value)) { values[9] = value; kw_args--; }
      }
      case 10:
      if (kw_args > 1) {
        PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_kp_tags);
        if (unlikely(value)) { values[10] = value; kw_args--; }
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 950; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_stream = values[0];
    __pyx_v_canonical = values[1];
    __pyx_v_indent = values[2];
    __pyx_v_width = values[3];
    __pyx_v_allow_unicode = values[4];
    __pyx_v_line_break = values[5];
    __pyx_v_encoding = values[6];
    __pyx_v_explicit_start = values[7];
    __pyx_v_explicit_end = values[8];
    __pyx_v_version = values[9];
    __pyx_v_tags = values[10];
  } else {
    __pyx_v_canonical = Py_None;
    __pyx_v_indent = Py_None;
    __pyx_v_width = Py_None;
    __pyx_v_allow_unicode = Py_None;
    __pyx_v_line_break = Py_None;
    __pyx_v_encoding = Py_None;
    __pyx_v_explicit_start = Py_None;
    __pyx_v_explicit_end = Py_None;
    __pyx_v_version = Py_None;
    __pyx_v_tags = Py_None;
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case 11: __pyx_v_tags = PyTuple_GET_ITEM(__pyx_args, 10);
      case 10: __pyx_v_version = PyTuple_GET_ITEM(__pyx_args, 9);
      case  9: __pyx_v_explicit_end = PyTuple_GET_ITEM(__pyx_args, 8);
      case  8: __pyx_v_explicit_start = PyTuple_GET_ITEM(__pyx_args, 7);
      case  7: __pyx_v_encoding = PyTuple_GET_ITEM(__pyx_args, 6);
      case  6: __pyx_v_line_break = PyTuple_GET_ITEM(__pyx_args, 5);
      case  5: __pyx_v_allow_unicode = PyTuple_GET_ITEM(__pyx_args, 4);
      case  4: __pyx_v_width = PyTuple_GET_ITEM(__pyx_args, 3);
      case  3: __pyx_v_indent = PyTuple_GET_ITEM(__pyx_args, 2);
      case  2: __pyx_v_canonical = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: __pyx_v_stream = PyTuple_GET_ITEM(__pyx_args, 0);
      break;
      default: goto __pyx_L5_argtuple_error;
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 11, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 950; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("_yaml.CEmitter.__init__");
  return -1;
  __pyx_L4_argument_unpacking_done:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":953
 *             allow_unicode=None, line_break=None, encoding=None,
 *             explicit_start=None, explicit_end=None, version=None, tags=None):
 *         if yaml_emitter_initialize(&self.emitter) == 0:             # <<<<<<<<<<<<<<
 *             raise MemoryError
 *         self.stream = stream
 */
  __pyx_t_1 = (yaml_emitter_initialize((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter)) == 0);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":954
 *             explicit_start=None, explicit_end=None, version=None, tags=None):
 *         if yaml_emitter_initialize(&self.emitter) == 0:
 *             raise MemoryError             # <<<<<<<<<<<<<<
 *         self.stream = stream
 *         self.dump_unicode = 0
 */
    __Pyx_Raise(__pyx_builtin_MemoryError, 0, 0);
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L6;
  }
  __pyx_L6:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":955
 *         if yaml_emitter_initialize(&self.emitter) == 0:
 *             raise MemoryError
 *         self.stream = stream             # <<<<<<<<<<<<<<
 *         self.dump_unicode = 0
 *         if PY_MAJOR_VERSION < 3:
 */
  __Pyx_INCREF(__pyx_v_stream);
  __Pyx_GIVEREF(__pyx_v_stream);
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->stream);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->stream);
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->stream = __pyx_v_stream;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":956
 *             raise MemoryError
 *         self.stream = stream
 *         self.dump_unicode = 0             # <<<<<<<<<<<<<<
 *         if PY_MAJOR_VERSION < 3:
 *             if getattr3(stream, 'encoding', None):
 */
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->dump_unicode = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":957
 *         self.stream = stream
 *         self.dump_unicode = 0
 *         if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *             if getattr3(stream, 'encoding', None):
 *                 self.dump_unicode = 1
 */
  __pyx_t_1 = (PY_MAJOR_VERSION < 3);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":958
 *         self.dump_unicode = 0
 *         if PY_MAJOR_VERSION < 3:
 *             if getattr3(stream, 'encoding', None):             # <<<<<<<<<<<<<<
 *                 self.dump_unicode = 1
 *         else:
 */
    __pyx_t_2 = __Pyx_GetAttr3(__pyx_v_stream, __pyx_kp_61, Py_None); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 958; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 958; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":959
 *         if PY_MAJOR_VERSION < 3:
 *             if getattr3(stream, 'encoding', None):
 *                 self.dump_unicode = 1             # <<<<<<<<<<<<<<
 *         else:
 *             if hasattr(stream, u'encoding'):
 */
      ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->dump_unicode = 1;
      goto __pyx_L8;
    }
    __pyx_L8:;
    goto __pyx_L7;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":961
 *                 self.dump_unicode = 1
 *         else:
 *             if hasattr(stream, u'encoding'):             # <<<<<<<<<<<<<<
 *                 self.dump_unicode = 1
 *         self.use_encoding = encoding
 */
    __pyx_t_1 = PyObject_HasAttr(__pyx_v_stream, ((PyObject *)__pyx_kp_62)); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 961; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":962
 *         else:
 *             if hasattr(stream, u'encoding'):
 *                 self.dump_unicode = 1             # <<<<<<<<<<<<<<
 *         self.use_encoding = encoding
 *         yaml_emitter_set_output(&self.emitter, output_handler, <void *>self)
 */
      ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->dump_unicode = 1;
      goto __pyx_L9;
    }
    __pyx_L9:;
  }
  __pyx_L7:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":963
 *             if hasattr(stream, u'encoding'):
 *                 self.dump_unicode = 1
 *         self.use_encoding = encoding             # <<<<<<<<<<<<<<
 *         yaml_emitter_set_output(&self.emitter, output_handler, <void *>self)
 *         if canonical:
 */
  __Pyx_INCREF(__pyx_v_encoding);
  __Pyx_GIVEREF(__pyx_v_encoding);
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_encoding);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_encoding);
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_encoding = __pyx_v_encoding;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":964
 *                 self.dump_unicode = 1
 *         self.use_encoding = encoding
 *         yaml_emitter_set_output(&self.emitter, output_handler, <void *>self)             # <<<<<<<<<<<<<<
 *         if canonical:
 *             yaml_emitter_set_canonical(&self.emitter, 1)
 */
  yaml_emitter_set_output((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter), __pyx_f_5_yaml_output_handler, ((void *)__pyx_v_self));

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":965
 *         self.use_encoding = encoding
 *         yaml_emitter_set_output(&self.emitter, output_handler, <void *>self)
 *         if canonical:             # <<<<<<<<<<<<<<
 *             yaml_emitter_set_canonical(&self.emitter, 1)
 *         if indent is not None:
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_canonical); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 965; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":966
 *         yaml_emitter_set_output(&self.emitter, output_handler, <void *>self)
 *         if canonical:
 *             yaml_emitter_set_canonical(&self.emitter, 1)             # <<<<<<<<<<<<<<
 *         if indent is not None:
 *             yaml_emitter_set_indent(&self.emitter, indent)
 */
    yaml_emitter_set_canonical((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter), 1);
    goto __pyx_L10;
  }
  __pyx_L10:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":967
 *         if canonical:
 *             yaml_emitter_set_canonical(&self.emitter, 1)
 *         if indent is not None:             # <<<<<<<<<<<<<<
 *             yaml_emitter_set_indent(&self.emitter, indent)
 *         if width is not None:
 */
  __pyx_t_1 = (__pyx_v_indent != Py_None);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":968
 *             yaml_emitter_set_canonical(&self.emitter, 1)
 *         if indent is not None:
 *             yaml_emitter_set_indent(&self.emitter, indent)             # <<<<<<<<<<<<<<
 *         if width is not None:
 *             yaml_emitter_set_width(&self.emitter, width)
 */
    __pyx_t_3 = __Pyx_PyInt_AsInt(__pyx_v_indent); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    yaml_emitter_set_indent((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter), __pyx_t_3);
    goto __pyx_L11;
  }
  __pyx_L11:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":969
 *         if indent is not None:
 *             yaml_emitter_set_indent(&self.emitter, indent)
 *         if width is not None:             # <<<<<<<<<<<<<<
 *             yaml_emitter_set_width(&self.emitter, width)
 *         if allow_unicode:
 */
  __pyx_t_1 = (__pyx_v_width != Py_None);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":970
 *             yaml_emitter_set_indent(&self.emitter, indent)
 *         if width is not None:
 *             yaml_emitter_set_width(&self.emitter, width)             # <<<<<<<<<<<<<<
 *         if allow_unicode:
 *             yaml_emitter_set_unicode(&self.emitter, 1)
 */
    __pyx_t_3 = __Pyx_PyInt_AsInt(__pyx_v_width); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 970; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    yaml_emitter_set_width((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter), __pyx_t_3);
    goto __pyx_L12;
  }
  __pyx_L12:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":971
 *         if width is not None:
 *             yaml_emitter_set_width(&self.emitter, width)
 *         if allow_unicode:             # <<<<<<<<<<<<<<
 *             yaml_emitter_set_unicode(&self.emitter, 1)
 *         if line_break is not None:
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_allow_unicode); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":972
 *             yaml_emitter_set_width(&self.emitter, width)
 *         if allow_unicode:
 *             yaml_emitter_set_unicode(&self.emitter, 1)             # <<<<<<<<<<<<<<
 *         if line_break is not None:
 *             if line_break == '\r':
 */
    yaml_emitter_set_unicode((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter), 1);
    goto __pyx_L13;
  }
  __pyx_L13:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":973
 *         if allow_unicode:
 *             yaml_emitter_set_unicode(&self.emitter, 1)
 *         if line_break is not None:             # <<<<<<<<<<<<<<
 *             if line_break == '\r':
 *                 yaml_emitter_set_break(&self.emitter, YAML_CR_BREAK)
 */
  __pyx_t_1 = (__pyx_v_line_break != Py_None);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":974
 *             yaml_emitter_set_unicode(&self.emitter, 1)
 *         if line_break is not None:
 *             if line_break == '\r':             # <<<<<<<<<<<<<<
 *                 yaml_emitter_set_break(&self.emitter, YAML_CR_BREAK)
 *             elif line_break == '\n':
 */
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_line_break, __pyx_kp_63, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 974; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 974; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":975
 *         if line_break is not None:
 *             if line_break == '\r':
 *                 yaml_emitter_set_break(&self.emitter, YAML_CR_BREAK)             # <<<<<<<<<<<<<<
 *             elif line_break == '\n':
 *                 yaml_emitter_set_break(&self.emitter, YAML_LN_BREAK)
 */
      yaml_emitter_set_break((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter), YAML_CR_BREAK);
      goto __pyx_L15;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":976
 *             if line_break == '\r':
 *                 yaml_emitter_set_break(&self.emitter, YAML_CR_BREAK)
 *             elif line_break == '\n':             # <<<<<<<<<<<<<<
 *                 yaml_emitter_set_break(&self.emitter, YAML_LN_BREAK)
 *             elif line_break == '\r\n':
 */
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_line_break, __pyx_kp_64, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 976; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 976; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":977
 *                 yaml_emitter_set_break(&self.emitter, YAML_CR_BREAK)
 *             elif line_break == '\n':
 *                 yaml_emitter_set_break(&self.emitter, YAML_LN_BREAK)             # <<<<<<<<<<<<<<
 *             elif line_break == '\r\n':
 *                 yaml_emitter_set_break(&self.emitter, YAML_CRLN_BREAK)
 */
      yaml_emitter_set_break((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter), YAML_LN_BREAK);
      goto __pyx_L15;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":978
 *             elif line_break == '\n':
 *                 yaml_emitter_set_break(&self.emitter, YAML_LN_BREAK)
 *             elif line_break == '\r\n':             # <<<<<<<<<<<<<<
 *                 yaml_emitter_set_break(&self.emitter, YAML_CRLN_BREAK)
 *         self.document_start_implicit = 1
 */
    __pyx_t_2 = PyObject_RichCompare(__pyx_v_line_break, __pyx_kp_65, Py_EQ); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":979
 *                 yaml_emitter_set_break(&self.emitter, YAML_LN_BREAK)
 *             elif line_break == '\r\n':
 *                 yaml_emitter_set_break(&self.emitter, YAML_CRLN_BREAK)             # <<<<<<<<<<<<<<
 *         self.document_start_implicit = 1
 *         if explicit_start:
 */
      yaml_emitter_set_break((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter), YAML_CRLN_BREAK);
      goto __pyx_L15;
    }
    __pyx_L15:;
    goto __pyx_L14;
  }
  __pyx_L14:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":980
 *             elif line_break == '\r\n':
 *                 yaml_emitter_set_break(&self.emitter, YAML_CRLN_BREAK)
 *         self.document_start_implicit = 1             # <<<<<<<<<<<<<<
 *         if explicit_start:
 *             self.document_start_implicit = 0
 */
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->document_start_implicit = 1;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":981
 *                 yaml_emitter_set_break(&self.emitter, YAML_CRLN_BREAK)
 *         self.document_start_implicit = 1
 *         if explicit_start:             # <<<<<<<<<<<<<<
 *             self.document_start_implicit = 0
 *         self.document_end_implicit = 1
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_explicit_start); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 981; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":982
 *         self.document_start_implicit = 1
 *         if explicit_start:
 *             self.document_start_implicit = 0             # <<<<<<<<<<<<<<
 *         self.document_end_implicit = 1
 *         if explicit_end:
 */
    ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->document_start_implicit = 0;
    goto __pyx_L16;
  }
  __pyx_L16:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":983
 *         if explicit_start:
 *             self.document_start_implicit = 0
 *         self.document_end_implicit = 1             # <<<<<<<<<<<<<<
 *         if explicit_end:
 *             self.document_end_implicit = 0
 */
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->document_end_implicit = 1;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":984
 *             self.document_start_implicit = 0
 *         self.document_end_implicit = 1
 *         if explicit_end:             # <<<<<<<<<<<<<<
 *             self.document_end_implicit = 0
 *         self.use_version = version
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_explicit_end); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 984; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":985
 *         self.document_end_implicit = 1
 *         if explicit_end:
 *             self.document_end_implicit = 0             # <<<<<<<<<<<<<<
 *         self.use_version = version
 *         self.use_tags = tags
 */
    ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->document_end_implicit = 0;
    goto __pyx_L17;
  }
  __pyx_L17:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":986
 *         if explicit_end:
 *             self.document_end_implicit = 0
 *         self.use_version = version             # <<<<<<<<<<<<<<
 *         self.use_tags = tags
 *         self.serialized_nodes = {}
 */
  __Pyx_INCREF(__pyx_v_version);
  __Pyx_GIVEREF(__pyx_v_version);
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_version);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_version);
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_version = __pyx_v_version;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":987
 *             self.document_end_implicit = 0
 *         self.use_version = version
 *         self.use_tags = tags             # <<<<<<<<<<<<<<
 *         self.serialized_nodes = {}
 *         self.anchors = {}
 */
  __Pyx_INCREF(__pyx_v_tags);
  __Pyx_GIVEREF(__pyx_v_tags);
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags);
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags = __pyx_v_tags;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":988
 *         self.use_version = version
 *         self.use_tags = tags
 *         self.serialized_nodes = {}             # <<<<<<<<<<<<<<
 *         self.anchors = {}
 *         self.last_alias_id = 0
 */
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_1));
  __Pyx_GIVEREF(((PyObject *)__pyx_1));
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->serialized_nodes);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->serialized_nodes);
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->serialized_nodes = ((PyObject *)__pyx_1);
  __pyx_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":989
 *         self.use_tags = tags
 *         self.serialized_nodes = {}
 *         self.anchors = {}             # <<<<<<<<<<<<<<
 *         self.last_alias_id = 0
 *         self.closed = -1
 */
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 989; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_1));
  __Pyx_GIVEREF(((PyObject *)__pyx_1));
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->anchors);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->anchors);
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->anchors = ((PyObject *)__pyx_1);
  __pyx_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":990
 *         self.serialized_nodes = {}
 *         self.anchors = {}
 *         self.last_alias_id = 0             # <<<<<<<<<<<<<<
 *         self.closed = -1
 * 
 */
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->last_alias_id = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":991
 *         self.anchors = {}
 *         self.last_alias_id = 0
 *         self.closed = -1             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed = -1;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("_yaml.CEmitter.__init__");
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":993
 *         self.closed = -1
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         yaml_emitter_delete(&self.emitter)
 * 
 */

static void __pyx_pf_5_yaml_8CEmitter___dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pf_5_yaml_8CEmitter___dealloc__(PyObject *__pyx_v_self) {
  __Pyx_SetupRefcountContext("__dealloc__");

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":994
 * 
 *     def __dealloc__(self):
 *         yaml_emitter_delete(&self.emitter)             # <<<<<<<<<<<<<<
 * 
 *     cdef object _emitter_error(self):
 */
  yaml_emitter_delete((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter));

  __Pyx_FinishRefcountContext();
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":996
 *         yaml_emitter_delete(&self.emitter)
 * 
 *     cdef object _emitter_error(self):             # <<<<<<<<<<<<<<
 *         if self.emitter.error == YAML_MEMORY_ERROR:
 *             return MemoryError
 */

static  PyObject *__pyx_f_5_yaml_8CEmitter__emitter_error(struct __pyx_obj_5_yaml_CEmitter *__pyx_v_self) {
  PyObject *__pyx_v_problem;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_1 = 0;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_SetupRefcountContext("_emitter_error");
  __pyx_v_problem = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":997
 * 
 *     cdef object _emitter_error(self):
 *         if self.emitter.error == YAML_MEMORY_ERROR:             # <<<<<<<<<<<<<<
 *             return MemoryError
 *         elif self.emitter.error == YAML_EMITTER_ERROR:
 */
  __pyx_t_1 = (__pyx_v_self->emitter.error == YAML_MEMORY_ERROR);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":998
 *     cdef object _emitter_error(self):
 *         if self.emitter.error == YAML_MEMORY_ERROR:
 *             return MemoryError             # <<<<<<<<<<<<<<
 *         elif self.emitter.error == YAML_EMITTER_ERROR:
 *             if PY_MAJOR_VERSION < 3:
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_builtin_MemoryError);
    __pyx_r = __pyx_builtin_MemoryError;
    goto __pyx_L0;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":999
 *         if self.emitter.error == YAML_MEMORY_ERROR:
 *             return MemoryError
 *         elif self.emitter.error == YAML_EMITTER_ERROR:             # <<<<<<<<<<<<<<
 *             if PY_MAJOR_VERSION < 3:
 *                 problem = self.emitter.problem
 */
  __pyx_t_1 = (__pyx_v_self->emitter.error == YAML_EMITTER_ERROR);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1000
 *             return MemoryError
 *         elif self.emitter.error == YAML_EMITTER_ERROR:
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 problem = self.emitter.problem
 *             else:
 */
    __pyx_t_1 = (PY_MAJOR_VERSION < 3);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1001
 *         elif self.emitter.error == YAML_EMITTER_ERROR:
 *             if PY_MAJOR_VERSION < 3:
 *                 problem = self.emitter.problem             # <<<<<<<<<<<<<<
 *             else:
 *                 problem = PyUnicode_FromString(self.emitter.problem)
 */
      __pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_self->emitter.problem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_v_problem);
      __pyx_v_problem = __pyx_t_2;
      __pyx_t_2 = 0;
      goto __pyx_L4;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1003
 *                 problem = self.emitter.problem
 *             else:
 *                 problem = PyUnicode_FromString(self.emitter.problem)             # <<<<<<<<<<<<<<
 *             return EmitterError(problem)
 *         if PY_MAJOR_VERSION < 3:
 */
      __pyx_t_2 = PyUnicode_FromString(__pyx_v_self->emitter.problem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1003; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_v_problem);
      __pyx_v_problem = __pyx_t_2;
      __pyx_t_2 = 0;
    }
    __pyx_L4:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1004
 *             else:
 *                 problem = PyUnicode_FromString(self.emitter.problem)
 *             return EmitterError(problem)             # <<<<<<<<<<<<<<
 *         if PY_MAJOR_VERSION < 3:
 *             raise ValueError("no emitter error")
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_EmitterError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1004; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1004; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_INCREF(__pyx_v_problem);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_problem);
    __Pyx_GIVEREF(__pyx_v_problem);
    __pyx_t_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1004; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1005
 *                 problem = PyUnicode_FromString(self.emitter.problem)
 *             return EmitterError(problem)
 *         if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *             raise ValueError("no emitter error")
 *         else:
 */
  __pyx_t_1 = (PY_MAJOR_VERSION < 3);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1006
 *             return EmitterError(problem)
 *         if PY_MAJOR_VERSION < 3:
 *             raise ValueError("no emitter error")             # <<<<<<<<<<<<<<
 *         else:
 *             raise ValueError(u"no emitter error")
 */
    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1006; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_INCREF(__pyx_kp_66);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_66);
    __Pyx_GIVEREF(__pyx_kp_66);
    __pyx_t_2 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1006; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    __Pyx_Raise(__pyx_t_2, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1006; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L5;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1008
 *             raise ValueError("no emitter error")
 *         else:
 *             raise ValueError(u"no emitter error")             # <<<<<<<<<<<<<<
 * 
 *     cdef int _object_to_event(self, object event_object, yaml_event_t *event) except 0:
 */
    __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_INCREF(((PyObject *)__pyx_kp_67));
    PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_67));
    __Pyx_GIVEREF(((PyObject *)__pyx_kp_67));
    __pyx_t_3 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    __Pyx_Raise(__pyx_t_3, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __pyx_L5:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CEmitter._emitter_error");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_problem);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1010
 *             raise ValueError(u"no emitter error")
 * 
 *     cdef int _object_to_event(self, object event_object, yaml_event_t *event) except 0:             # <<<<<<<<<<<<<<
 *         cdef yaml_encoding_t encoding
 *         cdef yaml_version_directive_t version_directive_value
 */

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) {
  yaml_encoding_t __pyx_v_encoding;
  yaml_version_directive_t __pyx_v_version_directive_value;
  yaml_version_directive_t *__pyx_v_version_directive;
  yaml_tag_directive_t __pyx_v_tag_directives_value[128];
  yaml_tag_directive_t *__pyx_v_tag_directives_start;
  yaml_tag_directive_t *__pyx_v_tag_directives_end;
  int __pyx_v_implicit;
  int __pyx_v_plain_implicit;
  int __pyx_v_quoted_implicit;
  char *__pyx_v_anchor;
  char *__pyx_v_tag;
  char *__pyx_v_value;
  int __pyx_v_length;
  yaml_scalar_style_t __pyx_v_scalar_style;
  yaml_sequence_style_t __pyx_v_sequence_style;
  yaml_mapping_style_t __pyx_v_mapping_style;
  PyObject *__pyx_v_event_class;
  PyObject *__pyx_v_cache;
  PyObject *__pyx_v_handle;
  PyObject *__pyx_v_prefix;
  PyObject *__pyx_v_anchor_object;
  PyObject *__pyx_v_tag_object;
  PyObject *__pyx_v_value_object;
  PyObject *__pyx_v_style_object;
  int __pyx_r;
  PyObject *__pyx_1 = 0;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  Py_ssize_t __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  __Pyx_SetupRefcountContext("_object_to_event");
  __pyx_v_event_class = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_cache = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_handle = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_prefix = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_anchor_object = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_tag_object = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_value_object = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_style_object = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1027
 *         cdef yaml_sequence_style_t sequence_style
 *         cdef yaml_mapping_style_t mapping_style
 *         event_class = event_object.__class__             # <<<<<<<<<<<<<<
 *         if event_class is StreamStartEvent:
 *             encoding = YAML_UTF8_ENCODING
 */
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp___class__); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_v_event_class);
  __pyx_v_event_class = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1028
 *         cdef yaml_mapping_style_t mapping_style
 *         event_class = event_object.__class__
 *         if event_class is StreamStartEvent:             # <<<<<<<<<<<<<<
 *             encoding = YAML_UTF8_ENCODING
 *             if event_object.encoding == u'utf-16-le' or event_object.encoding == 'utf-16-le':
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_StreamStartEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1028; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = (__pyx_v_event_class == __pyx_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1029
 *         event_class = event_object.__class__
 *         if event_class is StreamStartEvent:
 *             encoding = YAML_UTF8_ENCODING             # <<<<<<<<<<<<<<
 *             if event_object.encoding == u'utf-16-le' or event_object.encoding == 'utf-16-le':
 *                 encoding = YAML_UTF16LE_ENCODING
 */
    __pyx_v_encoding = YAML_UTF8_ENCODING;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1030
 *         if event_class is StreamStartEvent:
 *             encoding = YAML_UTF8_ENCODING
 *             if event_object.encoding == u'utf-16-le' or event_object.encoding == 'utf-16-le':             # <<<<<<<<<<<<<<
 *                 encoding = YAML_UTF16LE_ENCODING
 *             elif event_object.encoding == u'utf-16-be' or event_object.encoding == 'utf-16-be':
 */
    __pyx_t_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_encoding); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1030; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, ((PyObject *)__pyx_kp_68), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1030; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1030; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (!__pyx_t_2) {
      __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_encoding); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1030; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_1 = PyObject_RichCompare(__pyx_t_3, __pyx_kp_69, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1030; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1030; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_5 = __pyx_t_4;
    } else {
      __pyx_t_5 = __pyx_t_2;
    }
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1031
 *             encoding = YAML_UTF8_ENCODING
 *             if event_object.encoding == u'utf-16-le' or event_object.encoding == 'utf-16-le':
 *                 encoding = YAML_UTF16LE_ENCODING             # <<<<<<<<<<<<<<
 *             elif event_object.encoding == u'utf-16-be' or event_object.encoding == 'utf-16-be':
 *                 encoding = YAML_UTF16BE_ENCODING
 */
      __pyx_v_encoding = YAML_UTF16LE_ENCODING;
      goto __pyx_L4;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1032
 *             if event_object.encoding == u'utf-16-le' or event_object.encoding == 'utf-16-le':
 *                 encoding = YAML_UTF16LE_ENCODING
 *             elif event_object.encoding == u'utf-16-be' or event_object.encoding == 'utf-16-be':             # <<<<<<<<<<<<<<
 *                 encoding = YAML_UTF16BE_ENCODING
 *             if event_object.encoding is None:
 */
    __pyx_t_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_encoding); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1032; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, ((PyObject *)__pyx_kp_70), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1032; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1032; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (!__pyx_t_5) {
      __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_encoding); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1032; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_1 = PyObject_RichCompare(__pyx_t_3, __pyx_kp_71, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1032; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1032; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_4 = __pyx_t_2;
    } else {
      __pyx_t_4 = __pyx_t_5;
    }
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1033
 *                 encoding = YAML_UTF16LE_ENCODING
 *             elif event_object.encoding == u'utf-16-be' or event_object.encoding == 'utf-16-be':
 *                 encoding = YAML_UTF16BE_ENCODING             # <<<<<<<<<<<<<<
 *             if event_object.encoding is None:
 *                 self.dump_unicode = 1
 */
      __pyx_v_encoding = YAML_UTF16BE_ENCODING;
      goto __pyx_L4;
    }
    __pyx_L4:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1034
 *             elif event_object.encoding == u'utf-16-be' or event_object.encoding == 'utf-16-be':
 *                 encoding = YAML_UTF16BE_ENCODING
 *             if event_object.encoding is None:             # <<<<<<<<<<<<<<
 *                 self.dump_unicode = 1
 *             if self.dump_unicode == 1:
 */
    __pyx_t_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_encoding); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1034; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = (__pyx_t_1 == Py_None);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1035
 *                 encoding = YAML_UTF16BE_ENCODING
 *             if event_object.encoding is None:
 *                 self.dump_unicode = 1             # <<<<<<<<<<<<<<
 *             if self.dump_unicode == 1:
 *                 encoding = YAML_UTF8_ENCODING
 */
      __pyx_v_self->dump_unicode = 1;
      goto __pyx_L5;
    }
    __pyx_L5:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1036
 *             if event_object.encoding is None:
 *                 self.dump_unicode = 1
 *             if self.dump_unicode == 1:             # <<<<<<<<<<<<<<
 *                 encoding = YAML_UTF8_ENCODING
 *             yaml_stream_start_event_initialize(event, encoding)
 */
    __pyx_t_4 = (__pyx_v_self->dump_unicode == 1);
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1037
 *                 self.dump_unicode = 1
 *             if self.dump_unicode == 1:
 *                 encoding = YAML_UTF8_ENCODING             # <<<<<<<<<<<<<<
 *             yaml_stream_start_event_initialize(event, encoding)
 *         elif event_class is StreamEndEvent:
 */
      __pyx_v_encoding = YAML_UTF8_ENCODING;
      goto __pyx_L6;
    }
    __pyx_L6:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1038
 *             if self.dump_unicode == 1:
 *                 encoding = YAML_UTF8_ENCODING
 *             yaml_stream_start_event_initialize(event, encoding)             # <<<<<<<<<<<<<<
 *         elif event_class is StreamEndEvent:
 *             yaml_stream_end_event_initialize(event)
 */
    yaml_stream_start_event_initialize(__pyx_v_event, __pyx_v_encoding);
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1039
 *                 encoding = YAML_UTF8_ENCODING
 *             yaml_stream_start_event_initialize(event, encoding)
 *         elif event_class is StreamEndEvent:             # <<<<<<<<<<<<<<
 *             yaml_stream_end_event_initialize(event)
 *         elif event_class is DocumentStartEvent:
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_StreamEndEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1039; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_4 = (__pyx_v_event_class == __pyx_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  if (__pyx_t_4) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1040
 *             yaml_stream_start_event_initialize(event, encoding)
 *         elif event_class is StreamEndEvent:
 *             yaml_stream_end_event_initialize(event)             # <<<<<<<<<<<<<<
 *         elif event_class is DocumentStartEvent:
 *             version_directive = NULL
 */
    yaml_stream_end_event_initialize(__pyx_v_event);
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1041
 *         elif event_class is StreamEndEvent:
 *             yaml_stream_end_event_initialize(event)
 *         elif event_class is DocumentStartEvent:             # <<<<<<<<<<<<<<
 *             version_directive = NULL
 *             if event_object.version:
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_DocumentStartEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1041; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_4 = (__pyx_v_event_class == __pyx_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  if (__pyx_t_4) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1042
 *             yaml_stream_end_event_initialize(event)
 *         elif event_class is DocumentStartEvent:
 *             version_directive = NULL             # <<<<<<<<<<<<<<
 *             if event_object.version:
 *                 version_directive_value.major = event_object.version[0]
 */
    __pyx_v_version_directive = NULL;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1043
 *         elif event_class is DocumentStartEvent:
 *             version_directive = NULL
 *             if event_object.version:             # <<<<<<<<<<<<<<
 *                 version_directive_value.major = event_object.version[0]
 *                 version_directive_value.minor = event_object.version[1]
 */
    __pyx_t_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_version); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1043; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1043; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1044
 *             version_directive = NULL
 *             if event_object.version:
 *                 version_directive_value.major = event_object.version[0]             # <<<<<<<<<<<<<<
 *                 version_directive_value.minor = event_object.version[1]
 *                 version_directive = &version_directive_value
 */
      __pyx_t_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_version); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1044; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_1 = __Pyx_GetItemInt(__pyx_t_1, 0, sizeof(long), PyInt_FromLong); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1044; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_6 = __Pyx_PyInt_AsInt(__pyx_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1044; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __pyx_v_version_directive_value.major = __pyx_t_6;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1045
 *             if event_object.version:
 *                 version_directive_value.major = event_object.version[0]
 *                 version_directive_value.minor = event_object.version[1]             # <<<<<<<<<<<<<<
 *                 version_directive = &version_directive_value
 *             tag_directives_start = NULL
 */
      __pyx_t_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_version); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1045; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_1 = __Pyx_GetItemInt(__pyx_t_1, 1, sizeof(long), PyInt_FromLong); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1045; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_6 = __Pyx_PyInt_AsInt(__pyx_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1045; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __pyx_v_version_directive_value.minor = __pyx_t_6;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1046
 *                 version_directive_value.major = event_object.version[0]
 *                 version_directive_value.minor = event_object.version[1]
 *                 version_directive = &version_directive_value             # <<<<<<<<<<<<<<
 *             tag_directives_start = NULL
 *             tag_directives_end = NULL
 */
      __pyx_v_version_directive = (&__pyx_v_version_directive_value);
      goto __pyx_L7;
    }
    __pyx_L7:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1047
 *                 version_directive_value.minor = event_object.version[1]
 *                 version_directive = &version_directive_value
 *             tag_directives_start = NULL             # <<<<<<<<<<<<<<
 *             tag_directives_end = NULL
 *             if event_object.tags:
 */
    __pyx_v_tag_directives_start = NULL;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1048
 *                 version_directive = &version_directive_value
 *             tag_directives_start = NULL
 *             tag_directives_end = NULL             # <<<<<<<<<<<<<<
 *             if event_object.tags:
 *                 if len(event_object.tags) > 128:
 */
    __pyx_v_tag_directives_end = NULL;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1049
 *             tag_directives_start = NULL
 *             tag_directives_end = NULL
 *             if event_object.tags:             # <<<<<<<<<<<<<<
 *                 if len(event_object.tags) > 128:
 *                     if PY_MAJOR_VERSION < 3:
 */
    __pyx_t_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_tags); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1049; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1049; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1050
 *             tag_directives_end = NULL
 *             if event_object.tags:
 *                 if len(event_object.tags) > 128:             # <<<<<<<<<<<<<<
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise ValueError("too many tags")
 */
      __pyx_t_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_tags); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1050; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_7 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_7 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1050; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_4 = (__pyx_t_7 > 128);
      if (__pyx_t_4) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1051
 *             if event_object.tags:
 *                 if len(event_object.tags) > 128:
 *                     if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                         raise ValueError("too many tags")
 *                     else:
 */
        __pyx_t_4 = (PY_MAJOR_VERSION < 3);
        if (__pyx_t_4) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1052
 *                 if len(event_object.tags) > 128:
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise ValueError("too many tags")             # <<<<<<<<<<<<<<
 *                     else:
 *                         raise ValueError(u"too many tags")
 */
          __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1052; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_1));
          __Pyx_INCREF(__pyx_kp_72);
          PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_72);
          __Pyx_GIVEREF(__pyx_kp_72);
          __pyx_t_3 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1052; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
          __Pyx_Raise(__pyx_t_3, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1052; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          goto __pyx_L10;
        }
        /*else*/ {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1054
 *                         raise ValueError("too many tags")
 *                     else:
 *                         raise ValueError(u"too many tags")             # <<<<<<<<<<<<<<
 *                 tag_directives_start = tag_directives_value
 *                 tag_directives_end = tag_directives_value
 */
          __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1054; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_3));
          __Pyx_INCREF(((PyObject *)__pyx_kp_73));
          PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_73));
          __Pyx_GIVEREF(((PyObject *)__pyx_kp_73));
          __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1054; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
          __Pyx_Raise(__pyx_t_1, 0, 0);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1054; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        }
        __pyx_L10:;
        goto __pyx_L9;
      }
      __pyx_L9:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1055
 *                     else:
 *                         raise ValueError(u"too many tags")
 *                 tag_directives_start = tag_directives_value             # <<<<<<<<<<<<<<
 *                 tag_directives_end = tag_directives_value
 *                 cache = []
 */
      __pyx_v_tag_directives_start = __pyx_v_tag_directives_value;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1056
 *                         raise ValueError(u"too many tags")
 *                 tag_directives_start = tag_directives_value
 *                 tag_directives_end = tag_directives_value             # <<<<<<<<<<<<<<
 *                 cache = []
 *                 for handle in event_object.tags:
 */
      __pyx_v_tag_directives_end = __pyx_v_tag_directives_value;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1057
 *                 tag_directives_start = tag_directives_value
 *                 tag_directives_end = tag_directives_value
 *                 cache = []             # <<<<<<<<<<<<<<
 *                 for handle in event_object.tags:
 *                     prefix = event_object.tags[handle]
 */
      __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1057; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_1));
      __Pyx_DECREF(__pyx_v_cache);
      __pyx_v_cache = ((PyObject *)__pyx_t_1);
      __pyx_t_1 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1058
 *                 tag_directives_end = tag_directives_value
 *                 cache = []
 *                 for handle in event_object.tags:             # <<<<<<<<<<<<<<
 *                     prefix = event_object.tags[handle]
 *                     if PyUnicode_CheckExact(handle):
 */
      __pyx_t_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_tags); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1058; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      if (PyList_CheckExact(__pyx_t_1) || PyTuple_CheckExact(__pyx_t_1)) {
        __pyx_t_7 = 0; __pyx_t_3 = __pyx_t_1; __Pyx_INCREF(__pyx_t_3);
      } else {
        __pyx_t_7 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1058; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      for (;;) {
        if (likely(PyList_CheckExact(__pyx_t_3))) {
          if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_3)) break;
          __pyx_t_1 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++;
        } else if (likely(PyTuple_CheckExact(__pyx_t_3))) {
          if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
          __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++;
        } else {
          __pyx_t_1 = PyIter_Next(__pyx_t_3);
          if (!__pyx_t_1) {
            if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1058; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            break;
          }
          __Pyx_GOTREF(__pyx_t_1);
        }
        __Pyx_DECREF(__pyx_v_handle);
        __pyx_v_handle = __pyx_t_1;
        __pyx_t_1 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1059
 *                 cache = []
 *                 for handle in event_object.tags:
 *                     prefix = event_object.tags[handle]             # <<<<<<<<<<<<<<
 *                     if PyUnicode_CheckExact(handle):
 *                         handle = PyUnicode_AsUTF8String(handle)
 */
        __pyx_t_1 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_tags); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1059; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_1);
        __pyx_1 = PyObject_GetItem(__pyx_t_1, __pyx_v_handle); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1059; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_1);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __Pyx_DECREF(__pyx_v_prefix);
        __pyx_v_prefix = __pyx_1;
        __pyx_1 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1060
 *                 for handle in event_object.tags:
 *                     prefix = event_object.tags[handle]
 *                     if PyUnicode_CheckExact(handle):             # <<<<<<<<<<<<<<
 *                         handle = PyUnicode_AsUTF8String(handle)
 *                         cache.append(handle)
 */
        __pyx_t_6 = PyUnicode_CheckExact(__pyx_v_handle);
        if (__pyx_t_6) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1061
 *                     prefix = event_object.tags[handle]
 *                     if PyUnicode_CheckExact(handle):
 *                         handle = PyUnicode_AsUTF8String(handle)             # <<<<<<<<<<<<<<
 *                         cache.append(handle)
 *                     if not PyString_CheckExact(handle):
 */
          __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_handle); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1061; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_v_handle);
          __pyx_v_handle = __pyx_t_1;
          __pyx_t_1 = 0;

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1062
 *                     if PyUnicode_CheckExact(handle):
 *                         handle = PyUnicode_AsUTF8String(handle)
 *                         cache.append(handle)             # <<<<<<<<<<<<<<
 *                     if not PyString_CheckExact(handle):
 *                         if PY_MAJOR_VERSION < 3:
 */
          __pyx_t_1 = __Pyx_PyObject_Append(__pyx_v_cache, __pyx_v_handle); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1062; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          goto __pyx_L13;
        }
        __pyx_L13:;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1063
 *                         handle = PyUnicode_AsUTF8String(handle)
 *                         cache.append(handle)
 *                     if not PyString_CheckExact(handle):             # <<<<<<<<<<<<<<
 *                         if PY_MAJOR_VERSION < 3:
 *                             raise TypeError("tag handle must be a string")
 */
        __pyx_t_4 = (!PyString_CheckExact(__pyx_v_handle));
        if (__pyx_t_4) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1064
 *                         cache.append(handle)
 *                     if not PyString_CheckExact(handle):
 *                         if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                             raise TypeError("tag handle must be a string")
 *                         else:
 */
          __pyx_t_4 = (PY_MAJOR_VERSION < 3);
          if (__pyx_t_4) {

            /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1065
 *                     if not PyString_CheckExact(handle):
 *                         if PY_MAJOR_VERSION < 3:
 *                             raise TypeError("tag handle must be a string")             # <<<<<<<<<<<<<<
 *                         else:
 *                             raise TypeError(u"tag handle must be a string")
 */
            __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1065; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(((PyObject *)__pyx_t_1));
            __Pyx_INCREF(__pyx_kp_74);
            PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_74);
            __Pyx_GIVEREF(__pyx_kp_74);
            __pyx_t_8 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1065; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
            __Pyx_Raise(__pyx_t_8, 0, 0);
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1065; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            goto __pyx_L15;
          }
          /*else*/ {

            /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1067
 *                             raise TypeError("tag handle must be a string")
 *                         else:
 *                             raise TypeError(u"tag handle must be a string")             # <<<<<<<<<<<<<<
 *                     tag_directives_end.handle = PyString_AS_STRING(handle)
 *                     if PyUnicode_CheckExact(prefix):
 */
            __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1067; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(((PyObject *)__pyx_t_8));
            __Pyx_INCREF(((PyObject *)__pyx_kp_75));
            PyTuple_SET_ITEM(__pyx_t_8, 0, ((PyObject *)__pyx_kp_75));
            __Pyx_GIVEREF(((PyObject *)__pyx_kp_75));
            __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_8), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1067; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(__pyx_t_1);
            __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
            __Pyx_Raise(__pyx_t_1, 0, 0);
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1067; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          }
          __pyx_L15:;
          goto __pyx_L14;
        }
        __pyx_L14:;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1068
 *                         else:
 *                             raise TypeError(u"tag handle must be a string")
 *                     tag_directives_end.handle = PyString_AS_STRING(handle)             # <<<<<<<<<<<<<<
 *                     if PyUnicode_CheckExact(prefix):
 *                         prefix = PyUnicode_AsUTF8String(prefix)
 */
        __pyx_v_tag_directives_end->handle = PyString_AS_STRING(__pyx_v_handle);

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1069
 *                             raise TypeError(u"tag handle must be a string")
 *                     tag_directives_end.handle = PyString_AS_STRING(handle)
 *                     if PyUnicode_CheckExact(prefix):             # <<<<<<<<<<<<<<
 *                         prefix = PyUnicode_AsUTF8String(prefix)
 *                         cache.append(prefix)
 */
        __pyx_t_6 = PyUnicode_CheckExact(__pyx_v_prefix);
        if (__pyx_t_6) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1070
 *                     tag_directives_end.handle = PyString_AS_STRING(handle)
 *                     if PyUnicode_CheckExact(prefix):
 *                         prefix = PyUnicode_AsUTF8String(prefix)             # <<<<<<<<<<<<<<
 *                         cache.append(prefix)
 *                     if not PyString_CheckExact(prefix):
 */
          __pyx_t_1 = PyUnicode_AsUTF8String(__pyx_v_prefix); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1070; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_v_prefix);
          __pyx_v_prefix = __pyx_t_1;
          __pyx_t_1 = 0;

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1071
 *                     if PyUnicode_CheckExact(prefix):
 *                         prefix = PyUnicode_AsUTF8String(prefix)
 *                         cache.append(prefix)             # <<<<<<<<<<<<<<
 *                     if not PyString_CheckExact(prefix):
 *                         if PY_MAJOR_VERSION < 3:
 */
          __pyx_t_1 = __Pyx_PyObject_Append(__pyx_v_cache, __pyx_v_prefix); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1071; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          goto __pyx_L16;
        }
        __pyx_L16:;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1072
 *                         prefix = PyUnicode_AsUTF8String(prefix)
 *                         cache.append(prefix)
 *                     if not PyString_CheckExact(prefix):             # <<<<<<<<<<<<<<
 *                         if PY_MAJOR_VERSION < 3:
 *                             raise TypeError("tag prefix must be a string")
 */
        __pyx_t_4 = (!PyString_CheckExact(__pyx_v_prefix));
        if (__pyx_t_4) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1073
 *                         cache.append(prefix)
 *                     if not PyString_CheckExact(prefix):
 *                         if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                             raise TypeError("tag prefix must be a string")
 *                         else:
 */
          __pyx_t_4 = (PY_MAJOR_VERSION < 3);
          if (__pyx_t_4) {

            /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1074
 *                     if not PyString_CheckExact(prefix):
 *                         if PY_MAJOR_VERSION < 3:
 *                             raise TypeError("tag prefix must be a string")             # <<<<<<<<<<<<<<
 *                         else:
 *                             raise TypeError(u"tag prefix must be a string")
 */
            __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1074; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(((PyObject *)__pyx_t_1));
            __Pyx_INCREF(__pyx_kp_76);
            PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_76);
            __Pyx_GIVEREF(__pyx_kp_76);
            __pyx_t_8 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1074; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(__pyx_t_8);
            __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
            __Pyx_Raise(__pyx_t_8, 0, 0);
            __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1074; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            goto __pyx_L18;
          }
          /*else*/ {

            /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1076
 *                             raise TypeError("tag prefix must be a string")
 *                         else:
 *                             raise TypeError(u"tag prefix must be a string")             # <<<<<<<<<<<<<<
 *                     tag_directives_end.prefix = PyString_AS_STRING(prefix)
 *                     tag_directives_end = tag_directives_end+1
 */
            __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(((PyObject *)__pyx_t_8));
            __Pyx_INCREF(((PyObject *)__pyx_kp_77));
            PyTuple_SET_ITEM(__pyx_t_8, 0, ((PyObject *)__pyx_kp_77));
            __Pyx_GIVEREF(((PyObject *)__pyx_kp_77));
            __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_8), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(__pyx_t_1);
            __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
            __Pyx_Raise(__pyx_t_1, 0, 0);
            __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1076; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          }
          __pyx_L18:;
          goto __pyx_L17;
        }
        __pyx_L17:;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1077
 *                         else:
 *                             raise TypeError(u"tag prefix must be a string")
 *                     tag_directives_end.prefix = PyString_AS_STRING(prefix)             # <<<<<<<<<<<<<<
 *                     tag_directives_end = tag_directives_end+1
 *             implicit = 1
 */
        __pyx_v_tag_directives_end->prefix = PyString_AS_STRING(__pyx_v_prefix);

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1078
 *                             raise TypeError(u"tag prefix must be a string")
 *                     tag_directives_end.prefix = PyString_AS_STRING(prefix)
 *                     tag_directives_end = tag_directives_end+1             # <<<<<<<<<<<<<<
 *             implicit = 1
 *             if event_object.explicit:
 */
        __pyx_v_tag_directives_end = (__pyx_v_tag_directives_end + 1);
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L8;
    }
    __pyx_L8:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1079
 *                     tag_directives_end.prefix = PyString_AS_STRING(prefix)
 *                     tag_directives_end = tag_directives_end+1
 *             implicit = 1             # <<<<<<<<<<<<<<
 *             if event_object.explicit:
 *                 implicit = 0
 */
    __pyx_v_implicit = 1;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1080
 *                     tag_directives_end = tag_directives_end+1
 *             implicit = 1
 *             if event_object.explicit:             # <<<<<<<<<<<<<<
 *                 implicit = 0
 *             if yaml_document_start_event_initialize(event, version_directive,
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_explicit); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1080; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1080; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1081
 *             implicit = 1
 *             if event_object.explicit:
 *                 implicit = 0             # <<<<<<<<<<<<<<
 *             if yaml_document_start_event_initialize(event, version_directive,
 *                     tag_directives_start, tag_directives_end, implicit) == 0:
 */
      __pyx_v_implicit = 0;
      goto __pyx_L19;
    }
    __pyx_L19:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1083
 *                 implicit = 0
 *             if yaml_document_start_event_initialize(event, version_directive,
 *                     tag_directives_start, tag_directives_end, implicit) == 0:             # <<<<<<<<<<<<<<
 *                 raise MemoryError
 *         elif event_class is DocumentEndEvent:
 */
    __pyx_t_4 = (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);
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1084
 *             if yaml_document_start_event_initialize(event, version_directive,
 *                     tag_directives_start, tag_directives_end, implicit) == 0:
 *                 raise MemoryError             # <<<<<<<<<<<<<<
 *         elif event_class is DocumentEndEvent:
 *             implicit = 1
 */
      __Pyx_Raise(__pyx_builtin_MemoryError, 0, 0);
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1084; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L20;
    }
    __pyx_L20:;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1085
 *                     tag_directives_start, tag_directives_end, implicit) == 0:
 *                 raise MemoryError
 *         elif event_class is DocumentEndEvent:             # <<<<<<<<<<<<<<
 *             implicit = 1
 *             if event_object.explicit:
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_DocumentEndEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1085; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_4 = (__pyx_v_event_class == __pyx_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  if (__pyx_t_4) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1086
 *                 raise MemoryError
 *         elif event_class is DocumentEndEvent:
 *             implicit = 1             # <<<<<<<<<<<<<<
 *             if event_object.explicit:
 *                 implicit = 0
 */
    __pyx_v_implicit = 1;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1087
 *         elif event_class is DocumentEndEvent:
 *             implicit = 1
 *             if event_object.explicit:             # <<<<<<<<<<<<<<
 *                 implicit = 0
 *             yaml_document_end_event_initialize(event, implicit)
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_explicit); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1087; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1087; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1088
 *             implicit = 1
 *             if event_object.explicit:
 *                 implicit = 0             # <<<<<<<<<<<<<<
 *             yaml_document_end_event_initialize(event, implicit)
 *         elif event_class is AliasEvent:
 */
      __pyx_v_implicit = 0;
      goto __pyx_L21;
    }
    __pyx_L21:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1089
 *             if event_object.explicit:
 *                 implicit = 0
 *             yaml_document_end_event_initialize(event, implicit)             # <<<<<<<<<<<<<<
 *         elif event_class is AliasEvent:
 *             anchor = NULL
 */
    yaml_document_end_event_initialize(__pyx_v_event, __pyx_v_implicit);
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1090
 *                 implicit = 0
 *             yaml_document_end_event_initialize(event, implicit)
 *         elif event_class is AliasEvent:             # <<<<<<<<<<<<<<
 *             anchor = NULL
 *             anchor_object = event_object.anchor
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_AliasEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1090; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_4 = (__pyx_v_event_class == __pyx_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  if (__pyx_t_4) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1091
 *             yaml_document_end_event_initialize(event, implicit)
 *         elif event_class is AliasEvent:
 *             anchor = NULL             # <<<<<<<<<<<<<<
 *             anchor_object = event_object.anchor
 *             if PyUnicode_CheckExact(anchor_object):
 */
    __pyx_v_anchor = NULL;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1092
 *         elif event_class is AliasEvent:
 *             anchor = NULL
 *             anchor_object = event_object.anchor             # <<<<<<<<<<<<<<
 *             if PyUnicode_CheckExact(anchor_object):
 *                 anchor_object = PyUnicode_AsUTF8String(anchor_object)
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_anchor); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1092; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_anchor_object);
    __pyx_v_anchor_object = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1093
 *             anchor = NULL
 *             anchor_object = event_object.anchor
 *             if PyUnicode_CheckExact(anchor_object):             # <<<<<<<<<<<<<<
 *                 anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *             if not PyString_CheckExact(anchor_object):
 */
    __pyx_t_6 = PyUnicode_CheckExact(__pyx_v_anchor_object);
    if (__pyx_t_6) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1094
 *             anchor_object = event_object.anchor
 *             if PyUnicode_CheckExact(anchor_object):
 *                 anchor_object = PyUnicode_AsUTF8String(anchor_object)             # <<<<<<<<<<<<<<
 *             if not PyString_CheckExact(anchor_object):
 *                 if PY_MAJOR_VERSION < 3:
 */
      __pyx_t_3 = PyUnicode_AsUTF8String(__pyx_v_anchor_object); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1094; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_v_anchor_object);
      __pyx_v_anchor_object = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L22;
    }
    __pyx_L22:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1095
 *             if PyUnicode_CheckExact(anchor_object):
 *                 anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *             if not PyString_CheckExact(anchor_object):             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise TypeError("anchor must be a string")
 */
    __pyx_t_4 = (!PyString_CheckExact(__pyx_v_anchor_object));
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1096
 *                 anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *             if not PyString_CheckExact(anchor_object):
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     raise TypeError("anchor must be a string")
 *                 else:
 */
      __pyx_t_4 = (PY_MAJOR_VERSION < 3);
      if (__pyx_t_4) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1097
 *             if not PyString_CheckExact(anchor_object):
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise TypeError("anchor must be a string")             # <<<<<<<<<<<<<<
 *                 else:
 *                     raise TypeError(u"anchor must be a string")
 */
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1097; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_3));
        __Pyx_INCREF(__pyx_kp_78);
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_78);
        __Pyx_GIVEREF(__pyx_kp_78);
        __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1097; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
        __Pyx_Raise(__pyx_t_1, 0, 0);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1097; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L24;
      }
      /*else*/ {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1099
 *                     raise TypeError("anchor must be a string")
 *                 else:
 *                     raise TypeError(u"anchor must be a string")             # <<<<<<<<<<<<<<
 *             anchor = PyString_AS_STRING(anchor_object)
 *             if yaml_alias_event_initialize(event, anchor) == 0:
 */
        __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1099; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_1));
        __Pyx_INCREF(((PyObject *)__pyx_kp_79));
        PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_79));
        __Pyx_GIVEREF(((PyObject *)__pyx_kp_79));
        __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1099; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
        __Pyx_Raise(__pyx_t_3, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1099; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      }
      __pyx_L24:;
      goto __pyx_L23;
    }
    __pyx_L23:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1100
 *                 else:
 *                     raise TypeError(u"anchor must be a string")
 *             anchor = PyString_AS_STRING(anchor_object)             # <<<<<<<<<<<<<<
 *             if yaml_alias_event_initialize(event, anchor) == 0:
 *                 raise MemoryError
 */
    __pyx_v_anchor = PyString_AS_STRING(__pyx_v_anchor_object);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1101
 *                     raise TypeError(u"anchor must be a string")
 *             anchor = PyString_AS_STRING(anchor_object)
 *             if yaml_alias_event_initialize(event, anchor) == 0:             # <<<<<<<<<<<<<<
 *                 raise MemoryError
 *         elif event_class is ScalarEvent:
 */
    __pyx_t_4 = (yaml_alias_event_initialize(__pyx_v_event, __pyx_v_anchor) == 0);
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1102
 *             anchor = PyString_AS_STRING(anchor_object)
 *             if yaml_alias_event_initialize(event, anchor) == 0:
 *                 raise MemoryError             # <<<<<<<<<<<<<<
 *         elif event_class is ScalarEvent:
 *             anchor = NULL
 */
      __Pyx_Raise(__pyx_builtin_MemoryError, 0, 0);
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L25;
    }
    __pyx_L25:;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1103
 *             if yaml_alias_event_initialize(event, anchor) == 0:
 *                 raise MemoryError
 *         elif event_class is ScalarEvent:             # <<<<<<<<<<<<<<
 *             anchor = NULL
 *             anchor_object = event_object.anchor
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ScalarEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_4 = (__pyx_v_event_class == __pyx_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  if (__pyx_t_4) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1104
 *                 raise MemoryError
 *         elif event_class is ScalarEvent:
 *             anchor = NULL             # <<<<<<<<<<<<<<
 *             anchor_object = event_object.anchor
 *             if anchor_object is not None:
 */
    __pyx_v_anchor = NULL;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1105
 *         elif event_class is ScalarEvent:
 *             anchor = NULL
 *             anchor_object = event_object.anchor             # <<<<<<<<<<<<<<
 *             if anchor_object is not None:
 *                 if PyUnicode_CheckExact(anchor_object):
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_anchor); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1105; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_anchor_object);
    __pyx_v_anchor_object = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1106
 *             anchor = NULL
 *             anchor_object = event_object.anchor
 *             if anchor_object is not None:             # <<<<<<<<<<<<<<
 *                 if PyUnicode_CheckExact(anchor_object):
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)
 */
    __pyx_t_4 = (__pyx_v_anchor_object != Py_None);
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1107
 *             anchor_object = event_object.anchor
 *             if anchor_object is not None:
 *                 if PyUnicode_CheckExact(anchor_object):             # <<<<<<<<<<<<<<
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *                 if not PyString_CheckExact(anchor_object):
 */
      __pyx_t_6 = PyUnicode_CheckExact(__pyx_v_anchor_object);
      if (__pyx_t_6) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1108
 *             if anchor_object is not None:
 *                 if PyUnicode_CheckExact(anchor_object):
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)             # <<<<<<<<<<<<<<
 *                 if not PyString_CheckExact(anchor_object):
 *                     if PY_MAJOR_VERSION < 3:
 */
        __pyx_t_3 = PyUnicode_AsUTF8String(__pyx_v_anchor_object); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_v_anchor_object);
        __pyx_v_anchor_object = __pyx_t_3;
        __pyx_t_3 = 0;
        goto __pyx_L27;
      }
      __pyx_L27:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1109
 *                 if PyUnicode_CheckExact(anchor_object):
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *                 if not PyString_CheckExact(anchor_object):             # <<<<<<<<<<<<<<
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("anchor must be a string")
 */
      __pyx_t_4 = (!PyString_CheckExact(__pyx_v_anchor_object));
      if (__pyx_t_4) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1110
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *                 if not PyString_CheckExact(anchor_object):
 *                     if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                         raise TypeError("anchor must be a string")
 *                     else:
 */
        __pyx_t_4 = (PY_MAJOR_VERSION < 3);
        if (__pyx_t_4) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1111
 *                 if not PyString_CheckExact(anchor_object):
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("anchor must be a string")             # <<<<<<<<<<<<<<
 *                     else:
 *                         raise TypeError(u"anchor must be a string")
 */
          __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_3));
          __Pyx_INCREF(__pyx_kp_80);
          PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_80);
          __Pyx_GIVEREF(__pyx_kp_80);
          __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
          __Pyx_Raise(__pyx_t_1, 0, 0);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          goto __pyx_L29;
        }
        /*else*/ {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1113
 *                         raise TypeError("anchor must be a string")
 *                     else:
 *                         raise TypeError(u"anchor must be a string")             # <<<<<<<<<<<<<<
 *                 anchor = PyString_AS_STRING(anchor_object)
 *             tag = NULL
 */
          __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_1));
          __Pyx_INCREF(((PyObject *)__pyx_kp_81));
          PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_81));
          __Pyx_GIVEREF(((PyObject *)__pyx_kp_81));
          __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
          __Pyx_Raise(__pyx_t_3, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        }
        __pyx_L29:;
        goto __pyx_L28;
      }
      __pyx_L28:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1114
 *                     else:
 *                         raise TypeError(u"anchor must be a string")
 *                 anchor = PyString_AS_STRING(anchor_object)             # <<<<<<<<<<<<<<
 *             tag = NULL
 *             tag_object = event_object.tag
 */
      __pyx_v_anchor = PyString_AS_STRING(__pyx_v_anchor_object);
      goto __pyx_L26;
    }
    __pyx_L26:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1115
 *                         raise TypeError(u"anchor must be a string")
 *                 anchor = PyString_AS_STRING(anchor_object)
 *             tag = NULL             # <<<<<<<<<<<<<<
 *             tag_object = event_object.tag
 *             if tag_object is not None:
 */
    __pyx_v_tag = NULL;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1116
 *                 anchor = PyString_AS_STRING(anchor_object)
 *             tag = NULL
 *             tag_object = event_object.tag             # <<<<<<<<<<<<<<
 *             if tag_object is not None:
 *                 if PyUnicode_CheckExact(tag_object):
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_tag); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1116; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_tag_object);
    __pyx_v_tag_object = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1117
 *             tag = NULL
 *             tag_object = event_object.tag
 *             if tag_object is not None:             # <<<<<<<<<<<<<<
 *                 if PyUnicode_CheckExact(tag_object):
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)
 */
    __pyx_t_4 = (__pyx_v_tag_object != Py_None);
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1118
 *             tag_object = event_object.tag
 *             if tag_object is not None:
 *                 if PyUnicode_CheckExact(tag_object):             # <<<<<<<<<<<<<<
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)
 *                 if not PyString_CheckExact(tag_object):
 */
      __pyx_t_6 = PyUnicode_CheckExact(__pyx_v_tag_object);
      if (__pyx_t_6) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1119
 *             if tag_object is not None:
 *                 if PyUnicode_CheckExact(tag_object):
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)             # <<<<<<<<<<<<<<
 *                 if not PyString_CheckExact(tag_object):
 *                     if PY_MAJOR_VERSION < 3:
 */
        __pyx_t_3 = PyUnicode_AsUTF8String(__pyx_v_tag_object); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_v_tag_object);
        __pyx_v_tag_object = __pyx_t_3;
        __pyx_t_3 = 0;
        goto __pyx_L31;
      }
      __pyx_L31:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1120
 *                 if PyUnicode_CheckExact(tag_object):
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)
 *                 if not PyString_CheckExact(tag_object):             # <<<<<<<<<<<<<<
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("tag must be a string")
 */
      __pyx_t_4 = (!PyString_CheckExact(__pyx_v_tag_object));
      if (__pyx_t_4) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1121
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)
 *                 if not PyString_CheckExact(tag_object):
 *                     if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                         raise TypeError("tag must be a string")
 *                     else:
 */
        __pyx_t_4 = (PY_MAJOR_VERSION < 3);
        if (__pyx_t_4) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1122
 *                 if not PyString_CheckExact(tag_object):
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("tag must be a string")             # <<<<<<<<<<<<<<
 *                     else:
 *                         raise TypeError(u"tag must be a string")
 */
          __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_3));
          __Pyx_INCREF(__pyx_kp_82);
          PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_82);
          __Pyx_GIVEREF(__pyx_kp_82);
          __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
          __Pyx_Raise(__pyx_t_1, 0, 0);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          goto __pyx_L33;
        }
        /*else*/ {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1124
 *                         raise TypeError("tag must be a string")
 *                     else:
 *                         raise TypeError(u"tag must be a string")             # <<<<<<<<<<<<<<
 *                 tag = PyString_AS_STRING(tag_object)
 *             value_object = event_object.value
 */
          __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_1));
          __Pyx_INCREF(((PyObject *)__pyx_kp_83));
          PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_83));
          __Pyx_GIVEREF(((PyObject *)__pyx_kp_83));
          __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
          __Pyx_Raise(__pyx_t_3, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        }
        __pyx_L33:;
        goto __pyx_L32;
      }
      __pyx_L32:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1125
 *                     else:
 *                         raise TypeError(u"tag must be a string")
 *                 tag = PyString_AS_STRING(tag_object)             # <<<<<<<<<<<<<<
 *             value_object = event_object.value
 *             if PyUnicode_CheckExact(value_object):
 */
      __pyx_v_tag = PyString_AS_STRING(__pyx_v_tag_object);
      goto __pyx_L30;
    }
    __pyx_L30:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1126
 *                         raise TypeError(u"tag must be a string")
 *                 tag = PyString_AS_STRING(tag_object)
 *             value_object = event_object.value             # <<<<<<<<<<<<<<
 *             if PyUnicode_CheckExact(value_object):
 *                 value_object = PyUnicode_AsUTF8String(value_object)
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_value_object);
    __pyx_v_value_object = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1127
 *                 tag = PyString_AS_STRING(tag_object)
 *             value_object = event_object.value
 *             if PyUnicode_CheckExact(value_object):             # <<<<<<<<<<<<<<
 *                 value_object = PyUnicode_AsUTF8String(value_object)
 *             if not PyString_CheckExact(value_object):
 */
    __pyx_t_6 = PyUnicode_CheckExact(__pyx_v_value_object);
    if (__pyx_t_6) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1128
 *             value_object = event_object.value
 *             if PyUnicode_CheckExact(value_object):
 *                 value_object = PyUnicode_AsUTF8String(value_object)             # <<<<<<<<<<<<<<
 *             if not PyString_CheckExact(value_object):
 *                 if PY_MAJOR_VERSION < 3:
 */
      __pyx_t_3 = PyUnicode_AsUTF8String(__pyx_v_value_object); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_v_value_object);
      __pyx_v_value_object = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L34;
    }
    __pyx_L34:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1129
 *             if PyUnicode_CheckExact(value_object):
 *                 value_object = PyUnicode_AsUTF8String(value_object)
 *             if not PyString_CheckExact(value_object):             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise TypeError("value must be a string")
 */
    __pyx_t_4 = (!PyString_CheckExact(__pyx_v_value_object));
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1130
 *                 value_object = PyUnicode_AsUTF8String(value_object)
 *             if not PyString_CheckExact(value_object):
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     raise TypeError("value must be a string")
 *                 else:
 */
      __pyx_t_4 = (PY_MAJOR_VERSION < 3);
      if (__pyx_t_4) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1131
 *             if not PyString_CheckExact(value_object):
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise TypeError("value must be a string")             # <<<<<<<<<<<<<<
 *                 else:
 *                     raise TypeError(u"value must be a string")
 */
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_3));
        __Pyx_INCREF(__pyx_kp_84);
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_84);
        __Pyx_GIVEREF(__pyx_kp_84);
        __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_1);
        __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
        __Pyx_Raise(__pyx_t_1, 0, 0);
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L36;
      }
      /*else*/ {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1133
 *                     raise TypeError("value must be a string")
 *                 else:
 *                     raise TypeError(u"value must be a string")             # <<<<<<<<<<<<<<
 *             value = PyString_AS_STRING(value_object)
 *             length = PyString_GET_SIZE(value_object)
 */
        __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1133; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_1));
        __Pyx_INCREF(((PyObject *)__pyx_kp_85));
        PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_85));
        __Pyx_GIVEREF(((PyObject *)__pyx_kp_85));
        __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1133; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
        __Pyx_Raise(__pyx_t_3, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1133; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      }
      __pyx_L36:;
      goto __pyx_L35;
    }
    __pyx_L35:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1134
 *                 else:
 *                     raise TypeError(u"value must be a string")
 *             value = PyString_AS_STRING(value_object)             # <<<<<<<<<<<<<<
 *             length = PyString_GET_SIZE(value_object)
 *             plain_implicit = 0
 */
    __pyx_v_value = PyString_AS_STRING(__pyx_v_value_object);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1135
 *                     raise TypeError(u"value must be a string")
 *             value = PyString_AS_STRING(value_object)
 *             length = PyString_GET_SIZE(value_object)             # <<<<<<<<<<<<<<
 *             plain_implicit = 0
 *             quoted_implicit = 0
 */
    __pyx_v_length = PyString_GET_SIZE(__pyx_v_value_object);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1136
 *             value = PyString_AS_STRING(value_object)
 *             length = PyString_GET_SIZE(value_object)
 *             plain_implicit = 0             # <<<<<<<<<<<<<<
 *             quoted_implicit = 0
 *             if event_object.implicit is not None:
 */
    __pyx_v_plain_implicit = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1137
 *             length = PyString_GET_SIZE(value_object)
 *             plain_implicit = 0
 *             quoted_implicit = 0             # <<<<<<<<<<<<<<
 *             if event_object.implicit is not None:
 *                 plain_implicit = event_object.implicit[0]
 */
    __pyx_v_quoted_implicit = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1138
 *             plain_implicit = 0
 *             quoted_implicit = 0
 *             if event_object.implicit is not None:             # <<<<<<<<<<<<<<
 *                 plain_implicit = event_object.implicit[0]
 *                 quoted_implicit = event_object.implicit[1]
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_implicit); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = (__pyx_t_3 != Py_None);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1139
 *             quoted_implicit = 0
 *             if event_object.implicit is not None:
 *                 plain_implicit = event_object.implicit[0]             # <<<<<<<<<<<<<<
 *                 quoted_implicit = event_object.implicit[1]
 *             style_object = event_object.style
 */
      __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_implicit); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_1 = __Pyx_GetItemInt(__pyx_t_3, 0, sizeof(long), PyInt_FromLong); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyInt_AsInt(__pyx_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __pyx_v_plain_implicit = __pyx_t_6;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1140
 *             if event_object.implicit is not None:
 *                 plain_implicit = event_object.implicit[0]
 *                 quoted_implicit = event_object.implicit[1]             # <<<<<<<<<<<<<<
 *             style_object = event_object.style
 *             scalar_style = YAML_PLAIN_SCALAR_STYLE
 */
      __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_implicit); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_1 = __Pyx_GetItemInt(__pyx_t_3, 1, sizeof(long), PyInt_FromLong); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyInt_AsInt(__pyx_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __pyx_v_quoted_implicit = __pyx_t_6;
      goto __pyx_L37;
    }
    __pyx_L37:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1141
 *                 plain_implicit = event_object.implicit[0]
 *                 quoted_implicit = event_object.implicit[1]
 *             style_object = event_object.style             # <<<<<<<<<<<<<<
 *             scalar_style = YAML_PLAIN_SCALAR_STYLE
 *             if style_object == "'" or style_object == u"'":
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_style); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_style_object);
    __pyx_v_style_object = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1142
 *                 quoted_implicit = event_object.implicit[1]
 *             style_object = event_object.style
 *             scalar_style = YAML_PLAIN_SCALAR_STYLE             # <<<<<<<<<<<<<<
 *             if style_object == "'" or style_object == u"'":
 *                 scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE
 */
    __pyx_v_scalar_style = YAML_PLAIN_SCALAR_STYLE;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1143
 *             style_object = event_object.style
 *             scalar_style = YAML_PLAIN_SCALAR_STYLE
 *             if style_object == "'" or style_object == u"'":             # <<<<<<<<<<<<<<
 *                 scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE
 *             elif style_object == "\"" or style_object == u"\"":
 */
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_style_object, __pyx_kp_86, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (!__pyx_t_4) {
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_style_object, ((PyObject *)__pyx_kp_87), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_2 = __pyx_t_5;
    } else {
      __pyx_t_2 = __pyx_t_4;
    }
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1144
 *             scalar_style = YAML_PLAIN_SCALAR_STYLE
 *             if style_object == "'" or style_object == u"'":
 *                 scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE             # <<<<<<<<<<<<<<
 *             elif style_object == "\"" or style_object == u"\"":
 *                 scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE
 */
      __pyx_v_scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE;
      goto __pyx_L38;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1145
 *             if style_object == "'" or style_object == u"'":
 *                 scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE
 *             elif style_object == "\"" or style_object == u"\"":             # <<<<<<<<<<<<<<
 *                 scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE
 *             elif style_object == "|" or style_object == u"|":
 */
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_style_object, __pyx_kp_88, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (!__pyx_t_2) {
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_style_object, ((PyObject *)__pyx_kp_89), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_5 = __pyx_t_4;
    } else {
      __pyx_t_5 = __pyx_t_2;
    }
    if (__pyx_t_5) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1146
 *                 scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE
 *             elif style_object == "\"" or style_object == u"\"":
 *                 scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE             # <<<<<<<<<<<<<<
 *             elif style_object == "|" or style_object == u"|":
 *                 scalar_style = YAML_LITERAL_SCALAR_STYLE
 */
      __pyx_v_scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE;
      goto __pyx_L38;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1147
 *             elif style_object == "\"" or style_object == u"\"":
 *                 scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE
 *             elif style_object == "|" or style_object == u"|":             # <<<<<<<<<<<<<<
 *                 scalar_style = YAML_LITERAL_SCALAR_STYLE
 *             elif style_object == ">" or style_object == u">":
 */
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_style_object, __pyx_kp_90, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (!__pyx_t_5) {
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_style_object, ((PyObject *)__pyx_kp_91), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_4 = __pyx_t_2;
    } else {
      __pyx_t_4 = __pyx_t_5;
    }
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1148
 *                 scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE
 *             elif style_object == "|" or style_object == u"|":
 *                 scalar_style = YAML_LITERAL_SCALAR_STYLE             # <<<<<<<<<<<<<<
 *             elif style_object == ">" or style_object == u">":
 *                 scalar_style = YAML_FOLDED_SCALAR_STYLE
 */
      __pyx_v_scalar_style = YAML_LITERAL_SCALAR_STYLE;
      goto __pyx_L38;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1149
 *             elif style_object == "|" or style_object == u"|":
 *                 scalar_style = YAML_LITERAL_SCALAR_STYLE
 *             elif style_object == ">" or style_object == u">":             # <<<<<<<<<<<<<<
 *                 scalar_style = YAML_FOLDED_SCALAR_STYLE
 *             if yaml_scalar_event_initialize(event, anchor, tag, value, length,
 */
    __pyx_t_3 = PyObject_RichCompare(__pyx_v_style_object, __pyx_kp_92, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (!__pyx_t_4) {
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_style_object, ((PyObject *)__pyx_kp_93), Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_2 = __pyx_t_5;
    } else {
      __pyx_t_2 = __pyx_t_4;
    }
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1150
 *                 scalar_style = YAML_LITERAL_SCALAR_STYLE
 *             elif style_object == ">" or style_object == u">":
 *                 scalar_style = YAML_FOLDED_SCALAR_STYLE             # <<<<<<<<<<<<<<
 *             if yaml_scalar_event_initialize(event, anchor, tag, value, length,
 *                     plain_implicit, quoted_implicit, scalar_style) == 0:
 */
      __pyx_v_scalar_style = YAML_FOLDED_SCALAR_STYLE;
      goto __pyx_L38;
    }
    __pyx_L38:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1152
 *                 scalar_style = YAML_FOLDED_SCALAR_STYLE
 *             if yaml_scalar_event_initialize(event, anchor, tag, value, length,
 *                     plain_implicit, quoted_implicit, scalar_style) == 0:             # <<<<<<<<<<<<<<
 *                 raise MemoryError
 *         elif event_class is SequenceStartEvent:
 */
    __pyx_t_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);
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1153
 *             if yaml_scalar_event_initialize(event, anchor, tag, value, length,
 *                     plain_implicit, quoted_implicit, scalar_style) == 0:
 *                 raise MemoryError             # <<<<<<<<<<<<<<
 *         elif event_class is SequenceStartEvent:
 *             anchor = NULL
 */
      __Pyx_Raise(__pyx_builtin_MemoryError, 0, 0);
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L39;
    }
    __pyx_L39:;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1154
 *                     plain_implicit, quoted_implicit, scalar_style) == 0:
 *                 raise MemoryError
 *         elif event_class is SequenceStartEvent:             # <<<<<<<<<<<<<<
 *             anchor = NULL
 *             anchor_object = event_object.anchor
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SequenceStartEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = (__pyx_v_event_class == __pyx_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1155
 *                 raise MemoryError
 *         elif event_class is SequenceStartEvent:
 *             anchor = NULL             # <<<<<<<<<<<<<<
 *             anchor_object = event_object.anchor
 *             if anchor_object is not None:
 */
    __pyx_v_anchor = NULL;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1156
 *         elif event_class is SequenceStartEvent:
 *             anchor = NULL
 *             anchor_object = event_object.anchor             # <<<<<<<<<<<<<<
 *             if anchor_object is not None:
 *                 if PyUnicode_CheckExact(anchor_object):
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_anchor); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_anchor_object);
    __pyx_v_anchor_object = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1157
 *             anchor = NULL
 *             anchor_object = event_object.anchor
 *             if anchor_object is not None:             # <<<<<<<<<<<<<<
 *                 if PyUnicode_CheckExact(anchor_object):
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)
 */
    __pyx_t_2 = (__pyx_v_anchor_object != Py_None);
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1158
 *             anchor_object = event_object.anchor
 *             if anchor_object is not None:
 *                 if PyUnicode_CheckExact(anchor_object):             # <<<<<<<<<<<<<<
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *                 if not PyString_CheckExact(anchor_object):
 */
      __pyx_t_6 = PyUnicode_CheckExact(__pyx_v_anchor_object);
      if (__pyx_t_6) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1159
 *             if anchor_object is not None:
 *                 if PyUnicode_CheckExact(anchor_object):
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)             # <<<<<<<<<<<<<<
 *                 if not PyString_CheckExact(anchor_object):
 *                     if PY_MAJOR_VERSION < 3:
 */
        __pyx_t_3 = PyUnicode_AsUTF8String(__pyx_v_anchor_object); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_v_anchor_object);
        __pyx_v_anchor_object = __pyx_t_3;
        __pyx_t_3 = 0;
        goto __pyx_L41;
      }
      __pyx_L41:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1160
 *                 if PyUnicode_CheckExact(anchor_object):
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *                 if not PyString_CheckExact(anchor_object):             # <<<<<<<<<<<<<<
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("anchor must be a string")
 */
      __pyx_t_2 = (!PyString_CheckExact(__pyx_v_anchor_object));
      if (__pyx_t_2) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1161
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *                 if not PyString_CheckExact(anchor_object):
 *                     if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                         raise TypeError("anchor must be a string")
 *                     else:
 */
        __pyx_t_2 = (PY_MAJOR_VERSION < 3);
        if (__pyx_t_2) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1162
 *                 if not PyString_CheckExact(anchor_object):
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("anchor must be a string")             # <<<<<<<<<<<<<<
 *                     else:
 *                         raise TypeError(u"anchor must be a string")
 */
          __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_3));
          __Pyx_INCREF(__pyx_kp_94);
          PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_94);
          __Pyx_GIVEREF(__pyx_kp_94);
          __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
          __Pyx_Raise(__pyx_t_1, 0, 0);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          goto __pyx_L43;
        }
        /*else*/ {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1164
 *                         raise TypeError("anchor must be a string")
 *                     else:
 *                         raise TypeError(u"anchor must be a string")             # <<<<<<<<<<<<<<
 *                 anchor = PyString_AS_STRING(anchor_object)
 *             tag = NULL
 */
          __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_1));
          __Pyx_INCREF(((PyObject *)__pyx_kp_95));
          PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_95));
          __Pyx_GIVEREF(((PyObject *)__pyx_kp_95));
          __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
          __Pyx_Raise(__pyx_t_3, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        }
        __pyx_L43:;
        goto __pyx_L42;
      }
      __pyx_L42:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1165
 *                     else:
 *                         raise TypeError(u"anchor must be a string")
 *                 anchor = PyString_AS_STRING(anchor_object)             # <<<<<<<<<<<<<<
 *             tag = NULL
 *             tag_object = event_object.tag
 */
      __pyx_v_anchor = PyString_AS_STRING(__pyx_v_anchor_object);
      goto __pyx_L40;
    }
    __pyx_L40:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1166
 *                         raise TypeError(u"anchor must be a string")
 *                 anchor = PyString_AS_STRING(anchor_object)
 *             tag = NULL             # <<<<<<<<<<<<<<
 *             tag_object = event_object.tag
 *             if tag_object is not None:
 */
    __pyx_v_tag = NULL;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1167
 *                 anchor = PyString_AS_STRING(anchor_object)
 *             tag = NULL
 *             tag_object = event_object.tag             # <<<<<<<<<<<<<<
 *             if tag_object is not None:
 *                 if PyUnicode_CheckExact(tag_object):
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_tag); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_tag_object);
    __pyx_v_tag_object = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1168
 *             tag = NULL
 *             tag_object = event_object.tag
 *             if tag_object is not None:             # <<<<<<<<<<<<<<
 *                 if PyUnicode_CheckExact(tag_object):
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)
 */
    __pyx_t_2 = (__pyx_v_tag_object != Py_None);
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1169
 *             tag_object = event_object.tag
 *             if tag_object is not None:
 *                 if PyUnicode_CheckExact(tag_object):             # <<<<<<<<<<<<<<
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)
 *                 if not PyString_CheckExact(tag_object):
 */
      __pyx_t_6 = PyUnicode_CheckExact(__pyx_v_tag_object);
      if (__pyx_t_6) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1170
 *             if tag_object is not None:
 *                 if PyUnicode_CheckExact(tag_object):
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)             # <<<<<<<<<<<<<<
 *                 if not PyString_CheckExact(tag_object):
 *                     if PY_MAJOR_VERSION < 3:
 */
        __pyx_t_3 = PyUnicode_AsUTF8String(__pyx_v_tag_object); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_v_tag_object);
        __pyx_v_tag_object = __pyx_t_3;
        __pyx_t_3 = 0;
        goto __pyx_L45;
      }
      __pyx_L45:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1171
 *                 if PyUnicode_CheckExact(tag_object):
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)
 *                 if not PyString_CheckExact(tag_object):             # <<<<<<<<<<<<<<
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("tag must be a string")
 */
      __pyx_t_2 = (!PyString_CheckExact(__pyx_v_tag_object));
      if (__pyx_t_2) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1172
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)
 *                 if not PyString_CheckExact(tag_object):
 *                     if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                         raise TypeError("tag must be a string")
 *                     else:
 */
        __pyx_t_2 = (PY_MAJOR_VERSION < 3);
        if (__pyx_t_2) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1173
 *                 if not PyString_CheckExact(tag_object):
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("tag must be a string")             # <<<<<<<<<<<<<<
 *                     else:
 *                         raise TypeError(u"tag must be a string")
 */
          __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_3));
          __Pyx_INCREF(__pyx_kp_96);
          PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_96);
          __Pyx_GIVEREF(__pyx_kp_96);
          __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
          __Pyx_Raise(__pyx_t_1, 0, 0);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          goto __pyx_L47;
        }
        /*else*/ {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1175
 *                         raise TypeError("tag must be a string")
 *                     else:
 *                         raise TypeError(u"tag must be a string")             # <<<<<<<<<<<<<<
 *                 tag = PyString_AS_STRING(tag_object)
 *             implicit = 0
 */
          __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_1));
          __Pyx_INCREF(((PyObject *)__pyx_kp_97));
          PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_97));
          __Pyx_GIVEREF(((PyObject *)__pyx_kp_97));
          __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
          __Pyx_Raise(__pyx_t_3, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        }
        __pyx_L47:;
        goto __pyx_L46;
      }
      __pyx_L46:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1176
 *                     else:
 *                         raise TypeError(u"tag must be a string")
 *                 tag = PyString_AS_STRING(tag_object)             # <<<<<<<<<<<<<<
 *             implicit = 0
 *             if event_object.implicit:
 */
      __pyx_v_tag = PyString_AS_STRING(__pyx_v_tag_object);
      goto __pyx_L44;
    }
    __pyx_L44:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1177
 *                         raise TypeError(u"tag must be a string")
 *                 tag = PyString_AS_STRING(tag_object)
 *             implicit = 0             # <<<<<<<<<<<<<<
 *             if event_object.implicit:
 *                 implicit = 1
 */
    __pyx_v_implicit = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1178
 *                 tag = PyString_AS_STRING(tag_object)
 *             implicit = 0
 *             if event_object.implicit:             # <<<<<<<<<<<<<<
 *                 implicit = 1
 *             sequence_style = YAML_BLOCK_SEQUENCE_STYLE
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_implicit); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1179
 *             implicit = 0
 *             if event_object.implicit:
 *                 implicit = 1             # <<<<<<<<<<<<<<
 *             sequence_style = YAML_BLOCK_SEQUENCE_STYLE
 *             if event_object.flow_style:
 */
      __pyx_v_implicit = 1;
      goto __pyx_L48;
    }
    __pyx_L48:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1180
 *             if event_object.implicit:
 *                 implicit = 1
 *             sequence_style = YAML_BLOCK_SEQUENCE_STYLE             # <<<<<<<<<<<<<<
 *             if event_object.flow_style:
 *                 sequence_style = YAML_FLOW_SEQUENCE_STYLE
 */
    __pyx_v_sequence_style = YAML_BLOCK_SEQUENCE_STYLE;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1181
 *                 implicit = 1
 *             sequence_style = YAML_BLOCK_SEQUENCE_STYLE
 *             if event_object.flow_style:             # <<<<<<<<<<<<<<
 *                 sequence_style = YAML_FLOW_SEQUENCE_STYLE
 *             if yaml_sequence_start_event_initialize(event, anchor, tag,
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_flow_style); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1181; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1182
 *             sequence_style = YAML_BLOCK_SEQUENCE_STYLE
 *             if event_object.flow_style:
 *                 sequence_style = YAML_FLOW_SEQUENCE_STYLE             # <<<<<<<<<<<<<<
 *             if yaml_sequence_start_event_initialize(event, anchor, tag,
 *                     implicit, sequence_style) == 0:
 */
      __pyx_v_sequence_style = YAML_FLOW_SEQUENCE_STYLE;
      goto __pyx_L49;
    }
    __pyx_L49:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1184
 *                 sequence_style = YAML_FLOW_SEQUENCE_STYLE
 *             if yaml_sequence_start_event_initialize(event, anchor, tag,
 *                     implicit, sequence_style) == 0:             # <<<<<<<<<<<<<<
 *                 raise MemoryError
 *         elif event_class is MappingStartEvent:
 */
    __pyx_t_2 = (yaml_sequence_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0);
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1185
 *             if yaml_sequence_start_event_initialize(event, anchor, tag,
 *                     implicit, sequence_style) == 0:
 *                 raise MemoryError             # <<<<<<<<<<<<<<
 *         elif event_class is MappingStartEvent:
 *             anchor = NULL
 */
      __Pyx_Raise(__pyx_builtin_MemoryError, 0, 0);
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1185; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L50;
    }
    __pyx_L50:;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1186
 *                     implicit, sequence_style) == 0:
 *                 raise MemoryError
 *         elif event_class is MappingStartEvent:             # <<<<<<<<<<<<<<
 *             anchor = NULL
 *             anchor_object = event_object.anchor
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_MappingStartEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1186; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = (__pyx_v_event_class == __pyx_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1187
 *                 raise MemoryError
 *         elif event_class is MappingStartEvent:
 *             anchor = NULL             # <<<<<<<<<<<<<<
 *             anchor_object = event_object.anchor
 *             if anchor_object is not None:
 */
    __pyx_v_anchor = NULL;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1188
 *         elif event_class is MappingStartEvent:
 *             anchor = NULL
 *             anchor_object = event_object.anchor             # <<<<<<<<<<<<<<
 *             if anchor_object is not None:
 *                 if PyUnicode_CheckExact(anchor_object):
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_anchor); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_anchor_object);
    __pyx_v_anchor_object = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1189
 *             anchor = NULL
 *             anchor_object = event_object.anchor
 *             if anchor_object is not None:             # <<<<<<<<<<<<<<
 *                 if PyUnicode_CheckExact(anchor_object):
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)
 */
    __pyx_t_2 = (__pyx_v_anchor_object != Py_None);
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1190
 *             anchor_object = event_object.anchor
 *             if anchor_object is not None:
 *                 if PyUnicode_CheckExact(anchor_object):             # <<<<<<<<<<<<<<
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *                 if not PyString_CheckExact(anchor_object):
 */
      __pyx_t_6 = PyUnicode_CheckExact(__pyx_v_anchor_object);
      if (__pyx_t_6) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1191
 *             if anchor_object is not None:
 *                 if PyUnicode_CheckExact(anchor_object):
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)             # <<<<<<<<<<<<<<
 *                 if not PyString_CheckExact(anchor_object):
 *                     if PY_MAJOR_VERSION < 3:
 */
        __pyx_t_3 = PyUnicode_AsUTF8String(__pyx_v_anchor_object); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1191; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_v_anchor_object);
        __pyx_v_anchor_object = __pyx_t_3;
        __pyx_t_3 = 0;
        goto __pyx_L52;
      }
      __pyx_L52:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1192
 *                 if PyUnicode_CheckExact(anchor_object):
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *                 if not PyString_CheckExact(anchor_object):             # <<<<<<<<<<<<<<
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("anchor must be a string")
 */
      __pyx_t_2 = (!PyString_CheckExact(__pyx_v_anchor_object));
      if (__pyx_t_2) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1193
 *                     anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *                 if not PyString_CheckExact(anchor_object):
 *                     if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                         raise TypeError("anchor must be a string")
 *                     else:
 */
        __pyx_t_2 = (PY_MAJOR_VERSION < 3);
        if (__pyx_t_2) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1194
 *                 if not PyString_CheckExact(anchor_object):
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("anchor must be a string")             # <<<<<<<<<<<<<<
 *                     else:
 *                         raise TypeError(u"anchor must be a string")
 */
          __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_3));
          __Pyx_INCREF(__pyx_kp_98);
          PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_98);
          __Pyx_GIVEREF(__pyx_kp_98);
          __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
          __Pyx_Raise(__pyx_t_1, 0, 0);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          goto __pyx_L54;
        }
        /*else*/ {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1196
 *                         raise TypeError("anchor must be a string")
 *                     else:
 *                         raise TypeError(u"anchor must be a string")             # <<<<<<<<<<<<<<
 *                 anchor = PyString_AS_STRING(anchor_object)
 *             tag = NULL
 */
          __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_1));
          __Pyx_INCREF(((PyObject *)__pyx_kp_99));
          PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_99));
          __Pyx_GIVEREF(((PyObject *)__pyx_kp_99));
          __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
          __Pyx_Raise(__pyx_t_3, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1196; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        }
        __pyx_L54:;
        goto __pyx_L53;
      }
      __pyx_L53:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1197
 *                     else:
 *                         raise TypeError(u"anchor must be a string")
 *                 anchor = PyString_AS_STRING(anchor_object)             # <<<<<<<<<<<<<<
 *             tag = NULL
 *             tag_object = event_object.tag
 */
      __pyx_v_anchor = PyString_AS_STRING(__pyx_v_anchor_object);
      goto __pyx_L51;
    }
    __pyx_L51:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1198
 *                         raise TypeError(u"anchor must be a string")
 *                 anchor = PyString_AS_STRING(anchor_object)
 *             tag = NULL             # <<<<<<<<<<<<<<
 *             tag_object = event_object.tag
 *             if tag_object is not None:
 */
    __pyx_v_tag = NULL;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1199
 *                 anchor = PyString_AS_STRING(anchor_object)
 *             tag = NULL
 *             tag_object = event_object.tag             # <<<<<<<<<<<<<<
 *             if tag_object is not None:
 *                 if PyUnicode_CheckExact(tag_object):
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_tag); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1199; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_tag_object);
    __pyx_v_tag_object = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1200
 *             tag = NULL
 *             tag_object = event_object.tag
 *             if tag_object is not None:             # <<<<<<<<<<<<<<
 *                 if PyUnicode_CheckExact(tag_object):
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)
 */
    __pyx_t_2 = (__pyx_v_tag_object != Py_None);
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1201
 *             tag_object = event_object.tag
 *             if tag_object is not None:
 *                 if PyUnicode_CheckExact(tag_object):             # <<<<<<<<<<<<<<
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)
 *                 if not PyString_CheckExact(tag_object):
 */
      __pyx_t_6 = PyUnicode_CheckExact(__pyx_v_tag_object);
      if (__pyx_t_6) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1202
 *             if tag_object is not None:
 *                 if PyUnicode_CheckExact(tag_object):
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)             # <<<<<<<<<<<<<<
 *                 if not PyString_CheckExact(tag_object):
 *                     if PY_MAJOR_VERSION < 3:
 */
        __pyx_t_3 = PyUnicode_AsUTF8String(__pyx_v_tag_object); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1202; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_v_tag_object);
        __pyx_v_tag_object = __pyx_t_3;
        __pyx_t_3 = 0;
        goto __pyx_L56;
      }
      __pyx_L56:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1203
 *                 if PyUnicode_CheckExact(tag_object):
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)
 *                 if not PyString_CheckExact(tag_object):             # <<<<<<<<<<<<<<
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("tag must be a string")
 */
      __pyx_t_2 = (!PyString_CheckExact(__pyx_v_tag_object));
      if (__pyx_t_2) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1204
 *                     tag_object = PyUnicode_AsUTF8String(tag_object)
 *                 if not PyString_CheckExact(tag_object):
 *                     if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                         raise TypeError("tag must be a string")
 *                     else:
 */
        __pyx_t_2 = (PY_MAJOR_VERSION < 3);
        if (__pyx_t_2) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1205
 *                 if not PyString_CheckExact(tag_object):
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("tag must be a string")             # <<<<<<<<<<<<<<
 *                     else:
 *                         raise TypeError(u"tag must be a string")
 */
          __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_3));
          __Pyx_INCREF(__pyx_kp_100);
          PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_100);
          __Pyx_GIVEREF(__pyx_kp_100);
          __pyx_t_1 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_1);
          __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
          __Pyx_Raise(__pyx_t_1, 0, 0);
          __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          goto __pyx_L58;
        }
        /*else*/ {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1207
 *                         raise TypeError("tag must be a string")
 *                     else:
 *                         raise TypeError(u"tag must be a string")             # <<<<<<<<<<<<<<
 *                 tag = PyString_AS_STRING(tag_object)
 *             implicit = 0
 */
          __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_1));
          __Pyx_INCREF(((PyObject *)__pyx_kp_101));
          PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_101));
          __Pyx_GIVEREF(((PyObject *)__pyx_kp_101));
          __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
          __Pyx_Raise(__pyx_t_3, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        }
        __pyx_L58:;
        goto __pyx_L57;
      }
      __pyx_L57:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1208
 *                     else:
 *                         raise TypeError(u"tag must be a string")
 *                 tag = PyString_AS_STRING(tag_object)             # <<<<<<<<<<<<<<
 *             implicit = 0
 *             if event_object.implicit:
 */
      __pyx_v_tag = PyString_AS_STRING(__pyx_v_tag_object);
      goto __pyx_L55;
    }
    __pyx_L55:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1209
 *                         raise TypeError(u"tag must be a string")
 *                 tag = PyString_AS_STRING(tag_object)
 *             implicit = 0             # <<<<<<<<<<<<<<
 *             if event_object.implicit:
 *                 implicit = 1
 */
    __pyx_v_implicit = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1210
 *                 tag = PyString_AS_STRING(tag_object)
 *             implicit = 0
 *             if event_object.implicit:             # <<<<<<<<<<<<<<
 *                 implicit = 1
 *             mapping_style = YAML_BLOCK_MAPPING_STYLE
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_implicit); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1211
 *             implicit = 0
 *             if event_object.implicit:
 *                 implicit = 1             # <<<<<<<<<<<<<<
 *             mapping_style = YAML_BLOCK_MAPPING_STYLE
 *             if event_object.flow_style:
 */
      __pyx_v_implicit = 1;
      goto __pyx_L59;
    }
    __pyx_L59:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1212
 *             if event_object.implicit:
 *                 implicit = 1
 *             mapping_style = YAML_BLOCK_MAPPING_STYLE             # <<<<<<<<<<<<<<
 *             if event_object.flow_style:
 *                 mapping_style = YAML_FLOW_MAPPING_STYLE
 */
    __pyx_v_mapping_style = YAML_BLOCK_MAPPING_STYLE;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1213
 *                 implicit = 1
 *             mapping_style = YAML_BLOCK_MAPPING_STYLE
 *             if event_object.flow_style:             # <<<<<<<<<<<<<<
 *                 mapping_style = YAML_FLOW_MAPPING_STYLE
 *             if yaml_mapping_start_event_initialize(event, anchor, tag,
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_event_object, __pyx_kp_flow_style); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1214
 *             mapping_style = YAML_BLOCK_MAPPING_STYLE
 *             if event_object.flow_style:
 *                 mapping_style = YAML_FLOW_MAPPING_STYLE             # <<<<<<<<<<<<<<
 *             if yaml_mapping_start_event_initialize(event, anchor, tag,
 *                     implicit, mapping_style) == 0:
 */
      __pyx_v_mapping_style = YAML_FLOW_MAPPING_STYLE;
      goto __pyx_L60;
    }
    __pyx_L60:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1216
 *                 mapping_style = YAML_FLOW_MAPPING_STYLE
 *             if yaml_mapping_start_event_initialize(event, anchor, tag,
 *                     implicit, mapping_style) == 0:             # <<<<<<<<<<<<<<
 *                 raise MemoryError
 *         elif event_class is SequenceEndEvent:
 */
    __pyx_t_2 = (yaml_mapping_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0);
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1217
 *             if yaml_mapping_start_event_initialize(event, anchor, tag,
 *                     implicit, mapping_style) == 0:
 *                 raise MemoryError             # <<<<<<<<<<<<<<
 *         elif event_class is SequenceEndEvent:
 *             yaml_sequence_end_event_initialize(event)
 */
      __Pyx_Raise(__pyx_builtin_MemoryError, 0, 0);
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1217; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L61;
    }
    __pyx_L61:;
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1218
 *                     implicit, mapping_style) == 0:
 *                 raise MemoryError
 *         elif event_class is SequenceEndEvent:             # <<<<<<<<<<<<<<
 *             yaml_sequence_end_event_initialize(event)
 *         elif event_class is MappingEndEvent:
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SequenceEndEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = (__pyx_v_event_class == __pyx_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1219
 *                 raise MemoryError
 *         elif event_class is SequenceEndEvent:
 *             yaml_sequence_end_event_initialize(event)             # <<<<<<<<<<<<<<
 *         elif event_class is MappingEndEvent:
 *             yaml_mapping_end_event_initialize(event)
 */
    yaml_sequence_end_event_initialize(__pyx_v_event);
    goto __pyx_L3;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1220
 *         elif event_class is SequenceEndEvent:
 *             yaml_sequence_end_event_initialize(event)
 *         elif event_class is MappingEndEvent:             # <<<<<<<<<<<<<<
 *             yaml_mapping_end_event_initialize(event)
 *         else:
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_MappingEndEvent); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = (__pyx_v_event_class == __pyx_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1221
 *             yaml_sequence_end_event_initialize(event)
 *         elif event_class is MappingEndEvent:
 *             yaml_mapping_end_event_initialize(event)             # <<<<<<<<<<<<<<
 *         else:
 *             if PY_MAJOR_VERSION < 3:
 */
    yaml_mapping_end_event_initialize(__pyx_v_event);
    goto __pyx_L3;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1223
 *             yaml_mapping_end_event_initialize(event)
 *         else:
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 raise TypeError("invalid event %s" % event_object)
 *             else:
 */
    __pyx_t_2 = (PY_MAJOR_VERSION < 3);
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1224
 *         else:
 *             if PY_MAJOR_VERSION < 3:
 *                 raise TypeError("invalid event %s" % event_object)             # <<<<<<<<<<<<<<
 *             else:
 *                 raise TypeError(u"invalid event %s" % event_object)
 */
      __pyx_t_3 = PyNumber_Remainder(__pyx_kp_102, __pyx_v_event_object); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_1));
      PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
      __Pyx_Raise(__pyx_t_3, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L62;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1226
 *                 raise TypeError("invalid event %s" % event_object)
 *             else:
 *                 raise TypeError(u"invalid event %s" % event_object)             # <<<<<<<<<<<<<<
 *         return 1
 * 
 */
      __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_103), __pyx_v_event_object); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_1));
      PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
      __Pyx_Raise(__pyx_t_3, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __pyx_L62:;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1227
 *             else:
 *                 raise TypeError(u"invalid event %s" % event_object)
 *         return 1             # <<<<<<<<<<<<<<
 * 
 *     def emit(self, event_object):
 */
  __pyx_r = 1;
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("_yaml.CEmitter._object_to_event");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_event_class);
  __Pyx_DECREF(__pyx_v_cache);
  __Pyx_DECREF(__pyx_v_handle);
  __Pyx_DECREF(__pyx_v_prefix);
  __Pyx_DECREF(__pyx_v_anchor_object);
  __Pyx_DECREF(__pyx_v_tag_object);
  __Pyx_DECREF(__pyx_v_value_object);
  __Pyx_DECREF(__pyx_v_style_object);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1229
 *         return 1
 * 
 *     def emit(self, event_object):             # <<<<<<<<<<<<<<
 *         cdef yaml_event_t event
 *         self._object_to_event(event_object, &event)
 */

static PyObject *__pyx_pf_5_yaml_8CEmitter_emit(PyObject *__pyx_v_self, PyObject *__pyx_v_event_object); /*proto*/
static PyObject *__pyx_pf_5_yaml_8CEmitter_emit(PyObject *__pyx_v_self, PyObject *__pyx_v_event_object) {
  yaml_event_t __pyx_v_event;
  PyObject *__pyx_v_error;
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_SetupRefcountContext("emit");
  __pyx_v_error = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1231
 *     def emit(self, event_object):
 *         cdef yaml_event_t event
 *         self._object_to_event(event_object, &event)             # <<<<<<<<<<<<<<
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:
 *             error = self._emitter_error()
 */
  __pyx_t_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 (unlikely(__pyx_t_1 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1231; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1232
 *         cdef yaml_event_t event
 *         self._object_to_event(event_object, &event)
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:             # <<<<<<<<<<<<<<
 *             error = self._emitter_error()
 *             raise error
 */
  __pyx_t_1 = yaml_emitter_emit((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter), (&__pyx_v_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1232; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_2 = (__pyx_t_1 == 0);
  if (__pyx_t_2) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1233
 *         self._object_to_event(event_object, &event)
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:
 *             error = self._emitter_error()             # <<<<<<<<<<<<<<
 *             raise error
 * 
 */
    __pyx_t_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 (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_error);
    __pyx_v_error = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1234
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:
 *             error = self._emitter_error()
 *             raise error             # <<<<<<<<<<<<<<
 * 
 *     def open(self):
 */
    __Pyx_Raise(__pyx_v_error, 0, 0);
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L5;
  }
  __pyx_L5:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CEmitter.emit");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_error);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1236
 *             raise error
 * 
 *     def open(self):             # <<<<<<<<<<<<<<
 *         cdef yaml_event_t event
 *         cdef yaml_encoding_t encoding
 */

static PyObject *__pyx_pf_5_yaml_8CEmitter_open(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_8CEmitter_open(PyObject *__pyx_v_self, PyObject *unused) {
  yaml_event_t __pyx_v_event;
  yaml_encoding_t __pyx_v_encoding;
  PyObject *__pyx_v_error;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_1 = 0;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_SetupRefcountContext("open");
  __pyx_v_error = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1239
 *         cdef yaml_event_t event
 *         cdef yaml_encoding_t encoding
 *         if self.closed == -1:             # <<<<<<<<<<<<<<
 *             if self.use_encoding == u'utf-16-le' or self.use_encoding == 'utf-16-le':
 *                 encoding = YAML_UTF16LE_ENCODING
 */
  switch (((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed) {
    case -1:

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1240
 *         cdef yaml_encoding_t encoding
 *         if self.closed == -1:
 *             if self.use_encoding == u'utf-16-le' or self.use_encoding == 'utf-16-le':             # <<<<<<<<<<<<<<
 *                 encoding = YAML_UTF16LE_ENCODING
 *             elif self.use_encoding == u'utf-16-be' or self.use_encoding == 'utf-16-be':
 */
    __pyx_t_1 = PyObject_RichCompare(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_encoding, ((PyObject *)__pyx_kp_104), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (!__pyx_t_2) {
      __pyx_t_1 = PyObject_RichCompare(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_encoding, __pyx_kp_105, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_4 = __pyx_t_3;
    } else {
      __pyx_t_4 = __pyx_t_2;
    }
    if (__pyx_t_4) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1241
 *         if self.closed == -1:
 *             if self.use_encoding == u'utf-16-le' or self.use_encoding == 'utf-16-le':
 *                 encoding = YAML_UTF16LE_ENCODING             # <<<<<<<<<<<<<<
 *             elif self.use_encoding == u'utf-16-be' or self.use_encoding == 'utf-16-be':
 *                 encoding = YAML_UTF16BE_ENCODING
 */
      __pyx_v_encoding = YAML_UTF16LE_ENCODING;
      goto __pyx_L5;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1242
 *             if self.use_encoding == u'utf-16-le' or self.use_encoding == 'utf-16-le':
 *                 encoding = YAML_UTF16LE_ENCODING
 *             elif self.use_encoding == u'utf-16-be' or self.use_encoding == 'utf-16-be':             # <<<<<<<<<<<<<<
 *                 encoding = YAML_UTF16BE_ENCODING
 *             else:
 */
    __pyx_t_1 = PyObject_RichCompare(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_encoding, ((PyObject *)__pyx_kp_106), Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    if (!__pyx_t_4) {
      __pyx_t_1 = PyObject_RichCompare(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_encoding, __pyx_kp_107, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1242; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_3 = __pyx_t_2;
    } else {
      __pyx_t_3 = __pyx_t_4;
    }
    if (__pyx_t_3) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1243
 *                 encoding = YAML_UTF16LE_ENCODING
 *             elif self.use_encoding == u'utf-16-be' or self.use_encoding == 'utf-16-be':
 *                 encoding = YAML_UTF16BE_ENCODING             # <<<<<<<<<<<<<<
 *             else:
 *                 encoding = YAML_UTF8_ENCODING
 */
      __pyx_v_encoding = YAML_UTF16BE_ENCODING;
      goto __pyx_L5;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1245
 *                 encoding = YAML_UTF16BE_ENCODING
 *             else:
 *                 encoding = YAML_UTF8_ENCODING             # <<<<<<<<<<<<<<
 *             if self.use_encoding is None:
 *                 self.dump_unicode = 1
 */
      __pyx_v_encoding = YAML_UTF8_ENCODING;
    }
    __pyx_L5:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1246
 *             else:
 *                 encoding = YAML_UTF8_ENCODING
 *             if self.use_encoding is None:             # <<<<<<<<<<<<<<
 *                 self.dump_unicode = 1
 *             if self.dump_unicode == 1:
 */
    __pyx_t_3 = (((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_encoding == Py_None);
    if (__pyx_t_3) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1247
 *                 encoding = YAML_UTF8_ENCODING
 *             if self.use_encoding is None:
 *                 self.dump_unicode = 1             # <<<<<<<<<<<<<<
 *             if self.dump_unicode == 1:
 *                 encoding = YAML_UTF8_ENCODING
 */
      ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->dump_unicode = 1;
      goto __pyx_L6;
    }
    __pyx_L6:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1248
 *             if self.use_encoding is None:
 *                 self.dump_unicode = 1
 *             if self.dump_unicode == 1:             # <<<<<<<<<<<<<<
 *                 encoding = YAML_UTF8_ENCODING
 *             yaml_stream_start_event_initialize(&event, encoding)
 */
    __pyx_t_3 = (((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->dump_unicode == 1);
    if (__pyx_t_3) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1249
 *                 self.dump_unicode = 1
 *             if self.dump_unicode == 1:
 *                 encoding = YAML_UTF8_ENCODING             # <<<<<<<<<<<<<<
 *             yaml_stream_start_event_initialize(&event, encoding)
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:
 */
      __pyx_v_encoding = YAML_UTF8_ENCODING;
      goto __pyx_L7;
    }
    __pyx_L7:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1250
 *             if self.dump_unicode == 1:
 *                 encoding = YAML_UTF8_ENCODING
 *             yaml_stream_start_event_initialize(&event, encoding)             # <<<<<<<<<<<<<<
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                 error = self._emitter_error()
 */
    yaml_stream_start_event_initialize((&__pyx_v_event), __pyx_v_encoding);

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1251
 *                 encoding = YAML_UTF8_ENCODING
 *             yaml_stream_start_event_initialize(&event, encoding)
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:             # <<<<<<<<<<<<<<
 *                 error = self._emitter_error()
 *                 raise error
 */
    __pyx_t_5 = yaml_emitter_emit((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter), (&__pyx_v_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1251; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_t_3 = (__pyx_t_5 == 0);
    if (__pyx_t_3) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1252
 *             yaml_stream_start_event_initialize(&event, encoding)
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                 error = self._emitter_error()             # <<<<<<<<<<<<<<
 *                 raise error
 *             self.closed = 0
 */
      __pyx_t_1 = ((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 (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1252; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_v_error);
      __pyx_v_error = __pyx_t_1;
      __pyx_t_1 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1253
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                 error = self._emitter_error()
 *                 raise error             # <<<<<<<<<<<<<<
 *             self.closed = 0
 *         elif self.closed == 1:
 */
      __Pyx_Raise(__pyx_v_error, 0, 0);
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1253; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L8;
    }
    __pyx_L8:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1254
 *                 error = self._emitter_error()
 *                 raise error
 *             self.closed = 0             # <<<<<<<<<<<<<<
 *         elif self.closed == 1:
 *             if PY_MAJOR_VERSION < 3:
 */
    ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed = 0;
    break;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1255
 *                 raise error
 *             self.closed = 0
 *         elif self.closed == 1:             # <<<<<<<<<<<<<<
 *             if PY_MAJOR_VERSION < 3:
 *                 raise SerializerError("serializer is closed")
 */
    case 1:

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1256
 *             self.closed = 0
 *         elif self.closed == 1:
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 raise SerializerError("serializer is closed")
 *             else:
 */
    __pyx_t_3 = (PY_MAJOR_VERSION < 3);
    if (__pyx_t_3) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1257
 *         elif self.closed == 1:
 *             if PY_MAJOR_VERSION < 3:
 *                 raise SerializerError("serializer is closed")             # <<<<<<<<<<<<<<
 *             else:
 *                 raise SerializerError(u"serializer is closed")
 */
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SerializerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_1));
      __Pyx_INCREF(__pyx_kp_108);
      PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_108);
      __Pyx_GIVEREF(__pyx_kp_108);
      __pyx_t_6 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
      __Pyx_Raise(__pyx_t_6, 0, 0);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1257; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L9;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1259
 *                 raise SerializerError("serializer is closed")
 *             else:
 *                 raise SerializerError(u"serializer is closed")             # <<<<<<<<<<<<<<
 *         else:
 *             if PY_MAJOR_VERSION < 3:
 */
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SerializerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_6));
      __Pyx_INCREF(((PyObject *)__pyx_kp_109));
      PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_kp_109));
      __Pyx_GIVEREF(((PyObject *)__pyx_kp_109));
      __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
      __Pyx_Raise(__pyx_t_1, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1259; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __pyx_L9:;
    break;
    default:

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1261
 *                 raise SerializerError(u"serializer is closed")
 *         else:
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 raise SerializerError("serializer is already opened")
 *             else:
 */
    __pyx_t_3 = (PY_MAJOR_VERSION < 3);
    if (__pyx_t_3) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1262
 *         else:
 *             if PY_MAJOR_VERSION < 3:
 *                 raise SerializerError("serializer is already opened")             # <<<<<<<<<<<<<<
 *             else:
 *                 raise SerializerError(u"serializer is already opened")
 */
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SerializerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_1));
      __Pyx_INCREF(__pyx_kp_110);
      PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_110);
      __Pyx_GIVEREF(__pyx_kp_110);
      __pyx_t_6 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
      __Pyx_Raise(__pyx_t_6, 0, 0);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1262; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L10;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1264
 *                 raise SerializerError("serializer is already opened")
 *             else:
 *                 raise SerializerError(u"serializer is already opened")             # <<<<<<<<<<<<<<
 * 
 *     def close(self):
 */
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SerializerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_6));
      __Pyx_INCREF(((PyObject *)__pyx_kp_111));
      PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_kp_111));
      __Pyx_GIVEREF(((PyObject *)__pyx_kp_111));
      __pyx_t_1 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
      __Pyx_Raise(__pyx_t_1, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __pyx_L10:;
    break;
  }

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_yaml.CEmitter.open");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_error);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1266
 *                 raise SerializerError(u"serializer is already opened")
 * 
 *     def close(self):             # <<<<<<<<<<<<<<
 *         cdef yaml_event_t event
 *         if self.closed == -1:
 */

static PyObject *__pyx_pf_5_yaml_8CEmitter_close(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
static PyObject *__pyx_pf_5_yaml_8CEmitter_close(PyObject *__pyx_v_self, PyObject *unused) {
  yaml_event_t __pyx_v_event;
  PyObject *__pyx_v_error;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_1 = 0;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  __Pyx_SetupRefcountContext("close");
  __pyx_v_error = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1268
 *     def close(self):
 *         cdef yaml_event_t event
 *         if self.closed == -1:             # <<<<<<<<<<<<<<
 *             if PY_MAJOR_VERSION < 3:
 *                 raise SerializerError("serializer is not opened")
 */
  switch (((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed) {
    case -1:

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1269
 *         cdef yaml_event_t event
 *         if self.closed == -1:
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 raise SerializerError("serializer is not opened")
 *             else:
 */
    __pyx_t_1 = (PY_MAJOR_VERSION < 3);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1270
 *         if self.closed == -1:
 *             if PY_MAJOR_VERSION < 3:
 *                 raise SerializerError("serializer is not opened")             # <<<<<<<<<<<<<<
 *             else:
 *                 raise SerializerError(u"serializer is not opened")
 */
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SerializerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_kp_112);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_112);
      __Pyx_GIVEREF(__pyx_kp_112);
      __pyx_t_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __Pyx_Raise(__pyx_t_3, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L5;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1272
 *                 raise SerializerError("serializer is not opened")
 *             else:
 *                 raise SerializerError(u"serializer is not opened")             # <<<<<<<<<<<<<<
 *         elif self.closed == 0:
 *             yaml_stream_end_event_initialize(&event)
 */
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SerializerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1272; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1272; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_3));
      __Pyx_INCREF(((PyObject *)__pyx_kp_113));
      PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_113));
      __Pyx_GIVEREF(((PyObject *)__pyx_kp_113));
      __pyx_t_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1272; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
      __Pyx_Raise(__pyx_t_2, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1272; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __pyx_L5:;
    break;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1273
 *             else:
 *                 raise SerializerError(u"serializer is not opened")
 *         elif self.closed == 0:             # <<<<<<<<<<<<<<
 *             yaml_stream_end_event_initialize(&event)
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:
 */
    case 0:

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1274
 *                 raise SerializerError(u"serializer is not opened")
 *         elif self.closed == 0:
 *             yaml_stream_end_event_initialize(&event)             # <<<<<<<<<<<<<<
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                 error = self._emitter_error()
 */
    yaml_stream_end_event_initialize((&__pyx_v_event));

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1275
 *         elif self.closed == 0:
 *             yaml_stream_end_event_initialize(&event)
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:             # <<<<<<<<<<<<<<
 *                 error = self._emitter_error()
 *                 raise error
 */
    __pyx_t_4 = yaml_emitter_emit((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter), (&__pyx_v_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_t_1 = (__pyx_t_4 == 0);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1276
 *             yaml_stream_end_event_initialize(&event)
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                 error = self._emitter_error()             # <<<<<<<<<<<<<<
 *                 raise error
 *             self.closed = 1
 */
      __pyx_t_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 (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_v_error);
      __pyx_v_error = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1277
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                 error = self._emitter_error()
 *                 raise error             # <<<<<<<<<<<<<<
 *             self.closed = 1
 * 
 */
      __Pyx_Raise(__pyx_v_error, 0, 0);
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1277; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L6;
    }
    __pyx_L6:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1278
 *                 error = self._emitter_error()
 *                 raise error
 *             self.closed = 1             # <<<<<<<<<<<<<<
 * 
 *     def serialize(self, node):
 */
    ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed = 1;
    break;
  }

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CEmitter.close");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_error);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1280
 *             self.closed = 1
 * 
 *     def serialize(self, node):             # <<<<<<<<<<<<<<
 *         cdef yaml_event_t event
 *         cdef yaml_version_directive_t version_directive_value
 */

static PyObject *__pyx_pf_5_yaml_8CEmitter_serialize(PyObject *__pyx_v_self, PyObject *__pyx_v_node); /*proto*/
static PyObject *__pyx_pf_5_yaml_8CEmitter_serialize(PyObject *__pyx_v_self, PyObject *__pyx_v_node) {
  yaml_event_t __pyx_v_event;
  yaml_version_directive_t __pyx_v_version_directive_value;
  yaml_version_directive_t *__pyx_v_version_directive;
  yaml_tag_directive_t __pyx_v_tag_directives_value[128];
  yaml_tag_directive_t *__pyx_v_tag_directives_start;
  yaml_tag_directive_t *__pyx_v_tag_directives_end;
  PyObject *__pyx_v_cache;
  PyObject *__pyx_v_handle;
  PyObject *__pyx_v_prefix;
  PyObject *__pyx_v_error;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_1 = 0;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_SetupRefcountContext("serialize");
  __pyx_v_cache = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_handle = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_prefix = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_error = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1287
 *         cdef yaml_tag_directive_t *tag_directives_start
 *         cdef yaml_tag_directive_t *tag_directives_end
 *         if self.closed == -1:             # <<<<<<<<<<<<<<
 *             if PY_MAJOR_VERSION < 3:
 *                 raise SerializerError("serializer is not opened")
 */
  switch (((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->closed) {
    case -1:

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1288
 *         cdef yaml_tag_directive_t *tag_directives_end
 *         if self.closed == -1:
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 raise SerializerError("serializer is not opened")
 *             else:
 */
    __pyx_t_1 = (PY_MAJOR_VERSION < 3);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1289
 *         if self.closed == -1:
 *             if PY_MAJOR_VERSION < 3:
 *                 raise SerializerError("serializer is not opened")             # <<<<<<<<<<<<<<
 *             else:
 *                 raise SerializerError(u"serializer is not opened")
 */
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SerializerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_kp_114);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_114);
      __Pyx_GIVEREF(__pyx_kp_114);
      __pyx_t_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __Pyx_Raise(__pyx_t_3, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L5;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1291
 *                 raise SerializerError("serializer is not opened")
 *             else:
 *                 raise SerializerError(u"serializer is not opened")             # <<<<<<<<<<<<<<
 *         elif self.closed == 1:
 *             if PY_MAJOR_VERSION < 3:
 */
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SerializerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_3));
      __Pyx_INCREF(((PyObject *)__pyx_kp_115));
      PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_115));
      __Pyx_GIVEREF(((PyObject *)__pyx_kp_115));
      __pyx_t_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
      __Pyx_Raise(__pyx_t_2, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __pyx_L5:;
    break;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1292
 *             else:
 *                 raise SerializerError(u"serializer is not opened")
 *         elif self.closed == 1:             # <<<<<<<<<<<<<<
 *             if PY_MAJOR_VERSION < 3:
 *                 raise SerializerError("serializer is closed")
 */
    case 1:

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1293
 *                 raise SerializerError(u"serializer is not opened")
 *         elif self.closed == 1:
 *             if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                 raise SerializerError("serializer is closed")
 *             else:
 */
    __pyx_t_1 = (PY_MAJOR_VERSION < 3);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1294
 *         elif self.closed == 1:
 *             if PY_MAJOR_VERSION < 3:
 *                 raise SerializerError("serializer is closed")             # <<<<<<<<<<<<<<
 *             else:
 *                 raise SerializerError(u"serializer is closed")
 */
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SerializerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_kp_116);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_116);
      __Pyx_GIVEREF(__pyx_kp_116);
      __pyx_t_3 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __Pyx_Raise(__pyx_t_3, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L6;
    }
    /*else*/ {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1296
 *                 raise SerializerError("serializer is closed")
 *             else:
 *                 raise SerializerError(u"serializer is closed")             # <<<<<<<<<<<<<<
 *         cache = []
 *         version_directive = NULL
 */
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SerializerError); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_3));
      __Pyx_INCREF(((PyObject *)__pyx_kp_117));
      PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_117));
      __Pyx_GIVEREF(((PyObject *)__pyx_kp_117));
      __pyx_t_2 = PyObject_Call(__pyx_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
      __Pyx_Raise(__pyx_t_2, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
    __pyx_L6:;
    break;
  }

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1297
 *             else:
 *                 raise SerializerError(u"serializer is closed")
 *         cache = []             # <<<<<<<<<<<<<<
 *         version_directive = NULL
 *         if self.use_version:
 */
  __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
  __Pyx_DECREF(__pyx_v_cache);
  __pyx_v_cache = ((PyObject *)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1298
 *                 raise SerializerError(u"serializer is closed")
 *         cache = []
 *         version_directive = NULL             # <<<<<<<<<<<<<<
 *         if self.use_version:
 *             version_directive_value.major = self.use_version[0]
 */
  __pyx_v_version_directive = NULL;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1299
 *         cache = []
 *         version_directive = NULL
 *         if self.use_version:             # <<<<<<<<<<<<<<
 *             version_directive_value.major = self.use_version[0]
 *             version_directive_value.minor = self.use_version[1]
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_version); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1300
 *         version_directive = NULL
 *         if self.use_version:
 *             version_directive_value.major = self.use_version[0]             # <<<<<<<<<<<<<<
 *             version_directive_value.minor = self.use_version[1]
 *             version_directive = &version_directive_value
 */
    __pyx_1 = __Pyx_GetItemInt(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_version, 0, sizeof(long), PyInt_FromLong); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = __Pyx_PyInt_AsInt(__pyx_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __pyx_v_version_directive_value.major = __pyx_t_4;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1301
 *         if self.use_version:
 *             version_directive_value.major = self.use_version[0]
 *             version_directive_value.minor = self.use_version[1]             # <<<<<<<<<<<<<<
 *             version_directive = &version_directive_value
 *         tag_directives_start = NULL
 */
    __pyx_1 = __Pyx_GetItemInt(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_version, 1, sizeof(long), PyInt_FromLong); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_4 = __Pyx_PyInt_AsInt(__pyx_1); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    __pyx_v_version_directive_value.minor = __pyx_t_4;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1302
 *             version_directive_value.major = self.use_version[0]
 *             version_directive_value.minor = self.use_version[1]
 *             version_directive = &version_directive_value             # <<<<<<<<<<<<<<
 *         tag_directives_start = NULL
 *         tag_directives_end = NULL
 */
    __pyx_v_version_directive = (&__pyx_v_version_directive_value);
    goto __pyx_L7;
  }
  __pyx_L7:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1303
 *             version_directive_value.minor = self.use_version[1]
 *             version_directive = &version_directive_value
 *         tag_directives_start = NULL             # <<<<<<<<<<<<<<
 *         tag_directives_end = NULL
 *         if self.use_tags:
 */
  __pyx_v_tag_directives_start = NULL;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1304
 *             version_directive = &version_directive_value
 *         tag_directives_start = NULL
 *         tag_directives_end = NULL             # <<<<<<<<<<<<<<
 *         if self.use_tags:
 *             if len(self.use_tags) > 128:
 */
  __pyx_v_tag_directives_end = NULL;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1305
 *         tag_directives_start = NULL
 *         tag_directives_end = NULL
 *         if self.use_tags:             # <<<<<<<<<<<<<<
 *             if len(self.use_tags) > 128:
 *                 if PY_MAJOR_VERSION < 3:
 */
  __pyx_t_1 = __Pyx_PyObject_IsTrue(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1306
 *         tag_directives_end = NULL
 *         if self.use_tags:
 *             if len(self.use_tags) > 128:             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise ValueError("too many tags")
 */
    __pyx_t_5 = PyObject_Length(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_t_1 = (__pyx_t_5 > 128);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1307
 *         if self.use_tags:
 *             if len(self.use_tags) > 128:
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     raise ValueError("too many tags")
 *                 else:
 */
      __pyx_t_1 = (PY_MAJOR_VERSION < 3);
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1308
 *             if len(self.use_tags) > 128:
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise ValueError("too many tags")             # <<<<<<<<<<<<<<
 *                 else:
 *                     raise ValueError(u"too many tags")
 */
        __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_2));
        __Pyx_INCREF(__pyx_kp_118);
        PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_118);
        __Pyx_GIVEREF(__pyx_kp_118);
        __pyx_t_3 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
        __Pyx_Raise(__pyx_t_3, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L10;
      }
      /*else*/ {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1310
 *                     raise ValueError("too many tags")
 *                 else:
 *                     raise ValueError(u"too many tags")             # <<<<<<<<<<<<<<
 *             tag_directives_start = tag_directives_value
 *             tag_directives_end = tag_directives_value
 */
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_3));
        __Pyx_INCREF(((PyObject *)__pyx_kp_119));
        PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_119));
        __Pyx_GIVEREF(((PyObject *)__pyx_kp_119));
        __pyx_t_2 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_2);
        __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
        __Pyx_Raise(__pyx_t_2, 0, 0);
        __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      }
      __pyx_L10:;
      goto __pyx_L9;
    }
    __pyx_L9:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1311
 *                 else:
 *                     raise ValueError(u"too many tags")
 *             tag_directives_start = tag_directives_value             # <<<<<<<<<<<<<<
 *             tag_directives_end = tag_directives_value
 *             for handle in self.use_tags:
 */
    __pyx_v_tag_directives_start = __pyx_v_tag_directives_value;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1312
 *                     raise ValueError(u"too many tags")
 *             tag_directives_start = tag_directives_value
 *             tag_directives_end = tag_directives_value             # <<<<<<<<<<<<<<
 *             for handle in self.use_tags:
 *                 prefix = self.use_tags[handle]
 */
    __pyx_v_tag_directives_end = __pyx_v_tag_directives_value;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1313
 *             tag_directives_start = tag_directives_value
 *             tag_directives_end = tag_directives_value
 *             for handle in self.use_tags:             # <<<<<<<<<<<<<<
 *                 prefix = self.use_tags[handle]
 *                 if PyUnicode_CheckExact(handle):
 */
    if (PyList_CheckExact(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags) || PyTuple_CheckExact(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags)) {
      __pyx_t_5 = 0; __pyx_t_2 = ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags; __Pyx_INCREF(__pyx_t_2);
    } else {
      __pyx_t_5 = -1; __pyx_t_2 = PyObject_GetIter(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
    }
    for (;;) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_2)) break;
        __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++;
      } else if (likely(PyTuple_CheckExact(__pyx_t_2))) {
        if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
        __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++;
      } else {
        __pyx_t_3 = PyIter_Next(__pyx_t_2);
        if (!__pyx_t_3) {
          if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          break;
        }
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_DECREF(__pyx_v_handle);
      __pyx_v_handle = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1314
 *             tag_directives_end = tag_directives_value
 *             for handle in self.use_tags:
 *                 prefix = self.use_tags[handle]             # <<<<<<<<<<<<<<
 *                 if PyUnicode_CheckExact(handle):
 *                     handle = PyUnicode_AsUTF8String(handle)
 */
      __pyx_1 = PyObject_GetItem(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->use_tags, __pyx_v_handle); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1314; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __Pyx_DECREF(__pyx_v_prefix);
      __pyx_v_prefix = __pyx_1;
      __pyx_1 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1315
 *             for handle in self.use_tags:
 *                 prefix = self.use_tags[handle]
 *                 if PyUnicode_CheckExact(handle):             # <<<<<<<<<<<<<<
 *                     handle = PyUnicode_AsUTF8String(handle)
 *                     cache.append(handle)
 */
      __pyx_t_4 = PyUnicode_CheckExact(__pyx_v_handle);
      if (__pyx_t_4) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1316
 *                 prefix = self.use_tags[handle]
 *                 if PyUnicode_CheckExact(handle):
 *                     handle = PyUnicode_AsUTF8String(handle)             # <<<<<<<<<<<<<<
 *                     cache.append(handle)
 *                 if not PyString_CheckExact(handle):
 */
        __pyx_t_3 = PyUnicode_AsUTF8String(__pyx_v_handle); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_v_handle);
        __pyx_v_handle = __pyx_t_3;
        __pyx_t_3 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1317
 *                 if PyUnicode_CheckExact(handle):
 *                     handle = PyUnicode_AsUTF8String(handle)
 *                     cache.append(handle)             # <<<<<<<<<<<<<<
 *                 if not PyString_CheckExact(handle):
 *                     if PY_MAJOR_VERSION < 3:
 */
        __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_cache, __pyx_v_handle); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1317; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        goto __pyx_L13;
      }
      __pyx_L13:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1318
 *                     handle = PyUnicode_AsUTF8String(handle)
 *                     cache.append(handle)
 *                 if not PyString_CheckExact(handle):             # <<<<<<<<<<<<<<
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("tag handle must be a string")
 */
      __pyx_t_1 = (!PyString_CheckExact(__pyx_v_handle));
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1319
 *                     cache.append(handle)
 *                 if not PyString_CheckExact(handle):
 *                     if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                         raise TypeError("tag handle must be a string")
 *                     else:
 */
        __pyx_t_1 = (PY_MAJOR_VERSION < 3);
        if (__pyx_t_1) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1320
 *                 if not PyString_CheckExact(handle):
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("tag handle must be a string")             # <<<<<<<<<<<<<<
 *                     else:
 *                         raise TypeError(u"tag handle must be a string")
 */
          __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_3));
          __Pyx_INCREF(__pyx_kp_120);
          PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_120);
          __Pyx_GIVEREF(__pyx_kp_120);
          __pyx_t_6 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
          __Pyx_Raise(__pyx_t_6, 0, 0);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          goto __pyx_L15;
        }
        /*else*/ {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1322
 *                         raise TypeError("tag handle must be a string")
 *                     else:
 *                         raise TypeError(u"tag handle must be a string")             # <<<<<<<<<<<<<<
 *                 tag_directives_end.handle = PyString_AS_STRING(handle)
 *                 if PyUnicode_CheckExact(prefix):
 */
          __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_6));
          __Pyx_INCREF(((PyObject *)__pyx_kp_121));
          PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_kp_121));
          __Pyx_GIVEREF(((PyObject *)__pyx_kp_121));
          __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
          __Pyx_Raise(__pyx_t_3, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        }
        __pyx_L15:;
        goto __pyx_L14;
      }
      __pyx_L14:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1323
 *                     else:
 *                         raise TypeError(u"tag handle must be a string")
 *                 tag_directives_end.handle = PyString_AS_STRING(handle)             # <<<<<<<<<<<<<<
 *                 if PyUnicode_CheckExact(prefix):
 *                     prefix = PyUnicode_AsUTF8String(prefix)
 */
      __pyx_v_tag_directives_end->handle = PyString_AS_STRING(__pyx_v_handle);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1324
 *                         raise TypeError(u"tag handle must be a string")
 *                 tag_directives_end.handle = PyString_AS_STRING(handle)
 *                 if PyUnicode_CheckExact(prefix):             # <<<<<<<<<<<<<<
 *                     prefix = PyUnicode_AsUTF8String(prefix)
 *                     cache.append(prefix)
 */
      __pyx_t_4 = PyUnicode_CheckExact(__pyx_v_prefix);
      if (__pyx_t_4) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1325
 *                 tag_directives_end.handle = PyString_AS_STRING(handle)
 *                 if PyUnicode_CheckExact(prefix):
 *                     prefix = PyUnicode_AsUTF8String(prefix)             # <<<<<<<<<<<<<<
 *                     cache.append(prefix)
 *                 if not PyString_CheckExact(prefix):
 */
        __pyx_t_3 = PyUnicode_AsUTF8String(__pyx_v_prefix); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_v_prefix);
        __pyx_v_prefix = __pyx_t_3;
        __pyx_t_3 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1326
 *                 if PyUnicode_CheckExact(prefix):
 *                     prefix = PyUnicode_AsUTF8String(prefix)
 *                     cache.append(prefix)             # <<<<<<<<<<<<<<
 *                 if not PyString_CheckExact(prefix):
 *                     if PY_MAJOR_VERSION < 3:
 */
        __pyx_t_3 = __Pyx_PyObject_Append(__pyx_v_cache, __pyx_v_prefix); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        goto __pyx_L16;
      }
      __pyx_L16:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1327
 *                     prefix = PyUnicode_AsUTF8String(prefix)
 *                     cache.append(prefix)
 *                 if not PyString_CheckExact(prefix):             # <<<<<<<<<<<<<<
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("tag prefix must be a string")
 */
      __pyx_t_1 = (!PyString_CheckExact(__pyx_v_prefix));
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1328
 *                     cache.append(prefix)
 *                 if not PyString_CheckExact(prefix):
 *                     if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                         raise TypeError("tag prefix must be a string")
 *                     else:
 */
        __pyx_t_1 = (PY_MAJOR_VERSION < 3);
        if (__pyx_t_1) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1329
 *                 if not PyString_CheckExact(prefix):
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("tag prefix must be a string")             # <<<<<<<<<<<<<<
 *                     else:
 *                         raise TypeError(u"tag prefix must be a string")
 */
          __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1329; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_3));
          __Pyx_INCREF(__pyx_kp_122);
          PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_122);
          __Pyx_GIVEREF(__pyx_kp_122);
          __pyx_t_6 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1329; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_6);
          __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
          __Pyx_Raise(__pyx_t_6, 0, 0);
          __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1329; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          goto __pyx_L18;
        }
        /*else*/ {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1331
 *                         raise TypeError("tag prefix must be a string")
 *                     else:
 *                         raise TypeError(u"tag prefix must be a string")             # <<<<<<<<<<<<<<
 *                 tag_directives_end.prefix = PyString_AS_STRING(prefix)
 *                 tag_directives_end = tag_directives_end+1
 */
          __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_6));
          __Pyx_INCREF(((PyObject *)__pyx_kp_123));
          PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_kp_123));
          __Pyx_GIVEREF(((PyObject *)__pyx_kp_123));
          __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
          __Pyx_Raise(__pyx_t_3, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        }
        __pyx_L18:;
        goto __pyx_L17;
      }
      __pyx_L17:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1332
 *                     else:
 *                         raise TypeError(u"tag prefix must be a string")
 *                 tag_directives_end.prefix = PyString_AS_STRING(prefix)             # <<<<<<<<<<<<<<
 *                 tag_directives_end = tag_directives_end+1
 *         if yaml_document_start_event_initialize(&event, version_directive,
 */
      __pyx_v_tag_directives_end->prefix = PyString_AS_STRING(__pyx_v_prefix);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1333
 *                         raise TypeError(u"tag prefix must be a string")
 *                 tag_directives_end.prefix = PyString_AS_STRING(prefix)
 *                 tag_directives_end = tag_directives_end+1             # <<<<<<<<<<<<<<
 *         if yaml_document_start_event_initialize(&event, version_directive,
 *                 tag_directives_start, tag_directives_end,
 */
      __pyx_v_tag_directives_end = (__pyx_v_tag_directives_end + 1);
    }
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    goto __pyx_L8;
  }
  __pyx_L8:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1336
 *         if yaml_document_start_event_initialize(&event, version_directive,
 *                 tag_directives_start, tag_directives_end,
 *                 self.document_start_implicit) == 0:             # <<<<<<<<<<<<<<
 *             raise MemoryError
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:
 */
  __pyx_t_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);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1337
 *                 tag_directives_start, tag_directives_end,
 *                 self.document_start_implicit) == 0:
 *             raise MemoryError             # <<<<<<<<<<<<<<
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:
 *             error = self._emitter_error()
 */
    __Pyx_Raise(__pyx_builtin_MemoryError, 0, 0);
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1337; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L19;
  }
  __pyx_L19:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1338
 *                 self.document_start_implicit) == 0:
 *             raise MemoryError
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:             # <<<<<<<<<<<<<<
 *             error = self._emitter_error()
 *             raise error
 */
  __pyx_t_4 = yaml_emitter_emit((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter), (&__pyx_v_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_1 = (__pyx_t_4 == 0);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1339
 *             raise MemoryError
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:
 *             error = self._emitter_error()             # <<<<<<<<<<<<<<
 *             raise error
 *         self._anchor_node(node)
 */
    __pyx_t_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 (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1339; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_error);
    __pyx_v_error = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1340
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:
 *             error = self._emitter_error()
 *             raise error             # <<<<<<<<<<<<<<
 *         self._anchor_node(node)
 *         self._serialize_node(node, None, None)
 */
    __Pyx_Raise(__pyx_v_error, 0, 0);
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1340; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L20;
  }
  __pyx_L20:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1341
 *             error = self._emitter_error()
 *             raise error
 *         self._anchor_node(node)             # <<<<<<<<<<<<<<
 *         self._serialize_node(node, None, None)
 *         yaml_document_end_event_initialize(&event, self.document_end_implicit)
 */
  __pyx_t_4 = ((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 (unlikely(__pyx_t_4 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1342
 *             raise error
 *         self._anchor_node(node)
 *         self._serialize_node(node, None, None)             # <<<<<<<<<<<<<<
 *         yaml_document_end_event_initialize(&event, self.document_end_implicit)
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:
 */
  __pyx_t_4 = ((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 (unlikely(__pyx_t_4 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1343
 *         self._anchor_node(node)
 *         self._serialize_node(node, None, None)
 *         yaml_document_end_event_initialize(&event, self.document_end_implicit)             # <<<<<<<<<<<<<<
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:
 *             error = self._emitter_error()
 */
  yaml_document_end_event_initialize((&__pyx_v_event), ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->document_end_implicit);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1344
 *         self._serialize_node(node, None, None)
 *         yaml_document_end_event_initialize(&event, self.document_end_implicit)
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:             # <<<<<<<<<<<<<<
 *             error = self._emitter_error()
 *             raise error
 */
  __pyx_t_4 = yaml_emitter_emit((&((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->emitter), (&__pyx_v_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1344; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_1 = (__pyx_t_4 == 0);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1345
 *         yaml_document_end_event_initialize(&event, self.document_end_implicit)
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:
 *             error = self._emitter_error()             # <<<<<<<<<<<<<<
 *             raise error
 *         self.serialized_nodes = {}
 */
    __pyx_t_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 (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1345; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_error);
    __pyx_v_error = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1346
 *         if yaml_emitter_emit(&self.emitter, &event) == 0:
 *             error = self._emitter_error()
 *             raise error             # <<<<<<<<<<<<<<
 *         self.serialized_nodes = {}
 *         self.anchors = {}
 */
    __Pyx_Raise(__pyx_v_error, 0, 0);
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L21;
  }
  __pyx_L21:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1347
 *             error = self._emitter_error()
 *             raise error
 *         self.serialized_nodes = {}             # <<<<<<<<<<<<<<
 *         self.anchors = {}
 *         self.last_alias_id = 0
 */
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_1));
  __Pyx_GIVEREF(((PyObject *)__pyx_1));
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->serialized_nodes);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->serialized_nodes);
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->serialized_nodes = ((PyObject *)__pyx_1);
  __pyx_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1348
 *             raise error
 *         self.serialized_nodes = {}
 *         self.anchors = {}             # <<<<<<<<<<<<<<
 *         self.last_alias_id = 0
 * 
 */
  __pyx_1 = PyDict_New(); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_1));
  __Pyx_GIVEREF(((PyObject *)__pyx_1));
  __Pyx_GOTREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->anchors);
  __Pyx_DECREF(((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->anchors);
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->anchors = ((PyObject *)__pyx_1);
  __pyx_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1349
 *         self.serialized_nodes = {}
 *         self.anchors = {}
 *         self.last_alias_id = 0             # <<<<<<<<<<<<<<
 * 
 *     cdef int _anchor_node(self, object node) except 0:
 */
  ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_self)->last_alias_id = 0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("_yaml.CEmitter.serialize");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_cache);
  __Pyx_DECREF(__pyx_v_handle);
  __Pyx_DECREF(__pyx_v_prefix);
  __Pyx_DECREF(__pyx_v_error);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1351
 *         self.last_alias_id = 0
 * 
 *     cdef int _anchor_node(self, object node) except 0:             # <<<<<<<<<<<<<<
 *         if node in self.anchors:
 *             if self.anchors[node] is None:
 */

static  int __pyx_f_5_yaml_8CEmitter__anchor_node(struct __pyx_obj_5_yaml_CEmitter *__pyx_v_self, PyObject *__pyx_v_node) {
  PyObject *__pyx_v_node_class;
  PyObject *__pyx_v_item;
  PyObject *__pyx_v_key;
  PyObject *__pyx_v_value;
  int __pyx_r;
  PyObject *__pyx_1 = 0;
  PyObject *__pyx_2 = 0;
  PyObject *__pyx_3 = 0;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  __Pyx_SetupRefcountContext("_anchor_node");
  __pyx_v_node_class = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_item = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_key = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1352
 * 
 *     cdef int _anchor_node(self, object node) except 0:
 *         if node in self.anchors:             # <<<<<<<<<<<<<<
 *             if self.anchors[node] is None:
 *                 self.last_alias_id = self.last_alias_id+1
 */
  __pyx_t_1 = (PySequence_Contains(__pyx_v_self->anchors, __pyx_v_node)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1353
 *     cdef int _anchor_node(self, object node) except 0:
 *         if node in self.anchors:
 *             if self.anchors[node] is None:             # <<<<<<<<<<<<<<
 *                 self.last_alias_id = self.last_alias_id+1
 *                 self.anchors[node] = u"id%03d" % self.last_alias_id
 */
    __pyx_1 = PyObject_GetItem(__pyx_v_self->anchors, __pyx_v_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = (__pyx_1 == Py_None);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1354
 *         if node in self.anchors:
 *             if self.anchors[node] is None:
 *                 self.last_alias_id = self.last_alias_id+1             # <<<<<<<<<<<<<<
 *                 self.anchors[node] = u"id%03d" % self.last_alias_id
 *         else:
 */
      __pyx_v_self->last_alias_id = (__pyx_v_self->last_alias_id + 1);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1355
 *             if self.anchors[node] is None:
 *                 self.last_alias_id = self.last_alias_id+1
 *                 self.anchors[node] = u"id%03d" % self.last_alias_id             # <<<<<<<<<<<<<<
 *         else:
 *             self.anchors[node] = None
 */
      __pyx_t_2 = PyInt_FromLong(__pyx_v_self->last_alias_id); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_124), __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      if (PyObject_SetItem(__pyx_v_self->anchors, __pyx_v_node, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L4;
    }
    __pyx_L4:;
    goto __pyx_L3;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1357
 *                 self.anchors[node] = u"id%03d" % self.last_alias_id
 *         else:
 *             self.anchors[node] = None             # <<<<<<<<<<<<<<
 *             node_class = node.__class__
 *             if node_class is SequenceNode:
 */
    if (PyObject_SetItem(__pyx_v_self->anchors, __pyx_v_node, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1358
 *         else:
 *             self.anchors[node] = None
 *             node_class = node.__class__             # <<<<<<<<<<<<<<
 *             if node_class is SequenceNode:
 *                 for item in node.value:
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_node, __pyx_kp___class__); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_node_class);
    __pyx_v_node_class = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1359
 *             self.anchors[node] = None
 *             node_class = node.__class__
 *             if node_class is SequenceNode:             # <<<<<<<<<<<<<<
 *                 for item in node.value:
 *                     self._anchor_node(item)
 */
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SequenceNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = (__pyx_v_node_class == __pyx_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1360
 *             node_class = node.__class__
 *             if node_class is SequenceNode:
 *                 for item in node.value:             # <<<<<<<<<<<<<<
 *                     self._anchor_node(item)
 *             elif node_class is MappingNode:
 */
      __pyx_t_3 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      if (PyList_CheckExact(__pyx_t_3) || PyTuple_CheckExact(__pyx_t_3)) {
        __pyx_t_4 = 0; __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2);
      } else {
        __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_2);
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      for (;;) {
        if (likely(PyList_CheckExact(__pyx_t_2))) {
          if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break;
          __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++;
        } else if (likely(PyTuple_CheckExact(__pyx_t_2))) {
          if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
          __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++;
        } else {
          __pyx_t_3 = PyIter_Next(__pyx_t_2);
          if (!__pyx_t_3) {
            if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            break;
          }
          __Pyx_GOTREF(__pyx_t_3);
        }
        __Pyx_DECREF(__pyx_v_item);
        __pyx_v_item = __pyx_t_3;
        __pyx_t_3 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1361
 *             if node_class is SequenceNode:
 *                 for item in node.value:
 *                     self._anchor_node(item)             # <<<<<<<<<<<<<<
 *             elif node_class is MappingNode:
 *                 for key, value in node.value:
 */
        __pyx_t_5 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_anchor_node(__pyx_v_self, __pyx_v_item); if (unlikely(__pyx_t_5 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1361; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      goto __pyx_L5;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1362
 *                 for item in node.value:
 *                     self._anchor_node(item)
 *             elif node_class is MappingNode:             # <<<<<<<<<<<<<<
 *                 for key, value in node.value:
 *                     self._anchor_node(key)
 */
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_MappingNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = (__pyx_v_node_class == __pyx_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1363
 *                     self._anchor_node(item)
 *             elif node_class is MappingNode:
 *                 for key, value in node.value:             # <<<<<<<<<<<<<<
 *                     self._anchor_node(key)
 *                     self._anchor_node(value)
 */
      __pyx_t_2 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      if (PyList_CheckExact(__pyx_t_2) || PyTuple_CheckExact(__pyx_t_2)) {
        __pyx_t_4 = 0; __pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3);
      } else {
        __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
      }
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      for (;;) {
        if (likely(PyList_CheckExact(__pyx_t_3))) {
          if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)) break;
          __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
        } else if (likely(PyTuple_CheckExact(__pyx_t_3))) {
          if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
          __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++;
        } else {
          __pyx_t_2 = PyIter_Next(__pyx_t_3);
          if (!__pyx_t_2) {
            if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            break;
          }
          __Pyx_GOTREF(__pyx_t_2);
        }
        if (PyTuple_CheckExact(__pyx_t_2) && likely(PyTuple_GET_SIZE(__pyx_t_2) == 2)) {
          PyObject* tuple = __pyx_t_2;
          __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
          __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __Pyx_DECREF(__pyx_v_key);
          __pyx_v_key = __pyx_2;
          __pyx_2 = 0;
          __Pyx_DECREF(__pyx_v_value);
          __pyx_v_value = __pyx_3;
          __pyx_3 = 0;
        } else {
          __pyx_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_1);
          __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
          __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_2);
          __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_3);
          if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
          __Pyx_DECREF(__pyx_v_key);
          __pyx_v_key = __pyx_2;
          __pyx_2 = 0;
          __Pyx_DECREF(__pyx_v_value);
          __pyx_v_value = __pyx_3;
          __pyx_3 = 0;
        }

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1364
 *             elif node_class is MappingNode:
 *                 for key, value in node.value:
 *                     self._anchor_node(key)             # <<<<<<<<<<<<<<
 *                     self._anchor_node(value)
 *         return 1
 */
        __pyx_t_5 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_anchor_node(__pyx_v_self, __pyx_v_key); if (unlikely(__pyx_t_5 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1364; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1365
 *                 for key, value in node.value:
 *                     self._anchor_node(key)
 *                     self._anchor_node(value)             # <<<<<<<<<<<<<<
 *         return 1
 * 
 */
        __pyx_t_5 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_anchor_node(__pyx_v_self, __pyx_v_value); if (unlikely(__pyx_t_5 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      goto __pyx_L5;
    }
    __pyx_L5:;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1366
 *                     self._anchor_node(key)
 *                     self._anchor_node(value)
 *         return 1             # <<<<<<<<<<<<<<
 * 
 *     cdef int _serialize_node(self, object node, object parent, object index) except 0:
 */
  __pyx_r = 1;
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_2);
  __Pyx_XDECREF(__pyx_3);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("_yaml.CEmitter._anchor_node");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_node_class);
  __Pyx_DECREF(__pyx_v_item);
  __Pyx_DECREF(__pyx_v_key);
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1368
 *         return 1
 * 
 *     cdef int _serialize_node(self, object node, object parent, object index) except 0:             # <<<<<<<<<<<<<<
 *         cdef yaml_event_t event
 *         cdef int implicit
 */

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) {
  yaml_event_t __pyx_v_event;
  int __pyx_v_implicit;
  int __pyx_v_plain_implicit;
  int __pyx_v_quoted_implicit;
  char *__pyx_v_anchor;
  char *__pyx_v_tag;
  char *__pyx_v_value;
  int __pyx_v_length;
  int __pyx_v_item_index;
  yaml_scalar_style_t __pyx_v_scalar_style;
  yaml_sequence_style_t __pyx_v_sequence_style;
  yaml_mapping_style_t __pyx_v_mapping_style;
  PyObject *__pyx_v_anchor_object;
  PyObject *__pyx_v_error;
  PyObject *__pyx_v_node_class;
  PyObject *__pyx_v_tag_object;
  PyObject *__pyx_v_value_object;
  PyObject *__pyx_v_style_object;
  PyObject *__pyx_v_item;
  PyObject *__pyx_v_item_key;
  PyObject *__pyx_v_item_value;
  int __pyx_r;
  PyObject *__pyx_1 = 0;
  PyObject *__pyx_2 = 0;
  PyObject *__pyx_3 = 0;
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  int __pyx_t_9;
  Py_ssize_t __pyx_t_10;
  __Pyx_SetupRefcountContext("_serialize_node");
  __pyx_v_anchor_object = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_error = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_node_class = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_tag_object = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_value_object = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_style_object = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_item = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_item_key = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_item_value = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1381
 *         cdef yaml_sequence_style_t sequence_style
 *         cdef yaml_mapping_style_t mapping_style
 *         anchor_object = self.anchors[node]             # <<<<<<<<<<<<<<
 *         anchor = NULL
 *         if anchor_object is not None:
 */
  __pyx_1 = PyObject_GetItem(__pyx_v_self->anchors, __pyx_v_node); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __Pyx_DECREF(__pyx_v_anchor_object);
  __pyx_v_anchor_object = __pyx_1;
  __pyx_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1382
 *         cdef yaml_mapping_style_t mapping_style
 *         anchor_object = self.anchors[node]
 *         anchor = NULL             # <<<<<<<<<<<<<<
 *         if anchor_object is not None:
 *             if PyUnicode_CheckExact(anchor_object):
 */
  __pyx_v_anchor = NULL;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1383
 *         anchor_object = self.anchors[node]
 *         anchor = NULL
 *         if anchor_object is not None:             # <<<<<<<<<<<<<<
 *             if PyUnicode_CheckExact(anchor_object):
 *                 anchor_object = PyUnicode_AsUTF8String(anchor_object)
 */
  __pyx_t_1 = (__pyx_v_anchor_object != Py_None);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1384
 *         anchor = NULL
 *         if anchor_object is not None:
 *             if PyUnicode_CheckExact(anchor_object):             # <<<<<<<<<<<<<<
 *                 anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *             if not PyString_CheckExact(anchor_object):
 */
    __pyx_t_2 = PyUnicode_CheckExact(__pyx_v_anchor_object);
    if (__pyx_t_2) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1385
 *         if anchor_object is not None:
 *             if PyUnicode_CheckExact(anchor_object):
 *                 anchor_object = PyUnicode_AsUTF8String(anchor_object)             # <<<<<<<<<<<<<<
 *             if not PyString_CheckExact(anchor_object):
 *                 if PY_MAJOR_VERSION < 3:
 */
      __pyx_t_3 = PyUnicode_AsUTF8String(__pyx_v_anchor_object); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1385; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_v_anchor_object);
      __pyx_v_anchor_object = __pyx_t_3;
      __pyx_t_3 = 0;
      goto __pyx_L4;
    }
    __pyx_L4:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1386
 *             if PyUnicode_CheckExact(anchor_object):
 *                 anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *             if not PyString_CheckExact(anchor_object):             # <<<<<<<<<<<<<<
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise TypeError("anchor must be a string")
 */
    __pyx_t_1 = (!PyString_CheckExact(__pyx_v_anchor_object));
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1387
 *                 anchor_object = PyUnicode_AsUTF8String(anchor_object)
 *             if not PyString_CheckExact(anchor_object):
 *                 if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                     raise TypeError("anchor must be a string")
 *                 else:
 */
      __pyx_t_1 = (PY_MAJOR_VERSION < 3);
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1388
 *             if not PyString_CheckExact(anchor_object):
 *                 if PY_MAJOR_VERSION < 3:
 *                     raise TypeError("anchor must be a string")             # <<<<<<<<<<<<<<
 *                 else:
 *                     raise TypeError(u"anchor must be a string")
 */
        __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_3));
        __Pyx_INCREF(__pyx_kp_125);
        PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_125);
        __Pyx_GIVEREF(__pyx_kp_125);
        __pyx_t_4 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
        __Pyx_Raise(__pyx_t_4, 0, 0);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L6;
      }
      /*else*/ {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1390
 *                     raise TypeError("anchor must be a string")
 *                 else:
 *                     raise TypeError(u"anchor must be a string")             # <<<<<<<<<<<<<<
 *             anchor = PyString_AS_STRING(anchor_object)
 *         if node in self.serialized_nodes:
 */
        __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(((PyObject *)__pyx_t_4));
        __Pyx_INCREF(((PyObject *)__pyx_kp_126));
        PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_126));
        __Pyx_GIVEREF(((PyObject *)__pyx_kp_126));
        __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
        __Pyx_Raise(__pyx_t_3, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      }
      __pyx_L6:;
      goto __pyx_L5;
    }
    __pyx_L5:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1391
 *                 else:
 *                     raise TypeError(u"anchor must be a string")
 *             anchor = PyString_AS_STRING(anchor_object)             # <<<<<<<<<<<<<<
 *         if node in self.serialized_nodes:
 *             if yaml_alias_event_initialize(&event, anchor) == 0:
 */
    __pyx_v_anchor = PyString_AS_STRING(__pyx_v_anchor_object);
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1392
 *                     raise TypeError(u"anchor must be a string")
 *             anchor = PyString_AS_STRING(anchor_object)
 *         if node in self.serialized_nodes:             # <<<<<<<<<<<<<<
 *             if yaml_alias_event_initialize(&event, anchor) == 0:
 *                 raise MemoryError
 */
  __pyx_t_1 = (PySequence_Contains(__pyx_v_self->serialized_nodes, __pyx_v_node)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1393
 *             anchor = PyString_AS_STRING(anchor_object)
 *         if node in self.serialized_nodes:
 *             if yaml_alias_event_initialize(&event, anchor) == 0:             # <<<<<<<<<<<<<<
 *                 raise MemoryError
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:
 */
    __pyx_t_1 = (yaml_alias_event_initialize((&__pyx_v_event), __pyx_v_anchor) == 0);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1394
 *         if node in self.serialized_nodes:
 *             if yaml_alias_event_initialize(&event, anchor) == 0:
 *                 raise MemoryError             # <<<<<<<<<<<<<<
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                 error = self._emitter_error()
 */
      __Pyx_Raise(__pyx_builtin_MemoryError, 0, 0);
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L8;
    }
    __pyx_L8:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1395
 *             if yaml_alias_event_initialize(&event, anchor) == 0:
 *                 raise MemoryError
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:             # <<<<<<<<<<<<<<
 *                 error = self._emitter_error()
 *                 raise error
 */
    __pyx_t_2 = yaml_emitter_emit((&__pyx_v_self->emitter), (&__pyx_v_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __pyx_t_1 = (__pyx_t_2 == 0);
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1396
 *                 raise MemoryError
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                 error = self._emitter_error()             # <<<<<<<<<<<<<<
 *                 raise error
 *         else:
 */
      __pyx_t_3 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_emitter_error(__pyx_v_self); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1396; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_v_error);
      __pyx_v_error = __pyx_t_3;
      __pyx_t_3 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1397
 *             if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                 error = self._emitter_error()
 *                 raise error             # <<<<<<<<<<<<<<
 *         else:
 *             node_class = node.__class__
 */
      __Pyx_Raise(__pyx_v_error, 0, 0);
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L9;
    }
    __pyx_L9:;
    goto __pyx_L7;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1399
 *                 raise error
 *         else:
 *             node_class = node.__class__             # <<<<<<<<<<<<<<
 *             self.serialized_nodes[node] = True
 *             self.descend_resolver(parent, index)
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_node, __pyx_kp___class__); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_v_node_class);
    __pyx_v_node_class = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1400
 *         else:
 *             node_class = node.__class__
 *             self.serialized_nodes[node] = True             # <<<<<<<<<<<<<<
 *             self.descend_resolver(parent, index)
 *             if node_class is ScalarNode:
 */
    __pyx_t_3 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    if (PyObject_SetItem(__pyx_v_self->serialized_nodes, __pyx_v_node, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1401
 *             node_class = node.__class__
 *             self.serialized_nodes[node] = True
 *             self.descend_resolver(parent, index)             # <<<<<<<<<<<<<<
 *             if node_class is ScalarNode:
 *                 plain_implicit = 0
 */
    __pyx_t_3 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_kp_descend_resolver); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_INCREF(__pyx_v_parent);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_parent);
    __Pyx_GIVEREF(__pyx_v_parent);
    __Pyx_INCREF(__pyx_v_index);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_index);
    __Pyx_GIVEREF(__pyx_v_index);
    __pyx_t_5 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1402
 *             self.serialized_nodes[node] = True
 *             self.descend_resolver(parent, index)
 *             if node_class is ScalarNode:             # <<<<<<<<<<<<<<
 *                 plain_implicit = 0
 *                 quoted_implicit = 0
 */
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ScalarNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_1 = (__pyx_v_node_class == __pyx_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    if (__pyx_t_1) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1403
 *             self.descend_resolver(parent, index)
 *             if node_class is ScalarNode:
 *                 plain_implicit = 0             # <<<<<<<<<<<<<<
 *                 quoted_implicit = 0
 *                 tag_object = node.tag
 */
      __pyx_v_plain_implicit = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1404
 *             if node_class is ScalarNode:
 *                 plain_implicit = 0
 *                 quoted_implicit = 0             # <<<<<<<<<<<<<<
 *                 tag_object = node.tag
 *                 if self.resolve(ScalarNode, node.value, (True, False)) == tag_object:
 */
      __pyx_v_quoted_implicit = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1405
 *                 plain_implicit = 0
 *                 quoted_implicit = 0
 *                 tag_object = node.tag             # <<<<<<<<<<<<<<
 *                 if self.resolve(ScalarNode, node.value, (True, False)) == tag_object:
 *                     plain_implicit = 1
 */
      __pyx_t_5 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_tag); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_DECREF(__pyx_v_tag_object);
      __pyx_v_tag_object = __pyx_t_5;
      __pyx_t_5 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1406
 *                 quoted_implicit = 0
 *                 tag_object = node.tag
 *                 if self.resolve(ScalarNode, node.value, (True, False)) == tag_object:             # <<<<<<<<<<<<<<
 *                     plain_implicit = 1
 *                 if self.resolve(ScalarNode, node.value, (False, True)) == tag_object:
 */
      __pyx_t_5 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_kp_resolve); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ScalarNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_4 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_value); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_6 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_7));
      PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_6);
      __Pyx_GIVEREF(__pyx_t_6);
      __pyx_t_3 = 0;
      __pyx_t_6 = 0;
      __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_6));
      PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_1);
      __Pyx_GIVEREF(__pyx_1);
      PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_4);
      PyTuple_SET_ITEM(__pyx_t_6, 2, ((PyObject *)__pyx_t_7));
      __Pyx_GIVEREF(((PyObject *)__pyx_t_7));
      __pyx_1 = 0;
      __pyx_t_4 = 0;
      __pyx_t_7 = 0;
      __pyx_t_7 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
      __pyx_t_6 = PyObject_RichCompare(__pyx_t_7, __pyx_v_tag_object, Py_EQ); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1407
 *                 tag_object = node.tag
 *                 if self.resolve(ScalarNode, node.value, (True, False)) == tag_object:
 *                     plain_implicit = 1             # <<<<<<<<<<<<<<
 *                 if self.resolve(ScalarNode, node.value, (False, True)) == tag_object:
 *                     quoted_implicit = 1
 */
        __pyx_v_plain_implicit = 1;
        goto __pyx_L11;
      }
      __pyx_L11:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1408
 *                 if self.resolve(ScalarNode, node.value, (True, False)) == tag_object:
 *                     plain_implicit = 1
 *                 if self.resolve(ScalarNode, node.value, (False, True)) == tag_object:             # <<<<<<<<<<<<<<
 *                     quoted_implicit = 1
 *                 tag = NULL
 */
      __pyx_t_6 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_kp_resolve); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_ScalarNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_7 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_value); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_5 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_3));
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_5);
      PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_4);
      __pyx_t_5 = 0;
      __pyx_t_4 = 0;
      __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_4));
      PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_1);
      __Pyx_GIVEREF(__pyx_1);
      PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_7);
      __Pyx_GIVEREF(__pyx_t_7);
      PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_t_3));
      __Pyx_GIVEREF(((PyObject *)__pyx_t_3));
      __pyx_1 = 0;
      __pyx_t_7 = 0;
      __pyx_t_3 = 0;
      __pyx_t_3 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
      __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_v_tag_object, Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1409
 *                     plain_implicit = 1
 *                 if self.resolve(ScalarNode, node.value, (False, True)) == tag_object:
 *                     quoted_implicit = 1             # <<<<<<<<<<<<<<
 *                 tag = NULL
 *                 if tag_object is not None:
 */
        __pyx_v_quoted_implicit = 1;
        goto __pyx_L12;
      }
      __pyx_L12:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1410
 *                 if self.resolve(ScalarNode, node.value, (False, True)) == tag_object:
 *                     quoted_implicit = 1
 *                 tag = NULL             # <<<<<<<<<<<<<<
 *                 if tag_object is not None:
 *                     if PyUnicode_CheckExact(tag_object):
 */
      __pyx_v_tag = NULL;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1411
 *                     quoted_implicit = 1
 *                 tag = NULL
 *                 if tag_object is not None:             # <<<<<<<<<<<<<<
 *                     if PyUnicode_CheckExact(tag_object):
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)
 */
      __pyx_t_1 = (__pyx_v_tag_object != Py_None);
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1412
 *                 tag = NULL
 *                 if tag_object is not None:
 *                     if PyUnicode_CheckExact(tag_object):             # <<<<<<<<<<<<<<
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)
 *                     if not PyString_CheckExact(tag_object):
 */
        __pyx_t_2 = PyUnicode_CheckExact(__pyx_v_tag_object);
        if (__pyx_t_2) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1413
 *                 if tag_object is not None:
 *                     if PyUnicode_CheckExact(tag_object):
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)             # <<<<<<<<<<<<<<
 *                     if not PyString_CheckExact(tag_object):
 *                         if PY_MAJOR_VERSION < 3:
 */
          __pyx_t_4 = PyUnicode_AsUTF8String(__pyx_v_tag_object); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1413; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(__pyx_v_tag_object);
          __pyx_v_tag_object = __pyx_t_4;
          __pyx_t_4 = 0;
          goto __pyx_L14;
        }
        __pyx_L14:;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1414
 *                     if PyUnicode_CheckExact(tag_object):
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)
 *                     if not PyString_CheckExact(tag_object):             # <<<<<<<<<<<<<<
 *                         if PY_MAJOR_VERSION < 3:
 *                             raise TypeError("tag must be a string")
 */
        __pyx_t_1 = (!PyString_CheckExact(__pyx_v_tag_object));
        if (__pyx_t_1) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1415
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)
 *                     if not PyString_CheckExact(tag_object):
 *                         if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                             raise TypeError("tag must be a string")
 *                         else:
 */
          __pyx_t_1 = (PY_MAJOR_VERSION < 3);
          if (__pyx_t_1) {

            /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1416
 *                     if not PyString_CheckExact(tag_object):
 *                         if PY_MAJOR_VERSION < 3:
 *                             raise TypeError("tag must be a string")             # <<<<<<<<<<<<<<
 *                         else:
 *                             raise TypeError(u"tag must be a string")
 */
            __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(((PyObject *)__pyx_t_4));
            __Pyx_INCREF(__pyx_kp_127);
            PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_127);
            __Pyx_GIVEREF(__pyx_kp_127);
            __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(__pyx_t_3);
            __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
            __Pyx_Raise(__pyx_t_3, 0, 0);
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            goto __pyx_L16;
          }
          /*else*/ {

            /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1418
 *                             raise TypeError("tag must be a string")
 *                         else:
 *                             raise TypeError(u"tag must be a string")             # <<<<<<<<<<<<<<
 *                     tag = PyString_AS_STRING(tag_object)
 *                 value_object = node.value
 */
            __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1418; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(((PyObject *)__pyx_t_3));
            __Pyx_INCREF(((PyObject *)__pyx_kp_128));
            PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_128));
            __Pyx_GIVEREF(((PyObject *)__pyx_kp_128));
            __pyx_t_4 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1418; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(__pyx_t_4);
            __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
            __Pyx_Raise(__pyx_t_4, 0, 0);
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1418; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          }
          __pyx_L16:;
          goto __pyx_L15;
        }
        __pyx_L15:;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1419
 *                         else:
 *                             raise TypeError(u"tag must be a string")
 *                     tag = PyString_AS_STRING(tag_object)             # <<<<<<<<<<<<<<
 *                 value_object = node.value
 *                 if PyUnicode_CheckExact(value_object):
 */
        __pyx_v_tag = PyString_AS_STRING(__pyx_v_tag_object);
        goto __pyx_L13;
      }
      __pyx_L13:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1420
 *                             raise TypeError(u"tag must be a string")
 *                     tag = PyString_AS_STRING(tag_object)
 *                 value_object = node.value             # <<<<<<<<<<<<<<
 *                 if PyUnicode_CheckExact(value_object):
 *                     value_object = PyUnicode_AsUTF8String(value_object)
 */
      __pyx_t_4 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_value); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1420; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_v_value_object);
      __pyx_v_value_object = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1421
 *                     tag = PyString_AS_STRING(tag_object)
 *                 value_object = node.value
 *                 if PyUnicode_CheckExact(value_object):             # <<<<<<<<<<<<<<
 *                     value_object = PyUnicode_AsUTF8String(value_object)
 *                 if not PyString_CheckExact(value_object):
 */
      __pyx_t_2 = PyUnicode_CheckExact(__pyx_v_value_object);
      if (__pyx_t_2) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1422
 *                 value_object = node.value
 *                 if PyUnicode_CheckExact(value_object):
 *                     value_object = PyUnicode_AsUTF8String(value_object)             # <<<<<<<<<<<<<<
 *                 if not PyString_CheckExact(value_object):
 *                     if PY_MAJOR_VERSION < 3:
 */
        __pyx_t_4 = PyUnicode_AsUTF8String(__pyx_v_value_object); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_v_value_object);
        __pyx_v_value_object = __pyx_t_4;
        __pyx_t_4 = 0;
        goto __pyx_L17;
      }
      __pyx_L17:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1423
 *                 if PyUnicode_CheckExact(value_object):
 *                     value_object = PyUnicode_AsUTF8String(value_object)
 *                 if not PyString_CheckExact(value_object):             # <<<<<<<<<<<<<<
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("value must be a string")
 */
      __pyx_t_1 = (!PyString_CheckExact(__pyx_v_value_object));
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1424
 *                     value_object = PyUnicode_AsUTF8String(value_object)
 *                 if not PyString_CheckExact(value_object):
 *                     if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                         raise TypeError("value must be a string")
 *                     else:
 */
        __pyx_t_1 = (PY_MAJOR_VERSION < 3);
        if (__pyx_t_1) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1425
 *                 if not PyString_CheckExact(value_object):
 *                     if PY_MAJOR_VERSION < 3:
 *                         raise TypeError("value must be a string")             # <<<<<<<<<<<<<<
 *                     else:
 *                         raise TypeError(u"value must be a string")
 */
          __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_4));
          __Pyx_INCREF(__pyx_kp_129);
          PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_129);
          __Pyx_GIVEREF(__pyx_kp_129);
          __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
          __Pyx_Raise(__pyx_t_3, 0, 0);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          goto __pyx_L19;
        }
        /*else*/ {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1427
 *                         raise TypeError("value must be a string")
 *                     else:
 *                         raise TypeError(u"value must be a string")             # <<<<<<<<<<<<<<
 *                 value = PyString_AS_STRING(value_object)
 *                 length = PyString_GET_SIZE(value_object)
 */
          __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1427; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(((PyObject *)__pyx_t_3));
          __Pyx_INCREF(((PyObject *)__pyx_kp_130));
          PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_130));
          __Pyx_GIVEREF(((PyObject *)__pyx_kp_130));
          __pyx_t_4 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1427; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_4);
          __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
          __Pyx_Raise(__pyx_t_4, 0, 0);
          __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
          {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1427; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        }
        __pyx_L19:;
        goto __pyx_L18;
      }
      __pyx_L18:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1428
 *                     else:
 *                         raise TypeError(u"value must be a string")
 *                 value = PyString_AS_STRING(value_object)             # <<<<<<<<<<<<<<
 *                 length = PyString_GET_SIZE(value_object)
 *                 style_object = node.style
 */
      __pyx_v_value = PyString_AS_STRING(__pyx_v_value_object);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1429
 *                         raise TypeError(u"value must be a string")
 *                 value = PyString_AS_STRING(value_object)
 *                 length = PyString_GET_SIZE(value_object)             # <<<<<<<<<<<<<<
 *                 style_object = node.style
 *                 scalar_style = YAML_PLAIN_SCALAR_STYLE
 */
      __pyx_v_length = PyString_GET_SIZE(__pyx_v_value_object);

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1430
 *                 value = PyString_AS_STRING(value_object)
 *                 length = PyString_GET_SIZE(value_object)
 *                 style_object = node.style             # <<<<<<<<<<<<<<
 *                 scalar_style = YAML_PLAIN_SCALAR_STYLE
 *                 if style_object == "'" or style_object == u"'":
 */
      __pyx_t_4 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_style); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1430; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_v_style_object);
      __pyx_v_style_object = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1431
 *                 length = PyString_GET_SIZE(value_object)
 *                 style_object = node.style
 *                 scalar_style = YAML_PLAIN_SCALAR_STYLE             # <<<<<<<<<<<<<<
 *                 if style_object == "'" or style_object == u"'":
 *                     scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE
 */
      __pyx_v_scalar_style = YAML_PLAIN_SCALAR_STYLE;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1432
 *                 style_object = node.style
 *                 scalar_style = YAML_PLAIN_SCALAR_STYLE
 *                 if style_object == "'" or style_object == u"'":             # <<<<<<<<<<<<<<
 *                     scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE
 *                 elif style_object == "\"" or style_object == u"\"":
 */
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_style_object, __pyx_kp_131, Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1432; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1432; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (!__pyx_t_1) {
        __pyx_t_4 = PyObject_RichCompare(__pyx_v_style_object, ((PyObject *)__pyx_kp_132), Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1432; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1432; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_9 = __pyx_t_8;
      } else {
        __pyx_t_9 = __pyx_t_1;
      }
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1433
 *                 scalar_style = YAML_PLAIN_SCALAR_STYLE
 *                 if style_object == "'" or style_object == u"'":
 *                     scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE             # <<<<<<<<<<<<<<
 *                 elif style_object == "\"" or style_object == u"\"":
 *                     scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE
 */
        __pyx_v_scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE;
        goto __pyx_L20;
      }

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1434
 *                 if style_object == "'" or style_object == u"'":
 *                     scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE
 *                 elif style_object == "\"" or style_object == u"\"":             # <<<<<<<<<<<<<<
 *                     scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE
 *                 elif style_object == "|" or style_object == u"|":
 */
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_style_object, __pyx_kp_133, Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (!__pyx_t_9) {
        __pyx_t_4 = PyObject_RichCompare(__pyx_v_style_object, ((PyObject *)__pyx_kp_134), Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_8 = __pyx_t_1;
      } else {
        __pyx_t_8 = __pyx_t_9;
      }
      if (__pyx_t_8) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1435
 *                     scalar_style = YAML_SINGLE_QUOTED_SCALAR_STYLE
 *                 elif style_object == "\"" or style_object == u"\"":
 *                     scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE             # <<<<<<<<<<<<<<
 *                 elif style_object == "|" or style_object == u"|":
 *                     scalar_style = YAML_LITERAL_SCALAR_STYLE
 */
        __pyx_v_scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE;
        goto __pyx_L20;
      }

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1436
 *                 elif style_object == "\"" or style_object == u"\"":
 *                     scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE
 *                 elif style_object == "|" or style_object == u"|":             # <<<<<<<<<<<<<<
 *                     scalar_style = YAML_LITERAL_SCALAR_STYLE
 *                 elif style_object == ">" or style_object == u">":
 */
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_style_object, __pyx_kp_135, Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (!__pyx_t_8) {
        __pyx_t_4 = PyObject_RichCompare(__pyx_v_style_object, ((PyObject *)__pyx_kp_136), Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_1 = __pyx_t_9;
      } else {
        __pyx_t_1 = __pyx_t_8;
      }
      if (__pyx_t_1) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1437
 *                     scalar_style = YAML_DOUBLE_QUOTED_SCALAR_STYLE
 *                 elif style_object == "|" or style_object == u"|":
 *                     scalar_style = YAML_LITERAL_SCALAR_STYLE             # <<<<<<<<<<<<<<
 *                 elif style_object == ">" or style_object == u">":
 *                     scalar_style = YAML_FOLDED_SCALAR_STYLE
 */
        __pyx_v_scalar_style = YAML_LITERAL_SCALAR_STYLE;
        goto __pyx_L20;
      }

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1438
 *                 elif style_object == "|" or style_object == u"|":
 *                     scalar_style = YAML_LITERAL_SCALAR_STYLE
 *                 elif style_object == ">" or style_object == u">":             # <<<<<<<<<<<<<<
 *                     scalar_style = YAML_FOLDED_SCALAR_STYLE
 *                 if yaml_scalar_event_initialize(&event, anchor, tag, value, length,
 */
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_style_object, __pyx_kp_137, Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1438; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1438; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (!__pyx_t_1) {
        __pyx_t_4 = PyObject_RichCompare(__pyx_v_style_object, ((PyObject *)__pyx_kp_138), Py_EQ); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1438; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1438; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __pyx_t_9 = __pyx_t_8;
      } else {
        __pyx_t_9 = __pyx_t_1;
      }
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1439
 *                     scalar_style = YAML_LITERAL_SCALAR_STYLE
 *                 elif style_object == ">" or style_object == u">":
 *                     scalar_style = YAML_FOLDED_SCALAR_STYLE             # <<<<<<<<<<<<<<
 *                 if yaml_scalar_event_initialize(&event, anchor, tag, value, length,
 *                         plain_implicit, quoted_implicit, scalar_style) == 0:
 */
        __pyx_v_scalar_style = YAML_FOLDED_SCALAR_STYLE;
        goto __pyx_L20;
      }
      __pyx_L20:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1441
 *                     scalar_style = YAML_FOLDED_SCALAR_STYLE
 *                 if yaml_scalar_event_initialize(&event, anchor, tag, value, length,
 *                         plain_implicit, quoted_implicit, scalar_style) == 0:             # <<<<<<<<<<<<<<
 *                     raise MemoryError
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 */
      __pyx_t_9 = (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);
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1442
 *                 if yaml_scalar_event_initialize(&event, anchor, tag, value, length,
 *                         plain_implicit, quoted_implicit, scalar_style) == 0:
 *                     raise MemoryError             # <<<<<<<<<<<<<<
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()
 */
        __Pyx_Raise(__pyx_builtin_MemoryError, 0, 0);
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1442; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L21;
      }
      __pyx_L21:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1443
 *                         plain_implicit, quoted_implicit, scalar_style) == 0:
 *                     raise MemoryError
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:             # <<<<<<<<<<<<<<
 *                     error = self._emitter_error()
 *                     raise error
 */
      __pyx_t_2 = yaml_emitter_emit((&__pyx_v_self->emitter), (&__pyx_v_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1443; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __pyx_t_9 = (__pyx_t_2 == 0);
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1444
 *                     raise MemoryError
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()             # <<<<<<<<<<<<<<
 *                     raise error
 *             elif node_class is SequenceNode:
 */
        __pyx_t_4 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_emitter_error(__pyx_v_self); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1444; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_v_error);
        __pyx_v_error = __pyx_t_4;
        __pyx_t_4 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1445
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()
 *                     raise error             # <<<<<<<<<<<<<<
 *             elif node_class is SequenceNode:
 *                 implicit = 0
 */
        __Pyx_Raise(__pyx_v_error, 0, 0);
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L22;
      }
      __pyx_L22:;
      goto __pyx_L10;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1446
 *                     error = self._emitter_error()
 *                     raise error
 *             elif node_class is SequenceNode:             # <<<<<<<<<<<<<<
 *                 implicit = 0
 *                 tag_object = node.tag
 */
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SequenceNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1446; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_9 = (__pyx_v_node_class == __pyx_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    if (__pyx_t_9) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1447
 *                     raise error
 *             elif node_class is SequenceNode:
 *                 implicit = 0             # <<<<<<<<<<<<<<
 *                 tag_object = node.tag
 *                 if self.resolve(SequenceNode, node.value, True) == tag_object:
 */
      __pyx_v_implicit = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1448
 *             elif node_class is SequenceNode:
 *                 implicit = 0
 *                 tag_object = node.tag             # <<<<<<<<<<<<<<
 *                 if self.resolve(SequenceNode, node.value, True) == tag_object:
 *                     implicit = 1
 */
      __pyx_t_4 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_tag); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1448; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_v_tag_object);
      __pyx_v_tag_object = __pyx_t_4;
      __pyx_t_4 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1449
 *                 implicit = 0
 *                 tag_object = node.tag
 *                 if self.resolve(SequenceNode, node.value, True) == tag_object:             # <<<<<<<<<<<<<<
 *                     implicit = 1
 *                 tag = NULL
 */
      __pyx_t_4 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_kp_resolve); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_SequenceNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_3 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_6 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_t_7 = PyTuple_New(3); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_7));
      PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_1);
      __Pyx_GIVEREF(__pyx_1);
      PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_7, 2, __pyx_t_6);
      __Pyx_GIVEREF(__pyx_t_6);
      __pyx_1 = 0;
      __pyx_t_3 = 0;
      __pyx_t_6 = 0;
      __pyx_t_6 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
      __pyx_t_7 = PyObject_RichCompare(__pyx_t_6, __pyx_v_tag_object, Py_EQ); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1449; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1450
 *                 tag_object = node.tag
 *                 if self.resolve(SequenceNode, node.value, True) == tag_object:
 *                     implicit = 1             # <<<<<<<<<<<<<<
 *                 tag = NULL
 *                 if tag_object is not None:
 */
        __pyx_v_implicit = 1;
        goto __pyx_L23;
      }
      __pyx_L23:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1451
 *                 if self.resolve(SequenceNode, node.value, True) == tag_object:
 *                     implicit = 1
 *                 tag = NULL             # <<<<<<<<<<<<<<
 *                 if tag_object is not None:
 *                     if PyUnicode_CheckExact(tag_object):
 */
      __pyx_v_tag = NULL;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1452
 *                     implicit = 1
 *                 tag = NULL
 *                 if tag_object is not None:             # <<<<<<<<<<<<<<
 *                     if PyUnicode_CheckExact(tag_object):
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)
 */
      __pyx_t_9 = (__pyx_v_tag_object != Py_None);
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1453
 *                 tag = NULL
 *                 if tag_object is not None:
 *                     if PyUnicode_CheckExact(tag_object):             # <<<<<<<<<<<<<<
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)
 *                     if not PyString_CheckExact(tag_object):
 */
        __pyx_t_2 = PyUnicode_CheckExact(__pyx_v_tag_object);
        if (__pyx_t_2) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1454
 *                 if tag_object is not None:
 *                     if PyUnicode_CheckExact(tag_object):
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)             # <<<<<<<<<<<<<<
 *                     if not PyString_CheckExact(tag_object):
 *                         if PY_MAJOR_VERSION < 3:
 */
          __pyx_t_7 = PyUnicode_AsUTF8String(__pyx_v_tag_object); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1454; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_7);
          __Pyx_DECREF(__pyx_v_tag_object);
          __pyx_v_tag_object = __pyx_t_7;
          __pyx_t_7 = 0;
          goto __pyx_L25;
        }
        __pyx_L25:;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1455
 *                     if PyUnicode_CheckExact(tag_object):
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)
 *                     if not PyString_CheckExact(tag_object):             # <<<<<<<<<<<<<<
 *                         if PY_MAJOR_VERSION < 3:
 *                             raise TypeError("tag must be a string")
 */
        __pyx_t_9 = (!PyString_CheckExact(__pyx_v_tag_object));
        if (__pyx_t_9) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1456
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)
 *                     if not PyString_CheckExact(tag_object):
 *                         if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                             raise TypeError("tag must be a string")
 *                         else:
 */
          __pyx_t_9 = (PY_MAJOR_VERSION < 3);
          if (__pyx_t_9) {

            /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1457
 *                     if not PyString_CheckExact(tag_object):
 *                         if PY_MAJOR_VERSION < 3:
 *                             raise TypeError("tag must be a string")             # <<<<<<<<<<<<<<
 *                         else:
 *                             raise TypeError(u"tag must be a string")
 */
            __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(((PyObject *)__pyx_t_7));
            __Pyx_INCREF(__pyx_kp_139);
            PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_kp_139);
            __Pyx_GIVEREF(__pyx_kp_139);
            __pyx_t_6 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(__pyx_t_6);
            __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
            __Pyx_Raise(__pyx_t_6, 0, 0);
            __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            goto __pyx_L27;
          }
          /*else*/ {

            /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1459
 *                             raise TypeError("tag must be a string")
 *                         else:
 *                             raise TypeError(u"tag must be a string")             # <<<<<<<<<<<<<<
 *                     tag = PyString_AS_STRING(tag_object)
 *                 sequence_style = YAML_BLOCK_SEQUENCE_STYLE
 */
            __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1459; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(((PyObject *)__pyx_t_6));
            __Pyx_INCREF(((PyObject *)__pyx_kp_140));
            PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_kp_140));
            __Pyx_GIVEREF(((PyObject *)__pyx_kp_140));
            __pyx_t_7 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1459; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(__pyx_t_7);
            __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
            __Pyx_Raise(__pyx_t_7, 0, 0);
            __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1459; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          }
          __pyx_L27:;
          goto __pyx_L26;
        }
        __pyx_L26:;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1460
 *                         else:
 *                             raise TypeError(u"tag must be a string")
 *                     tag = PyString_AS_STRING(tag_object)             # <<<<<<<<<<<<<<
 *                 sequence_style = YAML_BLOCK_SEQUENCE_STYLE
 *                 if node.flow_style:
 */
        __pyx_v_tag = PyString_AS_STRING(__pyx_v_tag_object);
        goto __pyx_L24;
      }
      __pyx_L24:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1461
 *                             raise TypeError(u"tag must be a string")
 *                     tag = PyString_AS_STRING(tag_object)
 *                 sequence_style = YAML_BLOCK_SEQUENCE_STYLE             # <<<<<<<<<<<<<<
 *                 if node.flow_style:
 *                     sequence_style = YAML_FLOW_SEQUENCE_STYLE
 */
      __pyx_v_sequence_style = YAML_BLOCK_SEQUENCE_STYLE;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1462
 *                     tag = PyString_AS_STRING(tag_object)
 *                 sequence_style = YAML_BLOCK_SEQUENCE_STYLE
 *                 if node.flow_style:             # <<<<<<<<<<<<<<
 *                     sequence_style = YAML_FLOW_SEQUENCE_STYLE
 *                 if yaml_sequence_start_event_initialize(&event, anchor, tag,
 */
      __pyx_t_7 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_flow_style); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1463
 *                 sequence_style = YAML_BLOCK_SEQUENCE_STYLE
 *                 if node.flow_style:
 *                     sequence_style = YAML_FLOW_SEQUENCE_STYLE             # <<<<<<<<<<<<<<
 *                 if yaml_sequence_start_event_initialize(&event, anchor, tag,
 *                         implicit, sequence_style) == 0:
 */
        __pyx_v_sequence_style = YAML_FLOW_SEQUENCE_STYLE;
        goto __pyx_L28;
      }
      __pyx_L28:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1465
 *                     sequence_style = YAML_FLOW_SEQUENCE_STYLE
 *                 if yaml_sequence_start_event_initialize(&event, anchor, tag,
 *                         implicit, sequence_style) == 0:             # <<<<<<<<<<<<<<
 *                     raise MemoryError
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 */
      __pyx_t_9 = (yaml_sequence_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0);
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1466
 *                 if yaml_sequence_start_event_initialize(&event, anchor, tag,
 *                         implicit, sequence_style) == 0:
 *                     raise MemoryError             # <<<<<<<<<<<<<<
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()
 */
        __Pyx_Raise(__pyx_builtin_MemoryError, 0, 0);
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L29;
      }
      __pyx_L29:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1467
 *                         implicit, sequence_style) == 0:
 *                     raise MemoryError
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:             # <<<<<<<<<<<<<<
 *                     error = self._emitter_error()
 *                     raise error
 */
      __pyx_t_2 = yaml_emitter_emit((&__pyx_v_self->emitter), (&__pyx_v_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __pyx_t_9 = (__pyx_t_2 == 0);
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1468
 *                     raise MemoryError
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()             # <<<<<<<<<<<<<<
 *                     raise error
 *                 item_index = 0
 */
        __pyx_t_7 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_emitter_error(__pyx_v_self); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_7);
        __Pyx_DECREF(__pyx_v_error);
        __pyx_v_error = __pyx_t_7;
        __pyx_t_7 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1469
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()
 *                     raise error             # <<<<<<<<<<<<<<
 *                 item_index = 0
 *                 for item in node.value:
 */
        __Pyx_Raise(__pyx_v_error, 0, 0);
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1469; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L30;
      }
      __pyx_L30:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1470
 *                     error = self._emitter_error()
 *                     raise error
 *                 item_index = 0             # <<<<<<<<<<<<<<
 *                 for item in node.value:
 *                     self._serialize_node(item, node, item_index)
 */
      __pyx_v_item_index = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1471
 *                     raise error
 *                 item_index = 0
 *                 for item in node.value:             # <<<<<<<<<<<<<<
 *                     self._serialize_node(item, node, item_index)
 *                     item_index = item_index+1
 */
      __pyx_t_7 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_value); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_7);
      if (PyList_CheckExact(__pyx_t_7) || PyTuple_CheckExact(__pyx_t_7)) {
        __pyx_t_10 = 0; __pyx_t_6 = __pyx_t_7; __Pyx_INCREF(__pyx_t_6);
      } else {
        __pyx_t_10 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_6);
      }
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      for (;;) {
        if (likely(PyList_CheckExact(__pyx_t_6))) {
          if (__pyx_t_10 >= PyList_GET_SIZE(__pyx_t_6)) break;
          __pyx_t_7 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_10); __Pyx_INCREF(__pyx_t_7); __pyx_t_10++;
        } else if (likely(PyTuple_CheckExact(__pyx_t_6))) {
          if (__pyx_t_10 >= PyTuple_GET_SIZE(__pyx_t_6)) break;
          __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_10); __Pyx_INCREF(__pyx_t_7); __pyx_t_10++;
        } else {
          __pyx_t_7 = PyIter_Next(__pyx_t_6);
          if (!__pyx_t_7) {
            if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            break;
          }
          __Pyx_GOTREF(__pyx_t_7);
        }
        __Pyx_DECREF(__pyx_v_item);
        __pyx_v_item = __pyx_t_7;
        __pyx_t_7 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1472
 *                 item_index = 0
 *                 for item in node.value:
 *                     self._serialize_node(item, node, item_index)             # <<<<<<<<<<<<<<
 *                     item_index = item_index+1
 *                 yaml_sequence_end_event_initialize(&event)
 */
        __pyx_t_7 = PyInt_FromLong(__pyx_v_item_index); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_7);
        __pyx_t_2 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_serialize_node(__pyx_v_self, __pyx_v_item, __pyx_v_node, __pyx_t_7); if (unlikely(__pyx_t_2 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1472; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1473
 *                 for item in node.value:
 *                     self._serialize_node(item, node, item_index)
 *                     item_index = item_index+1             # <<<<<<<<<<<<<<
 *                 yaml_sequence_end_event_initialize(&event)
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 */
        __pyx_v_item_index = (__pyx_v_item_index + 1);
      }
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1474
 *                     self._serialize_node(item, node, item_index)
 *                     item_index = item_index+1
 *                 yaml_sequence_end_event_initialize(&event)             # <<<<<<<<<<<<<<
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()
 */
      yaml_sequence_end_event_initialize((&__pyx_v_event));

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1475
 *                     item_index = item_index+1
 *                 yaml_sequence_end_event_initialize(&event)
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:             # <<<<<<<<<<<<<<
 *                     error = self._emitter_error()
 *                     raise error
 */
      __pyx_t_2 = yaml_emitter_emit((&__pyx_v_self->emitter), (&__pyx_v_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __pyx_t_9 = (__pyx_t_2 == 0);
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1476
 *                 yaml_sequence_end_event_initialize(&event)
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()             # <<<<<<<<<<<<<<
 *                     raise error
 *             elif node_class is MappingNode:
 */
        __pyx_t_6 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_emitter_error(__pyx_v_self); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_6);
        __Pyx_DECREF(__pyx_v_error);
        __pyx_v_error = __pyx_t_6;
        __pyx_t_6 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1477
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()
 *                     raise error             # <<<<<<<<<<<<<<
 *             elif node_class is MappingNode:
 *                 implicit = 0
 */
        __Pyx_Raise(__pyx_v_error, 0, 0);
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1477; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L33;
      }
      __pyx_L33:;
      goto __pyx_L10;
    }

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1478
 *                     error = self._emitter_error()
 *                     raise error
 *             elif node_class is MappingNode:             # <<<<<<<<<<<<<<
 *                 implicit = 0
 *                 tag_object = node.tag
 */
    __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_MappingNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_1);
    __pyx_t_9 = (__pyx_v_node_class == __pyx_1);
    __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
    if (__pyx_t_9) {

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1479
 *                     raise error
 *             elif node_class is MappingNode:
 *                 implicit = 0             # <<<<<<<<<<<<<<
 *                 tag_object = node.tag
 *                 if self.resolve(MappingNode, node.value, True) == tag_object:
 */
      __pyx_v_implicit = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1480
 *             elif node_class is MappingNode:
 *                 implicit = 0
 *                 tag_object = node.tag             # <<<<<<<<<<<<<<
 *                 if self.resolve(MappingNode, node.value, True) == tag_object:
 *                     implicit = 1
 */
      __pyx_t_6 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_tag); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_v_tag_object);
      __pyx_v_tag_object = __pyx_t_6;
      __pyx_t_6 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1481
 *                 implicit = 0
 *                 tag_object = node.tag
 *                 if self.resolve(MappingNode, node.value, True) == tag_object:             # <<<<<<<<<<<<<<
 *                     implicit = 1
 *                 tag = NULL
 */
      __pyx_t_6 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_kp_resolve); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_6);
      __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_MappingNode); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_1);
      __pyx_t_7 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_value); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_7);
      __pyx_t_4 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_3));
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_1);
      __Pyx_GIVEREF(__pyx_1);
      PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_7);
      __Pyx_GIVEREF(__pyx_t_7);
      PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_4);
      __pyx_1 = 0;
      __pyx_t_7 = 0;
      __pyx_t_4 = 0;
      __pyx_t_4 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
      __pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_v_tag_object, Py_EQ); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1482
 *                 tag_object = node.tag
 *                 if self.resolve(MappingNode, node.value, True) == tag_object:
 *                     implicit = 1             # <<<<<<<<<<<<<<
 *                 tag = NULL
 *                 if tag_object is not None:
 */
        __pyx_v_implicit = 1;
        goto __pyx_L34;
      }
      __pyx_L34:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1483
 *                 if self.resolve(MappingNode, node.value, True) == tag_object:
 *                     implicit = 1
 *                 tag = NULL             # <<<<<<<<<<<<<<
 *                 if tag_object is not None:
 *                     if PyUnicode_CheckExact(tag_object):
 */
      __pyx_v_tag = NULL;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1484
 *                     implicit = 1
 *                 tag = NULL
 *                 if tag_object is not None:             # <<<<<<<<<<<<<<
 *                     if PyUnicode_CheckExact(tag_object):
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)
 */
      __pyx_t_9 = (__pyx_v_tag_object != Py_None);
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1485
 *                 tag = NULL
 *                 if tag_object is not None:
 *                     if PyUnicode_CheckExact(tag_object):             # <<<<<<<<<<<<<<
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)
 *                     if not PyString_CheckExact(tag_object):
 */
        __pyx_t_2 = PyUnicode_CheckExact(__pyx_v_tag_object);
        if (__pyx_t_2) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1486
 *                 if tag_object is not None:
 *                     if PyUnicode_CheckExact(tag_object):
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)             # <<<<<<<<<<<<<<
 *                     if not PyString_CheckExact(tag_object):
 *                         if PY_MAJOR_VERSION < 3:
 */
          __pyx_t_3 = PyUnicode_AsUTF8String(__pyx_v_tag_object); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1486; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_t_3);
          __Pyx_DECREF(__pyx_v_tag_object);
          __pyx_v_tag_object = __pyx_t_3;
          __pyx_t_3 = 0;
          goto __pyx_L36;
        }
        __pyx_L36:;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1487
 *                     if PyUnicode_CheckExact(tag_object):
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)
 *                     if not PyString_CheckExact(tag_object):             # <<<<<<<<<<<<<<
 *                         if PY_MAJOR_VERSION < 3:
 *                             raise TypeError("tag must be a string")
 */
        __pyx_t_9 = (!PyString_CheckExact(__pyx_v_tag_object));
        if (__pyx_t_9) {

          /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1488
 *                         tag_object = PyUnicode_AsUTF8String(tag_object)
 *                     if not PyString_CheckExact(tag_object):
 *                         if PY_MAJOR_VERSION < 3:             # <<<<<<<<<<<<<<
 *                             raise TypeError("tag must be a string")
 *                         else:
 */
          __pyx_t_9 = (PY_MAJOR_VERSION < 3);
          if (__pyx_t_9) {

            /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1489
 *                     if not PyString_CheckExact(tag_object):
 *                         if PY_MAJOR_VERSION < 3:
 *                             raise TypeError("tag must be a string")             # <<<<<<<<<<<<<<
 *                         else:
 *                             raise TypeError(u"tag must be a string")
 */
            __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(((PyObject *)__pyx_t_3));
            __Pyx_INCREF(__pyx_kp_141);
            PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_141);
            __Pyx_GIVEREF(__pyx_kp_141);
            __pyx_t_4 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(__pyx_t_4);
            __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
            __Pyx_Raise(__pyx_t_4, 0, 0);
            __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            goto __pyx_L38;
          }
          /*else*/ {

            /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1491
 *                             raise TypeError("tag must be a string")
 *                         else:
 *                             raise TypeError(u"tag must be a string")             # <<<<<<<<<<<<<<
 *                     tag = PyString_AS_STRING(tag_object)
 *                 mapping_style = YAML_BLOCK_MAPPING_STYLE
 */
            __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(((PyObject *)__pyx_t_4));
            __Pyx_INCREF(((PyObject *)__pyx_kp_142));
            PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_142));
            __Pyx_GIVEREF(((PyObject *)__pyx_kp_142));
            __pyx_t_3 = PyObject_Call(__pyx_builtin_TypeError, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            __Pyx_GOTREF(__pyx_t_3);
            __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
            __Pyx_Raise(__pyx_t_3, 0, 0);
            __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
            {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1491; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          }
          __pyx_L38:;
          goto __pyx_L37;
        }
        __pyx_L37:;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1492
 *                         else:
 *                             raise TypeError(u"tag must be a string")
 *                     tag = PyString_AS_STRING(tag_object)             # <<<<<<<<<<<<<<
 *                 mapping_style = YAML_BLOCK_MAPPING_STYLE
 *                 if node.flow_style:
 */
        __pyx_v_tag = PyString_AS_STRING(__pyx_v_tag_object);
        goto __pyx_L35;
      }
      __pyx_L35:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1493
 *                             raise TypeError(u"tag must be a string")
 *                     tag = PyString_AS_STRING(tag_object)
 *                 mapping_style = YAML_BLOCK_MAPPING_STYLE             # <<<<<<<<<<<<<<
 *                 if node.flow_style:
 *                     mapping_style = YAML_FLOW_MAPPING_STYLE
 */
      __pyx_v_mapping_style = YAML_BLOCK_MAPPING_STYLE;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1494
 *                     tag = PyString_AS_STRING(tag_object)
 *                 mapping_style = YAML_BLOCK_MAPPING_STYLE
 *                 if node.flow_style:             # <<<<<<<<<<<<<<
 *                     mapping_style = YAML_FLOW_MAPPING_STYLE
 *                 if yaml_mapping_start_event_initialize(&event, anchor, tag,
 */
      __pyx_t_3 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_flow_style); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1494; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1494; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1495
 *                 mapping_style = YAML_BLOCK_MAPPING_STYLE
 *                 if node.flow_style:
 *                     mapping_style = YAML_FLOW_MAPPING_STYLE             # <<<<<<<<<<<<<<
 *                 if yaml_mapping_start_event_initialize(&event, anchor, tag,
 *                         implicit, mapping_style) == 0:
 */
        __pyx_v_mapping_style = YAML_FLOW_MAPPING_STYLE;
        goto __pyx_L39;
      }
      __pyx_L39:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1497
 *                     mapping_style = YAML_FLOW_MAPPING_STYLE
 *                 if yaml_mapping_start_event_initialize(&event, anchor, tag,
 *                         implicit, mapping_style) == 0:             # <<<<<<<<<<<<<<
 *                     raise MemoryError
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 */
      __pyx_t_9 = (yaml_mapping_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0);
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1498
 *                 if yaml_mapping_start_event_initialize(&event, anchor, tag,
 *                         implicit, mapping_style) == 0:
 *                     raise MemoryError             # <<<<<<<<<<<<<<
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()
 */
        __Pyx_Raise(__pyx_builtin_MemoryError, 0, 0);
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1498; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L40;
      }
      __pyx_L40:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1499
 *                         implicit, mapping_style) == 0:
 *                     raise MemoryError
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:             # <<<<<<<<<<<<<<
 *                     error = self._emitter_error()
 *                     raise error
 */
      __pyx_t_2 = yaml_emitter_emit((&__pyx_v_self->emitter), (&__pyx_v_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __pyx_t_9 = (__pyx_t_2 == 0);
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1500
 *                     raise MemoryError
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()             # <<<<<<<<<<<<<<
 *                     raise error
 *                 for item_key, item_value in node.value:
 */
        __pyx_t_3 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_emitter_error(__pyx_v_self); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1500; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_v_error);
        __pyx_v_error = __pyx_t_3;
        __pyx_t_3 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1501
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()
 *                     raise error             # <<<<<<<<<<<<<<
 *                 for item_key, item_value in node.value:
 *                     self._serialize_node(item_key, node, None)
 */
        __Pyx_Raise(__pyx_v_error, 0, 0);
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L41;
      }
      __pyx_L41:;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1502
 *                     error = self._emitter_error()
 *                     raise error
 *                 for item_key, item_value in node.value:             # <<<<<<<<<<<<<<
 *                     self._serialize_node(item_key, node, None)
 *                     self._serialize_node(item_value, node, item_key)
 */
      __pyx_t_3 = PyObject_GetAttr(__pyx_v_node, __pyx_kp_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      if (PyList_CheckExact(__pyx_t_3) || PyTuple_CheckExact(__pyx_t_3)) {
        __pyx_t_10 = 0; __pyx_t_4 = __pyx_t_3; __Pyx_INCREF(__pyx_t_4);
      } else {
        __pyx_t_10 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      for (;;) {
        if (likely(PyList_CheckExact(__pyx_t_4))) {
          if (__pyx_t_10 >= PyList_GET_SIZE(__pyx_t_4)) break;
          __pyx_t_3 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_10); __Pyx_INCREF(__pyx_t_3); __pyx_t_10++;
        } else if (likely(PyTuple_CheckExact(__pyx_t_4))) {
          if (__pyx_t_10 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
          __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_10); __Pyx_INCREF(__pyx_t_3); __pyx_t_10++;
        } else {
          __pyx_t_3 = PyIter_Next(__pyx_t_4);
          if (!__pyx_t_3) {
            if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
            break;
          }
          __Pyx_GOTREF(__pyx_t_3);
        }
        if (PyTuple_CheckExact(__pyx_t_3) && likely(PyTuple_GET_SIZE(__pyx_t_3) == 2)) {
          PyObject* tuple = __pyx_t_3;
          __pyx_2 = PyTuple_GET_ITEM(tuple, 0); __Pyx_INCREF(__pyx_2);
          __pyx_3 = PyTuple_GET_ITEM(tuple, 1); __Pyx_INCREF(__pyx_3);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __Pyx_DECREF(__pyx_v_item_key);
          __pyx_v_item_key = __pyx_2;
          __pyx_2 = 0;
          __Pyx_DECREF(__pyx_v_item_value);
          __pyx_v_item_value = __pyx_3;
          __pyx_3 = 0;
        } else {
          __pyx_1 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_1);
          __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
          __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (unlikely(!__pyx_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_2);
          __pyx_3 = __Pyx_UnpackItem(__pyx_1, 1); if (unlikely(!__pyx_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_GOTREF(__pyx_3);
          if (__Pyx_EndUnpack(__pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
          __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
          __Pyx_DECREF(__pyx_v_item_key);
          __pyx_v_item_key = __pyx_2;
          __pyx_2 = 0;
          __Pyx_DECREF(__pyx_v_item_value);
          __pyx_v_item_value = __pyx_3;
          __pyx_3 = 0;
        }

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1503
 *                     raise error
 *                 for item_key, item_value in node.value:
 *                     self._serialize_node(item_key, node, None)             # <<<<<<<<<<<<<<
 *                     self._serialize_node(item_value, node, item_key)
 *                 yaml_mapping_end_event_initialize(&event)
 */
        __pyx_t_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 (unlikely(__pyx_t_2 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1504
 *                 for item_key, item_value in node.value:
 *                     self._serialize_node(item_key, node, None)
 *                     self._serialize_node(item_value, node, item_key)             # <<<<<<<<<<<<<<
 *                 yaml_mapping_end_event_initialize(&event)
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 */
        __pyx_t_2 = ((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 (unlikely(__pyx_t_2 == 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      }
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1505
 *                     self._serialize_node(item_key, node, None)
 *                     self._serialize_node(item_value, node, item_key)
 *                 yaml_mapping_end_event_initialize(&event)             # <<<<<<<<<<<<<<
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()
 */
      yaml_mapping_end_event_initialize((&__pyx_v_event));

      /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1506
 *                     self._serialize_node(item_value, node, item_key)
 *                 yaml_mapping_end_event_initialize(&event)
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:             # <<<<<<<<<<<<<<
 *                     error = self._emitter_error()
 *                     raise error
 */
      __pyx_t_2 = yaml_emitter_emit((&__pyx_v_self->emitter), (&__pyx_v_event)); if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1506; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __pyx_t_9 = (__pyx_t_2 == 0);
      if (__pyx_t_9) {

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1507
 *                 yaml_mapping_end_event_initialize(&event)
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()             # <<<<<<<<<<<<<<
 *                     raise error
 *             self.ascend_resolver()
 */
        __pyx_t_4 = ((struct __pyx_vtabstruct_5_yaml_CEmitter *)__pyx_v_self->__pyx_vtab)->_emitter_error(__pyx_v_self); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_DECREF(__pyx_v_error);
        __pyx_v_error = __pyx_t_4;
        __pyx_t_4 = 0;

        /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1508
 *                 if yaml_emitter_emit(&self.emitter, &event) == 0:
 *                     error = self._emitter_error()
 *                     raise error             # <<<<<<<<<<<<<<
 *             self.ascend_resolver()
 *         return 1
 */
        __Pyx_Raise(__pyx_v_error, 0, 0);
        {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        goto __pyx_L44;
      }
      __pyx_L44:;
      goto __pyx_L10;
    }
    __pyx_L10:;

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1509
 *                     error = self._emitter_error()
 *                     raise error
 *             self.ascend_resolver()             # <<<<<<<<<<<<<<
 *         return 1
 * 
 */
    __pyx_t_4 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_kp_ascend_resolver); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __pyx_L7:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1510
 *                     raise error
 *             self.ascend_resolver()
 *         return 1             # <<<<<<<<<<<<<<
 * 
 * cdef int output_handler(void *data, char *buffer, int size) except 0:
 */
  __pyx_r = 1;
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_2);
  __Pyx_XDECREF(__pyx_3);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("_yaml.CEmitter._serialize_node");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_anchor_object);
  __Pyx_DECREF(__pyx_v_error);
  __Pyx_DECREF(__pyx_v_node_class);
  __Pyx_DECREF(__pyx_v_tag_object);
  __Pyx_DECREF(__pyx_v_value_object);
  __Pyx_DECREF(__pyx_v_style_object);
  __Pyx_DECREF(__pyx_v_item);
  __Pyx_DECREF(__pyx_v_item_key);
  __Pyx_DECREF(__pyx_v_item_value);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

/* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1512
 *         return 1
 * 
 * cdef int output_handler(void *data, char *buffer, int size) except 0:             # <<<<<<<<<<<<<<
 *     cdef CEmitter emitter
 *     emitter = <CEmitter>data
 */

static  int __pyx_f_5_yaml_output_handler(void *__pyx_v_data, char *__pyx_v_buffer, int __pyx_v_size) {
  struct __pyx_obj_5_yaml_CEmitter *__pyx_v_emitter;
  PyObject *__pyx_v_value;
  int __pyx_r;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_SetupRefcountContext("output_handler");
  __pyx_v_emitter = ((struct __pyx_obj_5_yaml_CEmitter *)Py_None); __Pyx_INCREF(Py_None);
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1514
 * cdef int output_handler(void *data, char *buffer, int size) except 0:
 *     cdef CEmitter emitter
 *     emitter = <CEmitter>data             # <<<<<<<<<<<<<<
 *     if emitter.dump_unicode == 0:
 *         value = PyString_FromStringAndSize(buffer, size)
 */
  __Pyx_INCREF(((PyObject *)((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_data)));
  __Pyx_DECREF(((PyObject *)__pyx_v_emitter));
  __pyx_v_emitter = ((struct __pyx_obj_5_yaml_CEmitter *)__pyx_v_data);

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1515
 *     cdef CEmitter emitter
 *     emitter = <CEmitter>data
 *     if emitter.dump_unicode == 0:             # <<<<<<<<<<<<<<
 *         value = PyString_FromStringAndSize(buffer, size)
 *     else:
 */
  __pyx_t_1 = (__pyx_v_emitter->dump_unicode == 0);
  if (__pyx_t_1) {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1516
 *     emitter = <CEmitter>data
 *     if emitter.dump_unicode == 0:
 *         value = PyString_FromStringAndSize(buffer, size)             # <<<<<<<<<<<<<<
 *     else:
 *         value = PyUnicode_DecodeUTF8(buffer, size, 'strict')
 */
    __pyx_t_2 = PyString_FromStringAndSize(__pyx_v_buffer, __pyx_v_size); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1516; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_value);
    __pyx_v_value = __pyx_t_2;
    __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  /*else*/ {

    /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1518
 *         value = PyString_FromStringAndSize(buffer, size)
 *     else:
 *         value = PyUnicode_DecodeUTF8(buffer, size, 'strict')             # <<<<<<<<<<<<<<
 *     emitter.stream.write(value)
 *     return 1
 */
    __pyx_t_2 = PyUnicode_DecodeUTF8(__pyx_v_buffer, __pyx_v_size, __pyx_k_143); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_v_value);
    __pyx_v_value = __pyx_t_2;
    __pyx_t_2 = 0;
  }
  __pyx_L3:;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1519
 *     else:
 *         value = PyUnicode_DecodeUTF8(buffer, size, 'strict')
 *     emitter.stream.write(value)             # <<<<<<<<<<<<<<
 *     return 1
 * 
 */
  __pyx_t_2 = PyObject_GetAttr(__pyx_v_emitter->stream, __pyx_kp_write); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __Pyx_INCREF(__pyx_v_value);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":1520
 *         value = PyUnicode_DecodeUTF8(buffer, size, 'strict')
 *     emitter.stream.write(value)
 *     return 1             # <<<<<<<<<<<<<<
 * 
 */
  __pyx_r = 1;
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("_yaml.output_handler");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF((PyObject *)__pyx_v_emitter);
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_FinishRefcountContext();
  return __pyx_r;
}

static PyObject *__pyx_tp_new_5_yaml_Mark(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_5_yaml_Mark *p;
  PyObject *o = (*t->tp_alloc)(t, 0);
  if (!o) return 0;
  p = ((struct __pyx_obj_5_yaml_Mark *)o);
  p->name = Py_None; Py_INCREF(Py_None);
  p->buffer = Py_None; Py_INCREF(Py_None);
  p->pointer = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_5_yaml_Mark(PyObject *o) {
  struct __pyx_obj_5_yaml_Mark *p = (struct __pyx_obj_5_yaml_Mark *)o;
  Py_XDECREF(p->name);
  Py_XDECREF(p->buffer);
  Py_XDECREF(p->pointer);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_5_yaml_Mark(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_yaml_Mark *p = (struct __pyx_obj_5_yaml_Mark *)o;
  if (p->name) {
    e = (*v)(p->name, a); if (e) return e;
  }
  if (p->buffer) {
    e = (*v)(p->buffer, a); if (e) return e;
  }
  if (p->pointer) {
    e = (*v)(p->pointer, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_yaml_Mark(PyObject *o) {
  struct __pyx_obj_5_yaml_Mark *p = (struct __pyx_obj_5_yaml_Mark *)o;
  PyObject* tmp;
  tmp = ((PyObject*)p->name);
  p->name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->buffer);
  p->buffer = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->pointer);
  p->pointer = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static struct PyMethodDef __pyx_methods_5_yaml_Mark[] = {
  {__Pyx_NAMESTR("get_snippet"), (PyCFunction)__pyx_pf_5_yaml_4Mark_get_snippet, METH_NOARGS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("__str__"), (PyCFunction)__pyx_pf_5_yaml_4Mark___str__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
  {0, 0, 0, 0}
};

static struct PyMemberDef __pyx_members_5_yaml_Mark[] = {
  {(char *)"name", T_OBJECT, offsetof(struct __pyx_obj_5_yaml_Mark, name), READONLY, 0},
  {(char *)"index", T_INT, offsetof(struct __pyx_obj_5_yaml_Mark, index), READONLY, 0},
  {(char *)"line", T_INT, offsetof(struct __pyx_obj_5_yaml_Mark, line), READONLY, 0},
  {(char *)"column", T_INT, offsetof(struct __pyx_obj_5_yaml_Mark, column), READONLY, 0},
  {(char *)"buffer", T_OBJECT, offsetof(struct __pyx_obj_5_yaml_Mark, buffer), READONLY, 0},
  {(char *)"pointer", T_OBJECT, offsetof(struct __pyx_obj_5_yaml_Mark, pointer), READONLY, 0},
  {0, 0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_Mark = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION >= 3
  0, /*reserved*/
  #else
  0, /*nb_long*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  #if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
  0, /*nb_index*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_Mark = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_Mark = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_Mark = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_getbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_releasebuffer*/
  #endif
};

PyTypeObject __pyx_type_5_yaml_Mark = {
  PyVarObject_HEAD_INIT(0, 0)
  __Pyx_NAMESTR("_yaml.Mark"), /*tp_name*/
  sizeof(struct __pyx_obj_5_yaml_Mark), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_yaml_Mark, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_compare*/
  0, /*tp_repr*/
  &__pyx_tp_as_number_Mark, /*tp_as_number*/
  &__pyx_tp_as_sequence_Mark, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_Mark, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pf_5_yaml_4Mark___str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_Mark, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_yaml_Mark, /*tp_traverse*/
  __pyx_tp_clear_5_yaml_Mark, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_yaml_Mark, /*tp_methods*/
  __pyx_members_5_yaml_Mark, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pf_5_yaml_4Mark___init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_yaml_Mark, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
};
static struct __pyx_vtabstruct_5_yaml_CParser __pyx_vtable_5_yaml_CParser;

static PyObject *__pyx_tp_new_5_yaml_CParser(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_5_yaml_CParser *p;
  PyObject *o = (*t->tp_alloc)(t, 0);
  if (!o) return 0;
  p = ((struct __pyx_obj_5_yaml_CParser *)o);
  p->__pyx_vtab = __pyx_vtabptr_5_yaml_CParser;
  p->stream = Py_None; Py_INCREF(Py_None);
  p->stream_name = Py_None; Py_INCREF(Py_None);
  p->current_token = Py_None; Py_INCREF(Py_None);
  p->current_event = Py_None; Py_INCREF(Py_None);
  p->anchors = Py_None; Py_INCREF(Py_None);
  p->stream_cache = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_5_yaml_CParser(PyObject *o) {
  struct __pyx_obj_5_yaml_CParser *p = (struct __pyx_obj_5_yaml_CParser *)o;
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pf_5_yaml_7CParser___dealloc__(o);
    if (PyErr_Occurred()) PyErr_WriteUnraisable(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_XDECREF(p->stream);
  Py_XDECREF(p->stream_name);
  Py_XDECREF(p->current_token);
  Py_XDECREF(p->current_event);
  Py_XDECREF(p->anchors);
  Py_XDECREF(p->stream_cache);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_5_yaml_CParser(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_yaml_CParser *p = (struct __pyx_obj_5_yaml_CParser *)o;
  if (p->stream) {
    e = (*v)(p->stream, a); if (e) return e;
  }
  if (p->stream_name) {
    e = (*v)(p->stream_name, a); if (e) return e;
  }
  if (p->current_token) {
    e = (*v)(p->current_token, a); if (e) return e;
  }
  if (p->current_event) {
    e = (*v)(p->current_event, a); if (e) return e;
  }
  if (p->anchors) {
    e = (*v)(p->anchors, a); if (e) return e;
  }
  if (p->stream_cache) {
    e = (*v)(p->stream_cache, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_yaml_CParser(PyObject *o) {
  struct __pyx_obj_5_yaml_CParser *p = (struct __pyx_obj_5_yaml_CParser *)o;
  PyObject* tmp;
  tmp = ((PyObject*)p->stream);
  p->stream = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->stream_name);
  p->stream_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->current_token);
  p->current_token = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->current_event);
  p->current_event = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->anchors);
  p->anchors = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->stream_cache);
  p->stream_cache = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static struct PyMethodDef __pyx_methods_5_yaml_CParser[] = {
  {__Pyx_NAMESTR("raw_scan"), (PyCFunction)__pyx_pf_5_yaml_7CParser_raw_scan, METH_NOARGS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("get_token"), (PyCFunction)__pyx_pf_5_yaml_7CParser_get_token, METH_NOARGS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("peek_token"), (PyCFunction)__pyx_pf_5_yaml_7CParser_peek_token, METH_NOARGS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("check_token"), (PyCFunction)__pyx_pf_5_yaml_7CParser_check_token, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("raw_parse"), (PyCFunction)__pyx_pf_5_yaml_7CParser_raw_parse, METH_NOARGS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("get_event"), (PyCFunction)__pyx_pf_5_yaml_7CParser_get_event, METH_NOARGS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("peek_event"), (PyCFunction)__pyx_pf_5_yaml_7CParser_peek_event, METH_NOARGS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("check_event"), (PyCFunction)__pyx_pf_5_yaml_7CParser_check_event, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("check_node"), (PyCFunction)__pyx_pf_5_yaml_7CParser_check_node, METH_NOARGS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("get_node"), (PyCFunction)__pyx_pf_5_yaml_7CParser_get_node, METH_NOARGS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("get_single_node"), (PyCFunction)__pyx_pf_5_yaml_7CParser_get_single_node, METH_NOARGS, __Pyx_DOCSTR(0)},
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_CParser = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION >= 3
  0, /*reserved*/
  #else
  0, /*nb_long*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  #if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
  0, /*nb_index*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_CParser = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_CParser = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_CParser = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_getbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_releasebuffer*/
  #endif
};

PyTypeObject __pyx_type_5_yaml_CParser = {
  PyVarObject_HEAD_INIT(0, 0)
  __Pyx_NAMESTR("_yaml.CParser"), /*tp_name*/
  sizeof(struct __pyx_obj_5_yaml_CParser), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_yaml_CParser, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_compare*/
  0, /*tp_repr*/
  &__pyx_tp_as_number_CParser, /*tp_as_number*/
  &__pyx_tp_as_sequence_CParser, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_CParser, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_CParser, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_yaml_CParser, /*tp_traverse*/
  __pyx_tp_clear_5_yaml_CParser, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_yaml_CParser, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pf_5_yaml_7CParser___init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_yaml_CParser, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
};
static struct __pyx_vtabstruct_5_yaml_CEmitter __pyx_vtable_5_yaml_CEmitter;

static PyObject *__pyx_tp_new_5_yaml_CEmitter(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_5_yaml_CEmitter *p;
  PyObject *o = (*t->tp_alloc)(t, 0);
  if (!o) return 0;
  p = ((struct __pyx_obj_5_yaml_CEmitter *)o);
  p->__pyx_vtab = __pyx_vtabptr_5_yaml_CEmitter;
  p->stream = Py_None; Py_INCREF(Py_None);
  p->use_version = Py_None; Py_INCREF(Py_None);
  p->use_tags = Py_None; Py_INCREF(Py_None);
  p->serialized_nodes = Py_None; Py_INCREF(Py_None);
  p->anchors = Py_None; Py_INCREF(Py_None);
  p->use_encoding = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_5_yaml_CEmitter(PyObject *o) {
  struct __pyx_obj_5_yaml_CEmitter *p = (struct __pyx_obj_5_yaml_CEmitter *)o;
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    ++Py_REFCNT(o);
    __pyx_pf_5_yaml_8CEmitter___dealloc__(o);
    if (PyErr_Occurred()) PyErr_WriteUnraisable(o);
    --Py_REFCNT(o);
    PyErr_Restore(etype, eval, etb);
  }
  Py_XDECREF(p->stream);
  Py_XDECREF(p->use_version);
  Py_XDECREF(p->use_tags);
  Py_XDECREF(p->serialized_nodes);
  Py_XDECREF(p->anchors);
  Py_XDECREF(p->use_encoding);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_5_yaml_CEmitter(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_5_yaml_CEmitter *p = (struct __pyx_obj_5_yaml_CEmitter *)o;
  if (p->stream) {
    e = (*v)(p->stream, a); if (e) return e;
  }
  if (p->use_version) {
    e = (*v)(p->use_version, a); if (e) return e;
  }
  if (p->use_tags) {
    e = (*v)(p->use_tags, a); if (e) return e;
  }
  if (p->serialized_nodes) {
    e = (*v)(p->serialized_nodes, a); if (e) return e;
  }
  if (p->anchors) {
    e = (*v)(p->anchors, a); if (e) return e;
  }
  if (p->use_encoding) {
    e = (*v)(p->use_encoding, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_5_yaml_CEmitter(PyObject *o) {
  struct __pyx_obj_5_yaml_CEmitter *p = (struct __pyx_obj_5_yaml_CEmitter *)o;
  PyObject* tmp;
  tmp = ((PyObject*)p->stream);
  p->stream = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->use_version);
  p->use_version = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->use_tags);
  p->use_tags = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->serialized_nodes);
  p->serialized_nodes = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->anchors);
  p->anchors = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->use_encoding);
  p->use_encoding = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static struct PyMethodDef __pyx_methods_5_yaml_CEmitter[] = {
  {__Pyx_NAMESTR("emit"), (PyCFunction)__pyx_pf_5_yaml_8CEmitter_emit, METH_O, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("open"), (PyCFunction)__pyx_pf_5_yaml_8CEmitter_open, METH_NOARGS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("close"), (PyCFunction)__pyx_pf_5_yaml_8CEmitter_close, METH_NOARGS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("serialize"), (PyCFunction)__pyx_pf_5_yaml_8CEmitter_serialize, METH_O, __Pyx_DOCSTR(0)},
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_CEmitter = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION >= 3
  0, /*reserved*/
  #else
  0, /*nb_long*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  #if (PY_MAJOR_VERSION >= 3) || (Py_TPFLAGS_DEFAULT & Py_TPFLAGS_HAVE_INDEX)
  0, /*nb_index*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_CEmitter = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_CEmitter = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_CEmitter = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_getbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_releasebuffer*/
  #endif
};

PyTypeObject __pyx_type_5_yaml_CEmitter = {
  PyVarObject_HEAD_INIT(0, 0)
  __Pyx_NAMESTR("_yaml.CEmitter"), /*tp_name*/
  sizeof(struct __pyx_obj_5_yaml_CEmitter), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_5_yaml_CEmitter, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_compare*/
  0, /*tp_repr*/
  &__pyx_tp_as_number_CEmitter, /*tp_as_number*/
  &__pyx_tp_as_sequence_CEmitter, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_CEmitter, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_CEmitter, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_5_yaml_CEmitter, /*tp_traverse*/
  __pyx_tp_clear_5_yaml_CEmitter, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_5_yaml_CEmitter, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pf_5_yaml_8CEmitter___init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_5_yaml_CEmitter, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
};

static struct PyMethodDef __pyx_methods[] = {
  {__Pyx_NAMESTR("get_version_string"), (PyCFunction)__pyx_pf_5_yaml_get_version_string, METH_NOARGS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("get_version"), (PyCFunction)__pyx_pf_5_yaml_get_version, METH_NOARGS, __Pyx_DOCSTR(0)},
  {0, 0, 0, 0}
};

static void __pyx_init_filenames(void); /*proto*/

#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef __pyx_moduledef = {
    PyModuleDef_HEAD_INIT,
    __Pyx_NAMESTR("_yaml"),
    0, /* m_doc */
    -1, /* m_size */
    __pyx_methods /* m_methods */,
    NULL, /* m_reload */
    NULL, /* m_traverse */
    NULL, /* m_clear */
    NULL /* m_free */
};
#endif

static __Pyx_StringTabEntry __pyx_string_tab[] = {
  {&__pyx_kp___main__, __pyx_k___main__, sizeof(__pyx_k___main__), 1, 1, 1},
  {&__pyx_kp___init__, __pyx_k___init__, sizeof(__pyx_k___init__), 1, 1, 1},
  {&__pyx_kp_get_snippet, __pyx_k_get_snippet, sizeof(__pyx_k_get_snippet), 1, 1, 1},
  {&__pyx_kp___str__, __pyx_k___str__, sizeof(__pyx_k___str__), 1, 1, 1},
  {&__pyx_kp___dealloc__, __pyx_k___dealloc__, sizeof(__pyx_k___dealloc__), 1, 1, 1},
  {&__pyx_kp_raw_scan, __pyx_k_raw_scan, sizeof(__pyx_k_raw_scan), 1, 1, 1},
  {&__pyx_kp_get_token, __pyx_k_get_token, sizeof(__pyx_k_get_token), 1, 1, 1},
  {&__pyx_kp_peek_token, __pyx_k_peek_token, sizeof(__pyx_k_peek_token), 1, 1, 1},
  {&__pyx_kp_check_token, __pyx_k_check_token, sizeof(__pyx_k_check_token), 1, 1, 1},
  {&__pyx_kp_raw_parse, __pyx_k_raw_parse, sizeof(__pyx_k_raw_parse), 1, 1, 1},
  {&__pyx_kp_get_event, __pyx_k_get_event, sizeof(__pyx_k_get_event), 1, 1, 1},
  {&__pyx_kp_peek_event, __pyx_k_peek_event, sizeof(__pyx_k_peek_event), 1, 1, 1},
  {&__pyx_kp_check_event, __pyx_k_check_event, sizeof(__pyx_k_check_event), 1, 1, 1},
  {&__pyx_kp_check_node, __pyx_k_check_node, sizeof(__pyx_k_check_node), 1, 1, 1},
  {&__pyx_kp_get_node, __pyx_k_get_node, sizeof(__pyx_k_get_node), 1, 1, 1},
  {&__pyx_kp_get_single_node, __pyx_k_get_single_node, sizeof(__pyx_k_get_single_node), 1, 1, 1},
  {&__pyx_kp_emit, __pyx_k_emit, sizeof(__pyx_k_emit), 1, 1, 1},
  {&__pyx_kp_open, __pyx_k_open, sizeof(__pyx_k_open), 1, 1, 1},
  {&__pyx_kp_close, __pyx_k_close, sizeof(__pyx_k_close), 1, 1, 1},
  {&__pyx_kp_serialize, __pyx_k_serialize, sizeof(__pyx_k_serialize), 1, 1, 1},
  {&__pyx_kp_name, __pyx_k_name, sizeof(__pyx_k_name), 1, 1, 1},
  {&__pyx_kp_index, __pyx_k_index, sizeof(__pyx_k_index), 1, 1, 1},
  {&__pyx_kp_line, __pyx_k_line, sizeof(__pyx_k_line), 1, 1, 1},
  {&__pyx_kp_column, __pyx_k_column, sizeof(__pyx_k_column), 1, 1, 1},
  {&__pyx_kp_buffer, __pyx_k_buffer, sizeof(__pyx_k_buffer), 1, 1, 1},
  {&__pyx_kp_pointer, __pyx_k_pointer, sizeof(__pyx_k_pointer), 1, 1, 1},
  {&__pyx_kp_stream, __pyx_k_stream, sizeof(__pyx_k_stream), 1, 1, 1},
  {&__pyx_kp_canonical, __pyx_k_canonical, sizeof(__pyx_k_canonical), 1, 1, 1},
  {&__pyx_kp_indent, __pyx_k_indent, sizeof(__pyx_k_indent), 1, 1, 1},
  {&__pyx_kp_width, __pyx_k_width, sizeof(__pyx_k_width), 1, 1, 1},
  {&__pyx_kp_allow_unicode, __pyx_k_allow_unicode, sizeof(__pyx_k_allow_unicode), 1, 1, 1},
  {&__pyx_kp_line_break, __pyx_k_line_break, sizeof(__pyx_k_line_break), 1, 1, 1},
  {&__pyx_kp_encoding, __pyx_k_encoding, sizeof(__pyx_k_encoding), 1, 1, 1},
  {&__pyx_kp_explicit_start, __pyx_k_explicit_start, sizeof(__pyx_k_explicit_start), 1, 1, 1},
  {&__pyx_kp_explicit_end, __pyx_k_explicit_end, sizeof(__pyx_k_explicit_end), 1, 1, 1},
  {&__pyx_kp_version, __pyx_k_version, sizeof(__pyx_k_version), 1, 1, 1},
  {&__pyx_kp_tags, __pyx_k_tags, sizeof(__pyx_k_tags), 1, 1, 1},
  {&__pyx_kp_event_object, __pyx_k_event_object, sizeof(__pyx_k_event_object), 1, 1, 1},
  {&__pyx_kp_node, __pyx_k_node, sizeof(__pyx_k_node), 1, 1, 1},
  {&__pyx_kp_yaml, __pyx_k_yaml, sizeof(__pyx_k_yaml), 1, 1, 1},
  {&__pyx_kp_error, __pyx_k_error, sizeof(__pyx_k_error), 1, 1, 1},
  {&__pyx_kp_YAMLError, __pyx_k_YAMLError, sizeof(__pyx_k_YAMLError), 1, 1, 1},
  {&__pyx_kp_reader, __pyx_k_reader, sizeof(__pyx_k_reader), 1, 1, 1},
  {&__pyx_kp_ReaderError, __pyx_k_ReaderError, sizeof(__pyx_k_ReaderError), 1, 1, 1},
  {&__pyx_kp_scanner, __pyx_k_scanner, sizeof(__pyx_k_scanner), 1, 1, 1},
  {&__pyx_kp_ScannerError, __pyx_k_ScannerError, sizeof(__pyx_k_ScannerError), 1, 1, 1},
  {&__pyx_kp_parser, __pyx_k_parser, sizeof(__pyx_k_parser), 1, 1, 1},
  {&__pyx_kp_ParserError, __pyx_k_ParserError, sizeof(__pyx_k_ParserError), 1, 1, 1},
  {&__pyx_kp_composer, __pyx_k_composer, sizeof(__pyx_k_composer), 1, 1, 1},
  {&__pyx_kp_ComposerError, __pyx_k_ComposerError, sizeof(__pyx_k_ComposerError), 1, 1, 1},
  {&__pyx_kp_constructor, __pyx_k_constructor, sizeof(__pyx_k_constructor), 1, 1, 1},
  {&__pyx_kp_ConstructorError, __pyx_k_ConstructorError, sizeof(__pyx_k_ConstructorError), 1, 1, 1},
  {&__pyx_kp_emitter, __pyx_k_emitter, sizeof(__pyx_k_emitter), 1, 1, 1},
  {&__pyx_kp_EmitterError, __pyx_k_EmitterError, sizeof(__pyx_k_EmitterError), 1, 1, 1},
  {&__pyx_kp_serializer, __pyx_k_serializer, sizeof(__pyx_k_serializer), 1, 1, 1},
  {&__pyx_kp_SerializerError, __pyx_k_SerializerError, sizeof(__pyx_k_SerializerError), 1, 1, 1},
  {&__pyx_kp_representer, __pyx_k_representer, sizeof(__pyx_k_representer), 1, 1, 1},
  {&__pyx_kp_RepresenterError, __pyx_k_RepresenterError, sizeof(__pyx_k_RepresenterError), 1, 1, 1},
  {&__pyx_kp_tokens, __pyx_k_tokens, sizeof(__pyx_k_tokens), 1, 1, 1},
  {&__pyx_kp_StreamStartToken, __pyx_k_StreamStartToken, sizeof(__pyx_k_StreamStartToken), 1, 1, 1},
  {&__pyx_kp_StreamEndToken, __pyx_k_StreamEndToken, sizeof(__pyx_k_StreamEndToken), 1, 1, 1},
  {&__pyx_kp_DirectiveToken, __pyx_k_DirectiveToken, sizeof(__pyx_k_DirectiveToken), 1, 1, 1},
  {&__pyx_kp_DocumentStartToken, __pyx_k_DocumentStartToken, sizeof(__pyx_k_DocumentStartToken), 1, 1, 1},
  {&__pyx_kp_DocumentEndToken, __pyx_k_DocumentEndToken, sizeof(__pyx_k_DocumentEndToken), 1, 1, 1},
  {&__pyx_kp_1, __pyx_k_1, sizeof(__pyx_k_1), 1, 1, 1},
  {&__pyx_kp_2, __pyx_k_2, sizeof(__pyx_k_2), 1, 1, 1},
  {&__pyx_kp_BlockEndToken, __pyx_k_BlockEndToken, sizeof(__pyx_k_BlockEndToken), 1, 1, 1},
  {&__pyx_kp_3, __pyx_k_3, sizeof(__pyx_k_3), 1, 1, 1},
  {&__pyx_kp_4, __pyx_k_4, sizeof(__pyx_k_4), 1, 1, 1},
  {&__pyx_kp_5, __pyx_k_5, sizeof(__pyx_k_5), 1, 1, 1},
  {&__pyx_kp_FlowMappingEndToken, __pyx_k_FlowMappingEndToken, sizeof(__pyx_k_FlowMappingEndToken), 1, 1, 1},
  {&__pyx_kp_KeyToken, __pyx_k_KeyToken, sizeof(__pyx_k_KeyToken), 1, 1, 1},
  {&__pyx_kp_ValueToken, __pyx_k_ValueToken, sizeof(__pyx_k_ValueToken), 1, 1, 1},
  {&__pyx_kp_BlockEntryToken, __pyx_k_BlockEntryToken, sizeof(__pyx_k_BlockEntryToken), 1, 1, 1},
  {&__pyx_kp_FlowEntryToken, __pyx_k_FlowEntryToken, sizeof(__pyx_k_FlowEntryToken), 1, 1, 1},
  {&__pyx_kp_AliasToken, __pyx_k_AliasToken, sizeof(__pyx_k_AliasToken), 1, 1, 1},
  {&__pyx_kp_AnchorToken, __pyx_k_AnchorToken, sizeof(__pyx_k_AnchorToken), 1, 1, 1},
  {&__pyx_kp_TagToken, __pyx_k_TagToken, sizeof(__pyx_k_TagToken), 1, 1, 1},
  {&__pyx_kp_ScalarToken, __pyx_k_ScalarToken, sizeof(__pyx_k_ScalarToken), 1, 1, 1},
  {&__pyx_kp_events, __pyx_k_events, sizeof(__pyx_k_events), 1, 1, 1},
  {&__pyx_kp_StreamStartEvent, __pyx_k_StreamStartEvent, sizeof(__pyx_k_StreamStartEvent), 1, 1, 1},
  {&__pyx_kp_StreamEndEvent, __pyx_k_StreamEndEvent, sizeof(__pyx_k_StreamEndEvent), 1, 1, 1},
  {&__pyx_kp_DocumentStartEvent, __pyx_k_DocumentStartEvent, sizeof(__pyx_k_DocumentStartEvent), 1, 1, 1},
  {&__pyx_kp_DocumentEndEvent, __pyx_k_DocumentEndEvent, sizeof(__pyx_k_DocumentEndEvent), 1, 1, 1},
  {&__pyx_kp_AliasEvent, __pyx_k_AliasEvent, sizeof(__pyx_k_AliasEvent), 1, 1, 1},
  {&__pyx_kp_ScalarEvent, __pyx_k_ScalarEvent, sizeof(__pyx_k_ScalarEvent), 1, 1, 1},
  {&__pyx_kp_SequenceStartEvent, __pyx_k_SequenceStartEvent, sizeof(__pyx_k_SequenceStartEvent), 1, 1, 1},
  {&__pyx_kp_SequenceEndEvent, __pyx_k_SequenceEndEvent, sizeof(__pyx_k_SequenceEndEvent), 1, 1, 1},
  {&__pyx_kp_MappingStartEvent, __pyx_k_MappingStartEvent, sizeof(__pyx_k_MappingStartEvent), 1, 1, 1},
  {&__pyx_kp_MappingEndEvent, __pyx_k_MappingEndEvent, sizeof(__pyx_k_MappingEndEvent), 1, 1, 1},
  {&__pyx_kp_nodes, __pyx_k_nodes, sizeof(__pyx_k_nodes), 1, 1, 1},
  {&__pyx_kp_ScalarNode, __pyx_k_ScalarNode, sizeof(__pyx_k_ScalarNode), 1, 1, 1},
  {&__pyx_kp_SequenceNode, __pyx_k_SequenceNode, sizeof(__pyx_k_SequenceNode), 1, 1, 1},
  {&__pyx_kp_MappingNode, __pyx_k_MappingNode, sizeof(__pyx_k_MappingNode), 1, 1, 1},
  {&__pyx_kp_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 1, 1, 1},
  {&__pyx_kp_read, __pyx_k_read, sizeof(__pyx_k_read), 1, 1, 1},
  {&__pyx_kp_AttributeError, __pyx_k_AttributeError, sizeof(__pyx_k_AttributeError), 1, 1, 1},
  {&__pyx_kp_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 1, 1, 1},
  {&__pyx_kp_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 1, 1, 1},
  {&__pyx_kp_22, __pyx_k_22, sizeof(__pyx_k_22), 1, 1, 0},
  {&__pyx_kp_23, __pyx_k_23, sizeof(__pyx_k_23), 1, 1, 0},
  {&__pyx_kp___class__, __pyx_k___class__, sizeof(__pyx_k___class__), 1, 1, 1},
  {&__pyx_kp_start_mark, __pyx_k_start_mark, sizeof(__pyx_k_start_mark), 1, 1, 1},
  {&__pyx_kp_descend_resolver, __pyx_k_descend_resolver, sizeof(__pyx_k_descend_resolver), 1, 1, 1},
  {&__pyx_kp_ascend_resolver, __pyx_k_ascend_resolver, sizeof(__pyx_k_ascend_resolver), 1, 1, 1},
  {&__pyx_kp_resolve, __pyx_k_resolve, sizeof(__pyx_k_resolve), 1, 1, 1},
  {&__pyx_kp_append, __pyx_k_append, sizeof(__pyx_k_append), 1, 1, 1},
  {&__pyx_kp_end_mark, __pyx_k_end_mark, sizeof(__pyx_k_end_mark), 1, 1, 1},
  {&__pyx_kp_61, __pyx_k_61, sizeof(__pyx_k_61), 0, 1, 0},
  {&__pyx_kp_62, __pyx_k_62, sizeof(__pyx_k_62), 1, 1, 0},
  {&__pyx_kp_explicit, __pyx_k_explicit, sizeof(__pyx_k_explicit), 1, 1, 1},
  {&__pyx_kp_anchor, __pyx_k_anchor, sizeof(__pyx_k_anchor), 1, 1, 1},
  {&__pyx_kp_tag, __pyx_k_tag, sizeof(__pyx_k_tag), 1, 1, 1},
  {&__pyx_kp_value, __pyx_k_value, sizeof(__pyx_k_value), 1, 1, 1},
  {&__pyx_kp_implicit, __pyx_k_implicit, sizeof(__pyx_k_implicit), 1, 1, 1},
  {&__pyx_kp_style, __pyx_k_style, sizeof(__pyx_k_style), 1, 1, 1},
  {&__pyx_kp_flow_style, __pyx_k_flow_style, sizeof(__pyx_k_flow_style), 1, 1, 1},
  {&__pyx_kp_write, __pyx_k_write, sizeof(__pyx_k_write), 1, 1, 1},
  {&__pyx_kp_6, __pyx_k_6, sizeof(__pyx_k_6), 0, 0, 0},
  {&__pyx_kp_7, __pyx_k_7, sizeof(__pyx_k_7), 0, 0, 0},
  {&__pyx_kp_8, __pyx_k_8, sizeof(__pyx_k_8), 1, 0, 0},
  {&__pyx_kp_9, __pyx_k_9, sizeof(__pyx_k_9), 0, 0, 0},
  {&__pyx_kp_10, __pyx_k_10, sizeof(__pyx_k_10), 1, 0, 0},
  {&__pyx_kp_11, __pyx_k_11, sizeof(__pyx_k_11), 0, 0, 0},
  {&__pyx_kp_12, __pyx_k_12, sizeof(__pyx_k_12), 1, 0, 0},
  {&__pyx_kp_13, __pyx_k_13, sizeof(__pyx_k_13), 0, 0, 0},
  {&__pyx_kp_14, __pyx_k_14, sizeof(__pyx_k_14), 1, 0, 0},
  {&__pyx_kp_15, __pyx_k_15, sizeof(__pyx_k_15), 0, 0, 0},
  {&__pyx_kp_16, __pyx_k_16, sizeof(__pyx_k_16), 1, 0, 0},
  {&__pyx_kp_17, __pyx_k_17, sizeof(__pyx_k_17), 0, 0, 0},
  {&__pyx_kp_18, __pyx_k_18, sizeof(__pyx_k_18), 1, 0, 0},
  {&__pyx_kp_19, __pyx_k_19, sizeof(__pyx_k_19), 1, 0, 0},
  {&__pyx_kp_20, __pyx_k_20, sizeof(__pyx_k_20), 1, 0, 0},
  {&__pyx_kp_21, __pyx_k_21, sizeof(__pyx_k_21), 1, 0, 0},
  {&__pyx_kp_25, __pyx_k_25, sizeof(__pyx_k_25), 1, 0, 0},
  {&__pyx_kp_26, __pyx_k_26, sizeof(__pyx_k_26), 1, 0, 0},
  {&__pyx_kp_27, __pyx_k_27, sizeof(__pyx_k_27), 1, 0, 0},
  {&__pyx_kp_28, __pyx_k_28, sizeof(__pyx_k_28), 1, 0, 0},
  {&__pyx_kp_29, __pyx_k_29, sizeof(__pyx_k_29), 1, 0, 0},
  {&__pyx_kp_30, __pyx_k_30, sizeof(__pyx_k_30), 0, 0, 0},
  {&__pyx_kp_31, __pyx_k_31, sizeof(__pyx_k_31), 1, 0, 0},
  {&__pyx_kp_32, __pyx_k_32, sizeof(__pyx_k_32), 1, 0, 0},
  {&__pyx_kp_33, __pyx_k_33, sizeof(__pyx_k_33), 1, 0, 0},
  {&__pyx_kp_34, __pyx_k_34, sizeof(__pyx_k_34), 1, 0, 0},
  {&__pyx_kp_36, __pyx_k_36, sizeof(__pyx_k_36), 1, 0, 0},
  {&__pyx_kp_37, __pyx_k_37, sizeof(__pyx_k_37), 1, 0, 0},
  {&__pyx_kp_38, __pyx_k_38, sizeof(__pyx_k_38), 1, 0, 0},
  {&__pyx_kp_39, __pyx_k_39, sizeof(__pyx_k_39), 1, 0, 0},
  {&__pyx_kp_40, __pyx_k_40, sizeof(__pyx_k_40), 1, 0, 0},
  {&__pyx_kp_41, __pyx_k_41, sizeof(__pyx_k_41), 0, 0, 0},
  {&__pyx_kp_42, __pyx_k_42, sizeof(__pyx_k_42), 1, 0, 0},
  {&__pyx_kp_43, __pyx_k_43, sizeof(__pyx_k_43), 0, 0, 0},
  {&__pyx_kp_44, __pyx_k_44, sizeof(__pyx_k_44), 0, 0, 0},
  {&__pyx_kp_45, __pyx_k_45, sizeof(__pyx_k_45), 1, 0, 0},
  {&__pyx_kp_46, __pyx_k_46, sizeof(__pyx_k_46), 1, 0, 0},
  {&__pyx_kp_47, __pyx_k_47, sizeof(__pyx_k_47), 0, 0, 0},
  {&__pyx_kp_48, __pyx_k_48, sizeof(__pyx_k_48), 1, 0, 0},
  {&__pyx_kp_49, __pyx_k_49, sizeof(__pyx_k_49), 0, 0, 0},
  {&__pyx_kp_50, __pyx_k_50, sizeof(__pyx_k_50), 0, 0, 0},
  {&__pyx_kp_51, __pyx_k_51, sizeof(__pyx_k_51), 1, 0, 0},
  {&__pyx_kp_52, __pyx_k_52, sizeof(__pyx_k_52), 1, 0, 0},
  {&__pyx_kp_54, __pyx_k_54, sizeof(__pyx_k_54), 1, 0, 0},
  {&__pyx_kp_55, __pyx_k_55, sizeof(__pyx_k_55), 1, 0, 0},
  {&__pyx_kp_56, __pyx_k_56, sizeof(__pyx_k_56), 1, 0, 0},
  {&__pyx_kp_57, __pyx_k_57, sizeof(__pyx_k_57), 1, 0, 0},
  {&__pyx_kp_58, __pyx_k_58, sizeof(__pyx_k_58), 1, 0, 0},
  {&__pyx_kp_59, __pyx_k_59, sizeof(__pyx_k_59), 0, 0, 0},
  {&__pyx_kp_60, __pyx_k_60, sizeof(__pyx_k_60), 1, 0, 0},
  {&__pyx_kp_63, __pyx_k_63, sizeof(__pyx_k_63), 0, 0, 0},
  {&__pyx_kp_64, __pyx_k_64, sizeof(__pyx_k_64), 0, 0, 0},
  {&__pyx_kp_65, __pyx_k_65, sizeof(__pyx_k_65), 0, 0, 0},
  {&__pyx_kp_66, __pyx_k_66, sizeof(__pyx_k_66), 0, 0, 0},
  {&__pyx_kp_67, __pyx_k_67, sizeof(__pyx_k_67), 1, 0, 0},
  {&__pyx_kp_68, __pyx_k_68, sizeof(__pyx_k_68), 1, 0, 0},
  {&__pyx_kp_69, __pyx_k_69, sizeof(__pyx_k_69), 0, 0, 0},
  {&__pyx_kp_70, __pyx_k_70, sizeof(__pyx_k_70), 1, 0, 0},
  {&__pyx_kp_71, __pyx_k_71, sizeof(__pyx_k_71), 0, 0, 0},
  {&__pyx_kp_72, __pyx_k_72, sizeof(__pyx_k_72), 0, 0, 0},
  {&__pyx_kp_73, __pyx_k_73, sizeof(__pyx_k_73), 1, 0, 0},
  {&__pyx_kp_74, __pyx_k_74, sizeof(__pyx_k_74), 0, 0, 0},
  {&__pyx_kp_75, __pyx_k_75, sizeof(__pyx_k_75), 1, 0, 0},
  {&__pyx_kp_76, __pyx_k_76, sizeof(__pyx_k_76), 0, 0, 0},
  {&__pyx_kp_77, __pyx_k_77, sizeof(__pyx_k_77), 1, 0, 0},
  {&__pyx_kp_78, __pyx_k_78, sizeof(__pyx_k_78), 0, 0, 0},
  {&__pyx_kp_79, __pyx_k_79, sizeof(__pyx_k_79), 1, 0, 0},
  {&__pyx_kp_80, __pyx_k_80, sizeof(__pyx_k_80), 0, 0, 0},
  {&__pyx_kp_81, __pyx_k_81, sizeof(__pyx_k_81), 1, 0, 0},
  {&__pyx_kp_82, __pyx_k_82, sizeof(__pyx_k_82), 0, 0, 0},
  {&__pyx_kp_83, __pyx_k_83, sizeof(__pyx_k_83), 1, 0, 0},
  {&__pyx_kp_84, __pyx_k_84, sizeof(__pyx_k_84), 0, 0, 0},
  {&__pyx_kp_85, __pyx_k_85, sizeof(__pyx_k_85), 1, 0, 0},
  {&__pyx_kp_86, __pyx_k_86, sizeof(__pyx_k_86), 0, 0, 0},
  {&__pyx_kp_87, __pyx_k_87, sizeof(__pyx_k_87), 1, 0, 0},
  {&__pyx_kp_88, __pyx_k_88, sizeof(__pyx_k_88), 0, 0, 0},
  {&__pyx_kp_89, __pyx_k_89, sizeof(__pyx_k_89), 1, 0, 0},
  {&__pyx_kp_90, __pyx_k_90, sizeof(__pyx_k_90), 0, 0, 0},
  {&__pyx_kp_91, __pyx_k_91, sizeof(__pyx_k_91), 1, 0, 0},
  {&__pyx_kp_92, __pyx_k_92, sizeof(__pyx_k_92), 0, 0, 0},
  {&__pyx_kp_93, __pyx_k_93, sizeof(__pyx_k_93), 1, 0, 0},
  {&__pyx_kp_94, __pyx_k_94, sizeof(__pyx_k_94), 0, 0, 0},
  {&__pyx_kp_95, __pyx_k_95, sizeof(__pyx_k_95), 1, 0, 0},
  {&__pyx_kp_96, __pyx_k_96, sizeof(__pyx_k_96), 0, 0, 0},
  {&__pyx_kp_97, __pyx_k_97, sizeof(__pyx_k_97), 1, 0, 0},
  {&__pyx_kp_98, __pyx_k_98, sizeof(__pyx_k_98), 0, 0, 0},
  {&__pyx_kp_99, __pyx_k_99, sizeof(__pyx_k_99), 1, 0, 0},
  {&__pyx_kp_100, __pyx_k_100, sizeof(__pyx_k_100), 0, 0, 0},
  {&__pyx_kp_101, __pyx_k_101, sizeof(__pyx_k_101), 1, 0, 0},
  {&__pyx_kp_102, __pyx_k_102, sizeof(__pyx_k_102), 0, 0, 0},
  {&__pyx_kp_103, __pyx_k_103, sizeof(__pyx_k_103), 1, 0, 0},
  {&__pyx_kp_104, __pyx_k_104, sizeof(__pyx_k_104), 1, 0, 0},
  {&__pyx_kp_105, __pyx_k_105, sizeof(__pyx_k_105), 0, 0, 0},
  {&__pyx_kp_106, __pyx_k_106, sizeof(__pyx_k_106), 1, 0, 0},
  {&__pyx_kp_107, __pyx_k_107, sizeof(__pyx_k_107), 0, 0, 0},
  {&__pyx_kp_108, __pyx_k_108, sizeof(__pyx_k_108), 0, 0, 0},
  {&__pyx_kp_109, __pyx_k_109, sizeof(__pyx_k_109), 1, 0, 0},
  {&__pyx_kp_110, __pyx_k_110, sizeof(__pyx_k_110), 0, 0, 0},
  {&__pyx_kp_111, __pyx_k_111, sizeof(__pyx_k_111), 1, 0, 0},
  {&__pyx_kp_112, __pyx_k_112, sizeof(__pyx_k_112), 0, 0, 0},
  {&__pyx_kp_113, __pyx_k_113, sizeof(__pyx_k_113), 1, 0, 0},
  {&__pyx_kp_114, __pyx_k_114, sizeof(__pyx_k_114), 0, 0, 0},
  {&__pyx_kp_115, __pyx_k_115, sizeof(__pyx_k_115), 1, 0, 0},
  {&__pyx_kp_116, __pyx_k_116, sizeof(__pyx_k_116), 0, 0, 0},
  {&__pyx_kp_117, __pyx_k_117, sizeof(__pyx_k_117), 1, 0, 0},
  {&__pyx_kp_118, __pyx_k_118, sizeof(__pyx_k_118), 0, 0, 0},
  {&__pyx_kp_119, __pyx_k_119, sizeof(__pyx_k_119), 1, 0, 0},
  {&__pyx_kp_120, __pyx_k_120, sizeof(__pyx_k_120), 0, 0, 0},
  {&__pyx_kp_121, __pyx_k_121, sizeof(__pyx_k_121), 1, 0, 0},
  {&__pyx_kp_122, __pyx_k_122, sizeof(__pyx_k_122), 0, 0, 0},
  {&__pyx_kp_123, __pyx_k_123, sizeof(__pyx_k_123), 1, 0, 0},
  {&__pyx_kp_124, __pyx_k_124, sizeof(__pyx_k_124), 1, 0, 0},
  {&__pyx_kp_125, __pyx_k_125, sizeof(__pyx_k_125), 0, 0, 0},
  {&__pyx_kp_126, __pyx_k_126, sizeof(__pyx_k_126), 1, 0, 0},
  {&__pyx_kp_127, __pyx_k_127, sizeof(__pyx_k_127), 0, 0, 0},
  {&__pyx_kp_128, __pyx_k_128, sizeof(__pyx_k_128), 1, 0, 0},
  {&__pyx_kp_129, __pyx_k_129, sizeof(__pyx_k_129), 0, 0, 0},
  {&__pyx_kp_130, __pyx_k_130, sizeof(__pyx_k_130), 1, 0, 0},
  {&__pyx_kp_131, __pyx_k_131, sizeof(__pyx_k_131), 0, 0, 0},
  {&__pyx_kp_132, __pyx_k_132, sizeof(__pyx_k_132), 1, 0, 0},
  {&__pyx_kp_133, __pyx_k_133, sizeof(__pyx_k_133), 0, 0, 0},
  {&__pyx_kp_134, __pyx_k_134, sizeof(__pyx_k_134), 1, 0, 0},
  {&__pyx_kp_135, __pyx_k_135, sizeof(__pyx_k_135), 0, 0, 0},
  {&__pyx_kp_136, __pyx_k_136, sizeof(__pyx_k_136), 1, 0, 0},
  {&__pyx_kp_137, __pyx_k_137, sizeof(__pyx_k_137), 0, 0, 0},
  {&__pyx_kp_138, __pyx_k_138, sizeof(__pyx_k_138), 1, 0, 0},
  {&__pyx_kp_139, __pyx_k_139, sizeof(__pyx_k_139), 0, 0, 0},
  {&__pyx_kp_140, __pyx_k_140, sizeof(__pyx_k_140), 1, 0, 0},
  {&__pyx_kp_141, __pyx_k_141, sizeof(__pyx_k_141), 0, 0, 0},
  {&__pyx_kp_142, __pyx_k_142, sizeof(__pyx_k_142), 1, 0, 0},
  {0, 0, 0, 0, 0, 0}
};
static int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_MemoryError = __Pyx_GetName(__pyx_b, __pyx_kp_MemoryError); if (!__pyx_builtin_MemoryError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_builtin_AttributeError = __Pyx_GetName(__pyx_b, __pyx_kp_AttributeError); if (!__pyx_builtin_AttributeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_builtin_TypeError = __Pyx_GetName(__pyx_b, __pyx_kp_TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_builtin_ValueError = __Pyx_GetName(__pyx_b, __pyx_kp_ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  return 0;
  __pyx_L1_error:;
  return -1;
}

static int __Pyx_InitGlobals(void) {
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  return 0;
  __pyx_L1_error:;
  return -1;
}

#if PY_MAJOR_VERSION < 3
PyMODINIT_FUNC init_yaml(void); /*proto*/
PyMODINIT_FUNC init_yaml(void)
#else
PyMODINIT_FUNC PyInit__yaml(void); /*proto*/
PyMODINIT_FUNC PyInit__yaml(void)
#endif
{
  PyObject *__pyx_1 = 0;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  #ifdef CYTHON_REFNANNY
  void* __pyx_refchk = NULL;
  __Pyx_Refnanny = __Pyx_ImportRefcountAPI("refnanny");
  if (!__Pyx_Refnanny) {
      PyErr_Clear();
      __Pyx_Refnanny = __Pyx_ImportRefcountAPI("Cython.Runtime.refnanny");
      if (!__Pyx_Refnanny)
          Py_FatalError("failed to import refnanny module");
  }
  __pyx_refchk = __Pyx_Refnanny->NewContext("PyMODINIT_FUNC PyInit__yaml(void)", __LINE__, __FILE__);
  #endif
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  /*--- Library function declarations ---*/
  __pyx_init_filenames();
  /*--- Threads initialization code ---*/
  #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  #ifdef WITH_THREAD /* Python build with threading support? */
  PyEval_InitThreads();
  #endif
  #endif
  /*--- Initialize various global constants etc. ---*/
  if (unlikely(__Pyx_InitGlobals() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  /*--- Module creation code ---*/
  #if PY_MAJOR_VERSION < 3
  __pyx_m = Py_InitModule4(__Pyx_NAMESTR("_yaml"), __pyx_methods, 0, 0, PYTHON_API_VERSION);
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  #endif
  if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  #if PY_MAJOR_VERSION < 3
  Py_INCREF(__pyx_m);
  #endif
  __pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME));
  if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  if (__pyx_module_is_main__yaml) {
    if (__Pyx_SetAttrString(__pyx_m, "__name__", __pyx_kp___main__) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  }
  /*--- Builtin init code ---*/
  if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_skip_dispatch = 0;
  /*--- Global init code ---*/
  /*--- Function export code ---*/
  /*--- Type init code ---*/
  if (PyType_Ready(&__pyx_type_5_yaml_Mark) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetAttrString(__pyx_m, "Mark", (PyObject *)&__pyx_type_5_yaml_Mark) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_5_yaml_Mark = &__pyx_type_5_yaml_Mark;
  __pyx_vtabptr_5_yaml_CParser = &__pyx_vtable_5_yaml_CParser;
  #if PY_MAJOR_VERSION >= 3
  __pyx_vtable_5_yaml_CParser._parser_error = (PyObject *(*)(struct __pyx_obj_5_yaml_CParser *))__pyx_f_5_yaml_7CParser__parser_error;
  __pyx_vtable_5_yaml_CParser._scan = (PyObject *(*)(struct __pyx_obj_5_yaml_CParser *))__pyx_f_5_yaml_7CParser__scan;
  __pyx_vtable_5_yaml_CParser._token_to_object = (PyObject *(*)(struct __pyx_obj_5_yaml_CParser *, yaml_token_t *))__pyx_f_5_yaml_7CParser__token_to_object;
  __pyx_vtable_5_yaml_CParser._parse = (PyObject *(*)(struct __pyx_obj_5_yaml_CParser *))__pyx_f_5_yaml_7CParser__parse;
  __pyx_vtable_5_yaml_CParser._event_to_object = (PyObject *(*)(struct __pyx_obj_5_yaml_CParser *, yaml_event_t *))__pyx_f_5_yaml_7CParser__event_to_object;
  __pyx_vtable_5_yaml_CParser._compose_document = (PyObject *(*)(struct __pyx_obj_5_yaml_CParser *))__pyx_f_5_yaml_7CParser__compose_document;
  __pyx_vtable_5_yaml_CParser._compose_node = (PyObject *(*)(struct __pyx_obj_5_yaml_CParser *, PyObject *, PyObject *))__pyx_f_5_yaml_7CParser__compose_node;
  __pyx_vtable_5_yaml_CParser._compose_scalar_node = (PyObject *(*)(struct __pyx_obj_5_yaml_CParser *, PyObject *))__pyx_f_5_yaml_7CParser__compose_scalar_node;
  __pyx_vtable_5_yaml_CParser._compose_sequence_node = (PyObject *(*)(struct __pyx_obj_5_yaml_CParser *, PyObject *))__pyx_f_5_yaml_7CParser__compose_sequence_node;
  __pyx_vtable_5_yaml_CParser._compose_mapping_node = (PyObject *(*)(struct __pyx_obj_5_yaml_CParser *, PyObject *))__pyx_f_5_yaml_7CParser__compose_mapping_node;
  __pyx_vtable_5_yaml_CParser._parse_next_event = (int (*)(struct __pyx_obj_5_yaml_CParser *))__pyx_f_5_yaml_7CParser__parse_next_event;
  #else
  *(void(**)(void))&__pyx_vtable_5_yaml_CParser._parser_error = (void(*)(void))__pyx_f_5_yaml_7CParser__parser_error;
  *(void(**)(void))&__pyx_vtable_5_yaml_CParser._scan = (void(*)(void))__pyx_f_5_yaml_7CParser__scan;
  *(void(**)(void))&__pyx_vtable_5_yaml_CParser._token_to_object = (void(*)(void))__pyx_f_5_yaml_7CParser__token_to_object;
  *(void(**)(void))&__pyx_vtable_5_yaml_CParser._parse = (void(*)(void))__pyx_f_5_yaml_7CParser__parse;
  *(void(**)(void))&__pyx_vtable_5_yaml_CParser._event_to_object = (void(*)(void))__pyx_f_5_yaml_7CParser__event_to_object;
  *(void(**)(void))&__pyx_vtable_5_yaml_CParser._compose_document = (void(*)(void))__pyx_f_5_yaml_7CParser__compose_document;
  *(void(**)(void))&__pyx_vtable_5_yaml_CParser._compose_node = (void(*)(void))__pyx_f_5_yaml_7CParser__compose_node;
  *(void(**)(void))&__pyx_vtable_5_yaml_CParser._compose_scalar_node = (void(*)(void))__pyx_f_5_yaml_7CParser__compose_scalar_node;
  *(void(**)(void))&__pyx_vtable_5_yaml_CParser._compose_sequence_node = (void(*)(void))__pyx_f_5_yaml_7CParser__compose_sequence_node;
  *(void(**)(void))&__pyx_vtable_5_yaml_CParser._compose_mapping_node = (void(*)(void))__pyx_f_5_yaml_7CParser__compose_mapping_node;
  *(void(**)(void))&__pyx_vtable_5_yaml_CParser._parse_next_event = (void(*)(void))__pyx_f_5_yaml_7CParser__parse_next_event;
  #endif
  if (PyType_Ready(&__pyx_type_5_yaml_CParser) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetVtable(__pyx_type_5_yaml_CParser.tp_dict, __pyx_vtabptr_5_yaml_CParser) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetAttrString(__pyx_m, "CParser", (PyObject *)&__pyx_type_5_yaml_CParser) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_5_yaml_CParser = &__pyx_type_5_yaml_CParser;
  __pyx_vtabptr_5_yaml_CEmitter = &__pyx_vtable_5_yaml_CEmitter;
  #if PY_MAJOR_VERSION >= 3
  __pyx_vtable_5_yaml_CEmitter._emitter_error = (PyObject *(*)(struct __pyx_obj_5_yaml_CEmitter *))__pyx_f_5_yaml_8CEmitter__emitter_error;
  __pyx_vtable_5_yaml_CEmitter._object_to_event = (int (*)(struct __pyx_obj_5_yaml_CEmitter *, PyObject *, yaml_event_t *))__pyx_f_5_yaml_8CEmitter__object_to_event;
  __pyx_vtable_5_yaml_CEmitter._anchor_node = (int (*)(struct __pyx_obj_5_yaml_CEmitter *, PyObject *))__pyx_f_5_yaml_8CEmitter__anchor_node;
  __pyx_vtable_5_yaml_CEmitter._serialize_node = (int (*)(struct __pyx_obj_5_yaml_CEmitter *, PyObject *, PyObject *, PyObject *))__pyx_f_5_yaml_8CEmitter__serialize_node;
  #else
  *(void(**)(void))&__pyx_vtable_5_yaml_CEmitter._emitter_error = (void(*)(void))__pyx_f_5_yaml_8CEmitter__emitter_error;
  *(void(**)(void))&__pyx_vtable_5_yaml_CEmitter._object_to_event = (void(*)(void))__pyx_f_5_yaml_8CEmitter__object_to_event;
  *(void(**)(void))&__pyx_vtable_5_yaml_CEmitter._anchor_node = (void(*)(void))__pyx_f_5_yaml_8CEmitter__anchor_node;
  *(void(**)(void))&__pyx_vtable_5_yaml_CEmitter._serialize_node = (void(*)(void))__pyx_f_5_yaml_8CEmitter__serialize_node;
  #endif
  if (PyType_Ready(&__pyx_type_5_yaml_CEmitter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetVtable(__pyx_type_5_yaml_CEmitter.tp_dict, __pyx_vtabptr_5_yaml_CEmitter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetAttrString(__pyx_m, "CEmitter", (PyObject *)&__pyx_type_5_yaml_CEmitter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_5_yaml_CEmitter = &__pyx_type_5_yaml_CEmitter;
  /*--- Type import code ---*/
  /*--- Function import code ---*/
  /*--- Execution code ---*/

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":2
 * 
 * import yaml             # <<<<<<<<<<<<<<
 * 
 * def get_version_string():
 */
  __pyx_1 = __Pyx_Import(__pyx_kp_yaml, 0); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_yaml, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":18
 * 
 * #Mark = yaml.error.Mark
 * YAMLError = yaml.error.YAMLError             # <<<<<<<<<<<<<<
 * ReaderError = yaml.reader.ReaderError
 * ScannerError = yaml.scanner.ScannerError
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_error); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_YAMLError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_YAMLError, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":19
 * #Mark = yaml.error.Mark
 * YAMLError = yaml.error.YAMLError
 * ReaderError = yaml.reader.ReaderError             # <<<<<<<<<<<<<<
 * ScannerError = yaml.scanner.ScannerError
 * ParserError = yaml.parser.ParserError
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_reader); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_ReaderError); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_ReaderError, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":20
 * YAMLError = yaml.error.YAMLError
 * ReaderError = yaml.reader.ReaderError
 * ScannerError = yaml.scanner.ScannerError             # <<<<<<<<<<<<<<
 * ParserError = yaml.parser.ParserError
 * ComposerError = yaml.composer.ComposerError
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_scanner); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_ScannerError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_ScannerError, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":21
 * ReaderError = yaml.reader.ReaderError
 * ScannerError = yaml.scanner.ScannerError
 * ParserError = yaml.parser.ParserError             # <<<<<<<<<<<<<<
 * ComposerError = yaml.composer.ComposerError
 * ConstructorError = yaml.constructor.ConstructorError
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_parser); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_ParserError); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_ParserError, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":22
 * ScannerError = yaml.scanner.ScannerError
 * ParserError = yaml.parser.ParserError
 * ComposerError = yaml.composer.ComposerError             # <<<<<<<<<<<<<<
 * ConstructorError = yaml.constructor.ConstructorError
 * EmitterError = yaml.emitter.EmitterError
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_composer); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_ComposerError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_ComposerError, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":23
 * ParserError = yaml.parser.ParserError
 * ComposerError = yaml.composer.ComposerError
 * ConstructorError = yaml.constructor.ConstructorError             # <<<<<<<<<<<<<<
 * EmitterError = yaml.emitter.EmitterError
 * SerializerError = yaml.serializer.SerializerError
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_constructor); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_ConstructorError); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_ConstructorError, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":24
 * ComposerError = yaml.composer.ComposerError
 * ConstructorError = yaml.constructor.ConstructorError
 * EmitterError = yaml.emitter.EmitterError             # <<<<<<<<<<<<<<
 * SerializerError = yaml.serializer.SerializerError
 * RepresenterError = yaml.representer.RepresenterError
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_emitter); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_EmitterError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_EmitterError, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":25
 * ConstructorError = yaml.constructor.ConstructorError
 * EmitterError = yaml.emitter.EmitterError
 * SerializerError = yaml.serializer.SerializerError             # <<<<<<<<<<<<<<
 * RepresenterError = yaml.representer.RepresenterError
 * 
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_serializer); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_SerializerError); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_SerializerError, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":26
 * EmitterError = yaml.emitter.EmitterError
 * SerializerError = yaml.serializer.SerializerError
 * RepresenterError = yaml.representer.RepresenterError             # <<<<<<<<<<<<<<
 * 
 * StreamStartToken = yaml.tokens.StreamStartToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_representer); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_RepresenterError); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_RepresenterError, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":28
 * RepresenterError = yaml.representer.RepresenterError
 * 
 * StreamStartToken = yaml.tokens.StreamStartToken             # <<<<<<<<<<<<<<
 * StreamEndToken = yaml.tokens.StreamEndToken
 * DirectiveToken = yaml.tokens.DirectiveToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_StreamStartToken); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_StreamStartToken, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":29
 * 
 * StreamStartToken = yaml.tokens.StreamStartToken
 * StreamEndToken = yaml.tokens.StreamEndToken             # <<<<<<<<<<<<<<
 * DirectiveToken = yaml.tokens.DirectiveToken
 * DocumentStartToken = yaml.tokens.DocumentStartToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_StreamEndToken); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_StreamEndToken, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":30
 * StreamStartToken = yaml.tokens.StreamStartToken
 * StreamEndToken = yaml.tokens.StreamEndToken
 * DirectiveToken = yaml.tokens.DirectiveToken             # <<<<<<<<<<<<<<
 * DocumentStartToken = yaml.tokens.DocumentStartToken
 * DocumentEndToken = yaml.tokens.DocumentEndToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_DirectiveToken); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_DirectiveToken, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":31
 * StreamEndToken = yaml.tokens.StreamEndToken
 * DirectiveToken = yaml.tokens.DirectiveToken
 * DocumentStartToken = yaml.tokens.DocumentStartToken             # <<<<<<<<<<<<<<
 * DocumentEndToken = yaml.tokens.DocumentEndToken
 * BlockSequenceStartToken = yaml.tokens.BlockSequenceStartToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_DocumentStartToken); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_DocumentStartToken, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":32
 * DirectiveToken = yaml.tokens.DirectiveToken
 * DocumentStartToken = yaml.tokens.DocumentStartToken
 * DocumentEndToken = yaml.tokens.DocumentEndToken             # <<<<<<<<<<<<<<
 * BlockSequenceStartToken = yaml.tokens.BlockSequenceStartToken
 * BlockMappingStartToken = yaml.tokens.BlockMappingStartToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_DocumentEndToken); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_DocumentEndToken, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":33
 * DocumentStartToken = yaml.tokens.DocumentStartToken
 * DocumentEndToken = yaml.tokens.DocumentEndToken
 * BlockSequenceStartToken = yaml.tokens.BlockSequenceStartToken             # <<<<<<<<<<<<<<
 * BlockMappingStartToken = yaml.tokens.BlockMappingStartToken
 * BlockEndToken = yaml.tokens.BlockEndToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_1, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":34
 * DocumentEndToken = yaml.tokens.DocumentEndToken
 * BlockSequenceStartToken = yaml.tokens.BlockSequenceStartToken
 * BlockMappingStartToken = yaml.tokens.BlockMappingStartToken             # <<<<<<<<<<<<<<
 * BlockEndToken = yaml.tokens.BlockEndToken
 * FlowSequenceStartToken = yaml.tokens.FlowSequenceStartToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_2, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":35
 * BlockSequenceStartToken = yaml.tokens.BlockSequenceStartToken
 * BlockMappingStartToken = yaml.tokens.BlockMappingStartToken
 * BlockEndToken = yaml.tokens.BlockEndToken             # <<<<<<<<<<<<<<
 * FlowSequenceStartToken = yaml.tokens.FlowSequenceStartToken
 * FlowMappingStartToken = yaml.tokens.FlowMappingStartToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_BlockEndToken); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_BlockEndToken, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":36
 * BlockMappingStartToken = yaml.tokens.BlockMappingStartToken
 * BlockEndToken = yaml.tokens.BlockEndToken
 * FlowSequenceStartToken = yaml.tokens.FlowSequenceStartToken             # <<<<<<<<<<<<<<
 * FlowMappingStartToken = yaml.tokens.FlowMappingStartToken
 * FlowSequenceEndToken = yaml.tokens.FlowSequenceEndToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_3, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":37
 * BlockEndToken = yaml.tokens.BlockEndToken
 * FlowSequenceStartToken = yaml.tokens.FlowSequenceStartToken
 * FlowMappingStartToken = yaml.tokens.FlowMappingStartToken             # <<<<<<<<<<<<<<
 * FlowSequenceEndToken = yaml.tokens.FlowSequenceEndToken
 * FlowMappingEndToken = yaml.tokens.FlowMappingEndToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_4, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":38
 * FlowSequenceStartToken = yaml.tokens.FlowSequenceStartToken
 * FlowMappingStartToken = yaml.tokens.FlowMappingStartToken
 * FlowSequenceEndToken = yaml.tokens.FlowSequenceEndToken             # <<<<<<<<<<<<<<
 * FlowMappingEndToken = yaml.tokens.FlowMappingEndToken
 * KeyToken = yaml.tokens.KeyToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_5, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":39
 * FlowMappingStartToken = yaml.tokens.FlowMappingStartToken
 * FlowSequenceEndToken = yaml.tokens.FlowSequenceEndToken
 * FlowMappingEndToken = yaml.tokens.FlowMappingEndToken             # <<<<<<<<<<<<<<
 * KeyToken = yaml.tokens.KeyToken
 * ValueToken = yaml.tokens.ValueToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_FlowMappingEndToken); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_FlowMappingEndToken, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":40
 * FlowSequenceEndToken = yaml.tokens.FlowSequenceEndToken
 * FlowMappingEndToken = yaml.tokens.FlowMappingEndToken
 * KeyToken = yaml.tokens.KeyToken             # <<<<<<<<<<<<<<
 * ValueToken = yaml.tokens.ValueToken
 * BlockEntryToken = yaml.tokens.BlockEntryToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_KeyToken); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_KeyToken, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":41
 * FlowMappingEndToken = yaml.tokens.FlowMappingEndToken
 * KeyToken = yaml.tokens.KeyToken
 * ValueToken = yaml.tokens.ValueToken             # <<<<<<<<<<<<<<
 * BlockEntryToken = yaml.tokens.BlockEntryToken
 * FlowEntryToken = yaml.tokens.FlowEntryToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_ValueToken); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_ValueToken, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":42
 * KeyToken = yaml.tokens.KeyToken
 * ValueToken = yaml.tokens.ValueToken
 * BlockEntryToken = yaml.tokens.BlockEntryToken             # <<<<<<<<<<<<<<
 * FlowEntryToken = yaml.tokens.FlowEntryToken
 * AliasToken = yaml.tokens.AliasToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_BlockEntryToken); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_BlockEntryToken, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":43
 * ValueToken = yaml.tokens.ValueToken
 * BlockEntryToken = yaml.tokens.BlockEntryToken
 * FlowEntryToken = yaml.tokens.FlowEntryToken             # <<<<<<<<<<<<<<
 * AliasToken = yaml.tokens.AliasToken
 * AnchorToken = yaml.tokens.AnchorToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_FlowEntryToken); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_FlowEntryToken, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":44
 * BlockEntryToken = yaml.tokens.BlockEntryToken
 * FlowEntryToken = yaml.tokens.FlowEntryToken
 * AliasToken = yaml.tokens.AliasToken             # <<<<<<<<<<<<<<
 * AnchorToken = yaml.tokens.AnchorToken
 * TagToken = yaml.tokens.TagToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_AliasToken); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_AliasToken, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":45
 * FlowEntryToken = yaml.tokens.FlowEntryToken
 * AliasToken = yaml.tokens.AliasToken
 * AnchorToken = yaml.tokens.AnchorToken             # <<<<<<<<<<<<<<
 * TagToken = yaml.tokens.TagToken
 * ScalarToken = yaml.tokens.ScalarToken
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_AnchorToken); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_AnchorToken, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":46
 * AliasToken = yaml.tokens.AliasToken
 * AnchorToken = yaml.tokens.AnchorToken
 * TagToken = yaml.tokens.TagToken             # <<<<<<<<<<<<<<
 * ScalarToken = yaml.tokens.ScalarToken
 * 
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_TagToken); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_TagToken, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":47
 * AnchorToken = yaml.tokens.AnchorToken
 * TagToken = yaml.tokens.TagToken
 * ScalarToken = yaml.tokens.ScalarToken             # <<<<<<<<<<<<<<
 * 
 * StreamStartEvent = yaml.events.StreamStartEvent
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_tokens); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_ScalarToken); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_ScalarToken, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":49
 * ScalarToken = yaml.tokens.ScalarToken
 * 
 * StreamStartEvent = yaml.events.StreamStartEvent             # <<<<<<<<<<<<<<
 * StreamEndEvent = yaml.events.StreamEndEvent
 * DocumentStartEvent = yaml.events.DocumentStartEvent
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_events); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_StreamStartEvent); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_StreamStartEvent, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":50
 * 
 * StreamStartEvent = yaml.events.StreamStartEvent
 * StreamEndEvent = yaml.events.StreamEndEvent             # <<<<<<<<<<<<<<
 * DocumentStartEvent = yaml.events.DocumentStartEvent
 * DocumentEndEvent = yaml.events.DocumentEndEvent
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_events); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_StreamEndEvent); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_StreamEndEvent, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":51
 * StreamStartEvent = yaml.events.StreamStartEvent
 * StreamEndEvent = yaml.events.StreamEndEvent
 * DocumentStartEvent = yaml.events.DocumentStartEvent             # <<<<<<<<<<<<<<
 * DocumentEndEvent = yaml.events.DocumentEndEvent
 * AliasEvent = yaml.events.AliasEvent
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_events); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_DocumentStartEvent); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_DocumentStartEvent, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":52
 * StreamEndEvent = yaml.events.StreamEndEvent
 * DocumentStartEvent = yaml.events.DocumentStartEvent
 * DocumentEndEvent = yaml.events.DocumentEndEvent             # <<<<<<<<<<<<<<
 * AliasEvent = yaml.events.AliasEvent
 * ScalarEvent = yaml.events.ScalarEvent
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_events); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_DocumentEndEvent); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_DocumentEndEvent, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":53
 * DocumentStartEvent = yaml.events.DocumentStartEvent
 * DocumentEndEvent = yaml.events.DocumentEndEvent
 * AliasEvent = yaml.events.AliasEvent             # <<<<<<<<<<<<<<
 * ScalarEvent = yaml.events.ScalarEvent
 * SequenceStartEvent = yaml.events.SequenceStartEvent
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_events); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_AliasEvent); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_AliasEvent, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":54
 * DocumentEndEvent = yaml.events.DocumentEndEvent
 * AliasEvent = yaml.events.AliasEvent
 * ScalarEvent = yaml.events.ScalarEvent             # <<<<<<<<<<<<<<
 * SequenceStartEvent = yaml.events.SequenceStartEvent
 * SequenceEndEvent = yaml.events.SequenceEndEvent
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_events); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_ScalarEvent); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_ScalarEvent, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":55
 * AliasEvent = yaml.events.AliasEvent
 * ScalarEvent = yaml.events.ScalarEvent
 * SequenceStartEvent = yaml.events.SequenceStartEvent             # <<<<<<<<<<<<<<
 * SequenceEndEvent = yaml.events.SequenceEndEvent
 * MappingStartEvent = yaml.events.MappingStartEvent
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_events); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_SequenceStartEvent); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_SequenceStartEvent, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":56
 * ScalarEvent = yaml.events.ScalarEvent
 * SequenceStartEvent = yaml.events.SequenceStartEvent
 * SequenceEndEvent = yaml.events.SequenceEndEvent             # <<<<<<<<<<<<<<
 * MappingStartEvent = yaml.events.MappingStartEvent
 * MappingEndEvent = yaml.events.MappingEndEvent
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_events); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_SequenceEndEvent); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_SequenceEndEvent, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":57
 * SequenceStartEvent = yaml.events.SequenceStartEvent
 * SequenceEndEvent = yaml.events.SequenceEndEvent
 * MappingStartEvent = yaml.events.MappingStartEvent             # <<<<<<<<<<<<<<
 * MappingEndEvent = yaml.events.MappingEndEvent
 * 
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_events); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_MappingStartEvent); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_MappingStartEvent, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":58
 * SequenceEndEvent = yaml.events.SequenceEndEvent
 * MappingStartEvent = yaml.events.MappingStartEvent
 * MappingEndEvent = yaml.events.MappingEndEvent             # <<<<<<<<<<<<<<
 * 
 * ScalarNode = yaml.nodes.ScalarNode
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_events); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_MappingEndEvent); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_MappingEndEvent, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":60
 * MappingEndEvent = yaml.events.MappingEndEvent
 * 
 * ScalarNode = yaml.nodes.ScalarNode             # <<<<<<<<<<<<<<
 * SequenceNode = yaml.nodes.SequenceNode
 * MappingNode = yaml.nodes.MappingNode
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_nodes); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_ScalarNode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_ScalarNode, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":61
 * 
 * ScalarNode = yaml.nodes.ScalarNode
 * SequenceNode = yaml.nodes.SequenceNode             # <<<<<<<<<<<<<<
 * MappingNode = yaml.nodes.MappingNode
 * 
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_1 = PyObject_GetAttr(__pyx_1, __pyx_kp_nodes); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_kp_SequenceNode); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_SequenceNode, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pyx":62
 * ScalarNode = yaml.nodes.ScalarNode
 * SequenceNode = yaml.nodes.SequenceNode
 * MappingNode = yaml.nodes.MappingNode             # <<<<<<<<<<<<<<
 * 
 * cdef class Mark:
 */
  __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_kp_yaml); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_1);
  __pyx_t_2 = PyObject_GetAttr(__pyx_1, __pyx_kp_nodes); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_1); __pyx_1 = 0;
  __pyx_t_1 = PyObject_GetAttr(__pyx_t_2, __pyx_kp_MappingNode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (PyObject_SetAttr(__pyx_m, __pyx_kp_MappingNode, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/xi/xitology/pyyaml-org/pyyaml/tags/3.09/ext/_yaml.pxd":2
 * 
 * cdef extern from "_yaml.h":             # <<<<<<<<<<<<<<
 * 
 *     void malloc(int l)
 */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_1);
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("_yaml");
  Py_DECREF(__pyx_m); __pyx_m = 0;
  __pyx_L0:;
  __Pyx_FinishRefcountContext();
  #if PY_MAJOR_VERSION < 3
  return;
  #else
  return __pyx_m;
  #endif
}

static const char *__pyx_filenames[] = {
  "_yaml.pyx",
};

/* Runtime support code */

static void __pyx_init_filenames(void) {
  __pyx_f = __pyx_filenames;
}

static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        #if PY_MAJOR_VERSION >= 3
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
        #else
        "%s() got multiple values for keyword argument '%s'", func_name,
        PyString_AS_STRING(kw_name));
        #endif
}

static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *number, *more_or_less;

    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    number = (num_expected == 1) ? "" : "s";
    PyErr_Format(PyExc_TypeError,
        #if PY_VERSION_HEX < 0x02050000
            "%s() takes %s %d positional argument%s (%d given)",
        #else
            "%s() takes %s %zd positional argument%s (%zd given)",
        #endif
        func_name, more_or_less, num_expected, number, num_found);
}

static int __Pyx_ParseOptionalKeywords(
    PyObject *kwds,
    PyObject **argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject *key = 0, *value = 0;
    Py_ssize_t pos = 0;
    PyObject*** name;
    PyObject*** first_kw_arg = argnames + num_pos_args;

    while (PyDict_Next(kwds, &pos, &key, &value)) {
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            values[name-argnames] = value;
        } else {
            #if PY_MAJOR_VERSION < 3
            if (unlikely(!PyString_CheckExact(key)) && unlikely(!PyString_Check(key))) {
            #else
            if (unlikely(!PyUnicode_CheckExact(key)) && unlikely(!PyUnicode_Check(key))) {
            #endif
                goto invalid_keyword_type;
            } else {
                for (name = first_kw_arg; *name; name++) {
                    #if PY_MAJOR_VERSION >= 3
                    if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
                        PyUnicode_Compare(**name, key) == 0) break;
                    #else
                    if (PyString_GET_SIZE(**name) == PyString_GET_SIZE(key) &&
                        _PyString_Eq(**name, key)) break;
                    #endif
                }
                if (*name) {
                    values[name-argnames] = value;
                } else {
                    /* unexpected keyword found */
                    for (name=argnames; name != first_kw_arg; name++) {
                        if (**name == key) goto arg_passed_twice;
                        #if PY_MAJOR_VERSION >= 3
                        if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
                            PyUnicode_Compare(**name, key) == 0) goto arg_passed_twice;
                        #else
                        if (PyString_GET_SIZE(**name) == PyString_GET_SIZE(key) &&
                            _PyString_Eq(**name, key)) goto arg_passed_twice;
                        #endif
                    }
                    if (kwds2) {
                        if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
                    } else {
                        goto invalid_keyword;
                    }
                }
            }
        }
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, **name);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%s() keywords must be strings", function_name);
    goto bad;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%s() got an unexpected keyword argument '%s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
bad:
    return -1;
}

static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyThreadState *tstate = PyThreadState_GET();
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
    PyErr_NormalizeException(type, value, tb);
    if (PyErr_Occurred())
        goto bad;
    Py_INCREF(*type);
    Py_INCREF(*value);
    Py_INCREF(*tb);
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = *type;
    tstate->exc_value = *value;
    tstate->exc_traceback = *tb;
    /* Make sure tstate is in a consistent state when we XDECREF
    these objects (XDECREF may run arbitrary code). */
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
    return 0;
bad:
    Py_XDECREF(*type);
    Py_XDECREF(*value);
    Py_XDECREF(*tb);
    return -1;
}


static INLINE int __Pyx_CheckKeywordStrings(
    PyObject *kwdict,
    const char* function_name,
    int kw_allowed)
{
    PyObject* key = 0;
    Py_ssize_t pos = 0;
    while (PyDict_Next(kwdict, &pos, &key, 0)) {
        #if PY_MAJOR_VERSION < 3
        if (unlikely(!PyString_CheckExact(key)) && unlikely(!PyString_Check(key)))
        #else
        if (unlikely(!PyUnicode_CheckExact(key)) && unlikely(!PyUnicode_Check(key)))
        #endif
            goto invalid_keyword_type;
    }
    if ((!kw_allowed) && unlikely(key))
        goto invalid_keyword;
    return 1;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%s() keywords must be strings", function_name);
    return 0;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%s() got an unexpected keyword argument '%s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
    return 0;
}


static INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb) {
    PyThreadState *tstate = PyThreadState_GET();
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
}

static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyThreadState *tstate = PyThreadState_GET();
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = type;
    tstate->exc_value = value;
    tstate->exc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}

static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) {
    PyObject *__import__ = 0;
    PyObject *empty_list = 0;
    PyObject *module = 0;
    PyObject *global_dict = 0;
    PyObject *empty_dict = 0;
    PyObject *list;
    __import__ = __Pyx_GetAttrString(__pyx_b, "__import__");
    if (!__import__)
        goto bad;
    if (from_list)
        list = from_list;
    else {
        empty_list = PyList_New(0);
        if (!empty_list)
            goto bad;
        list = empty_list;
    }
    global_dict = PyModule_GetDict(__pyx_m);
    if (!global_dict)
        goto bad;
    empty_dict = PyDict_New();
    if (!empty_dict)
        goto bad;
    module = PyObject_CallFunctionObjArgs(__import__,
        name, global_dict, empty_dict, list, NULL);
bad:
    Py_XDECREF(empty_list);
    Py_XDECREF(__import__);
    Py_XDECREF(empty_dict);
    return module;
}

static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) {
    PyObject *result;
    result = PyObject_GetAttr(dict, name);
    if (!result)
        PyErr_SetObject(PyExc_NameError, name);
    return result;
}

static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
    Py_XINCREF(type);
    Py_XINCREF(value);
    Py_XINCREF(tb);
    /* First, check the traceback argument, replacing None with NULL. */
    if (tb == Py_None) {
        Py_DECREF(tb);
        tb = 0;
    }
    else if (tb != NULL && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto raise_error;
    }
    /* Next, replace a missing value with None */
    if (value == NULL) {
        value = Py_None;
        Py_INCREF(value);
    }
    #if PY_VERSION_HEX < 0x02050000
    if (!PyClass_Check(type))
    #else
    if (!PyType_Check(type))
    #endif
    {
        /* Raising an instance.  The value should be a dummy. */
        if (value != Py_None) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto raise_error;
        }
        /* Normalize to raise <class>, <instance> */
        Py_DECREF(value);
        value = type;
        #if PY_VERSION_HEX < 0x02050000
            if (PyInstance_Check(type)) {
                type = (PyObject*) ((PyInstanceObject*)type)->in_class;
                Py_INCREF(type);
            }
            else {
                type = 0;
                PyErr_SetString(PyExc_TypeError,
                    "raise: exception must be an old-style class or instance");
                goto raise_error;
            }
        #else
            type = (PyObject*) Py_TYPE(type);
            Py_INCREF(type);
            if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
                PyErr_SetString(PyExc_TypeError,
                    "raise: exception class must be a subclass of BaseException");
                goto raise_error;
            }
        #endif
    }
    __Pyx_ErrRestore(type, value, tb);
    return;
raise_error:
    Py_XDECREF(value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
    return;
}

static INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyThreadState *tstate = PyThreadState_GET();

#if PY_MAJOR_VERSION >= 3
    /* Note: this is a temporary work-around to prevent crashes in Python 3.0 */
    if ((tstate->exc_type != NULL) & (tstate->exc_type != Py_None)) {
        tmp_type = tstate->exc_type;
        tmp_value = tstate->exc_value;
        tmp_tb = tstate->exc_traceback;
        PyErr_NormalizeException(&type, &value, &tb);
        PyErr_NormalizeException(&tmp_type, &tmp_value, &tmp_tb);
        tstate->exc_type = 0;
        tstate->exc_value = 0;
        tstate->exc_traceback = 0;
        PyException_SetContext(value, tmp_value);
        Py_DECREF(tmp_type);
        Py_XDECREF(tmp_tb);
    }
#endif

    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}

static INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) {
    PyThreadState *tstate = PyThreadState_GET();
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;

    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
}


static PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) {
    PyObject *r = PyObject_GetAttr(o, n);
    if (!r) {
        if (!PyErr_ExceptionMatches(PyExc_AttributeError))
            goto bad;
        PyErr_Clear();
        r = d;
        Py_INCREF(d);
    }
    return r;
bad:
    return 0;
}

static INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
    PyErr_Format(PyExc_ValueError,
        #if PY_VERSION_HEX < 0x02050000
                 "need more than %d value%s to unpack", (int)index,
        #else
                 "need more than %zd value%s to unpack", index,
        #endif
                 (index == 1) ? "" : "s");
}

static INLINE void __Pyx_RaiseTooManyValuesError(void) {
    PyErr_SetString(PyExc_ValueError, "too many values to unpack");
}

static PyObject *__Pyx_UnpackItem(PyObject *iter, Py_ssize_t index) {
    PyObject *item;
    if (!(item = PyIter_Next(iter))) {
        if (!PyErr_Occurred()) {
            __Pyx_RaiseNeedMoreValuesError(index);
        }
    }
    return item;
}

static int __Pyx_EndUnpack(PyObject *iter) {
    PyObject *item;
    if ((item = PyIter_Next(iter))) {
        Py_DECREF(item);
        __Pyx_RaiseTooManyValuesError();
        return -1;
    }
    else if (!PyErr_Occurred())
        return 0;
    else
        return -1;
}

static INLINE int __Pyx_StrEq(const char *s1, const char *s2) {
     while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; }
     return *s1 == *s2;
}

static INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) {
    if (sizeof(unsigned char) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(unsigned char)val)) {
            if (unlikely(val == -1 && PyErr_Occurred()))
                return (unsigned char)-1;
            if (unlikely(val < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to unsigned char");
                return (unsigned char)-1;
            }
            PyErr_SetString(PyExc_OverflowError,
                           "value too large to convert to unsigned char");
            return (unsigned char)-1;
        }
        return (unsigned char)val;
    }
    return (unsigned char)__Pyx_PyInt_AsUnsignedLong(x);
}

static INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) {
    if (sizeof(unsigned short) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(unsigned short)val)) {
            if (unlikely(val == -1 && PyErr_Occurred()))
                return (unsigned short)-1;
            if (unlikely(val < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to unsigned short");
                return (unsigned short)-1;
            }
            PyErr_SetString(PyExc_OverflowError,
                           "value too large to convert to unsigned short");
            return (unsigned short)-1;
        }
        return (unsigned short)val;
    }
    return (unsigned short)__Pyx_PyInt_AsUnsignedLong(x);
}

static INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) {
    if (sizeof(unsigned int) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(unsigned int)val)) {
            if (unlikely(val == -1 && PyErr_Occurred()))
                return (unsigned int)-1;
            if (unlikely(val < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to unsigned int");
                return (unsigned int)-1;
            }
            PyErr_SetString(PyExc_OverflowError,
                           "value too large to convert to unsigned int");
            return (unsigned int)-1;
        }
        return (unsigned int)val;
    }
    return (unsigned int)__Pyx_PyInt_AsUnsignedLong(x);
}

static INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
    if (sizeof(char) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(char)val)) {
            if (unlikely(val == -1 && PyErr_Occurred()))
                return (char)-1;
            PyErr_SetString(PyExc_OverflowError,
                           "value too large to convert to char");
            return (char)-1;
        }
        return (char)val;
    }
    return (char)__Pyx_PyInt_AsLong(x);
}

static INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
    if (sizeof(short) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(short)val)) {
            if (unlikely(val == -1 && PyErr_Occurred()))
                return (short)-1;
            PyErr_SetString(PyExc_OverflowError,
                           "value too large to convert to short");
            return (short)-1;
        }
        return (short)val;
    }
    return (short)__Pyx_PyInt_AsLong(x);
}

static INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
    if (sizeof(int) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(int)val)) {
            if (unlikely(val == -1 && PyErr_Occurred()))
                return (int)-1;
            PyErr_SetString(PyExc_OverflowError,
                           "value too large to convert to int");
            return (int)-1;
        }
        return (int)val;
    }
    return (int)__Pyx_PyInt_AsLong(x);
}

static INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) {
    if (sizeof(signed char) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(signed char)val)) {
            if (unlikely(val == -1 && PyErr_Occurred()))
                return (signed char)-1;
            PyErr_SetString(PyExc_OverflowError,
                           "value too large to convert to signed char");
            return (signed char)-1;
        }
        return (signed char)val;
    }
    return (signed char)__Pyx_PyInt_AsSignedLong(x);
}

static INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) {
    if (sizeof(signed short) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(signed short)val)) {
            if (unlikely(val == -1 && PyErr_Occurred()))
                return (signed short)-1;
            PyErr_SetString(PyExc_OverflowError,
                           "value too large to convert to signed short");
            return (signed short)-1;
        }
        return (signed short)val;
    }
    return (signed short)__Pyx_PyInt_AsSignedLong(x);
}

static INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) {
    if (sizeof(signed int) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(signed int)val)) {
            if (unlikely(val == -1 && PyErr_Occurred()))
                return (signed int)-1;
            PyErr_SetString(PyExc_OverflowError,
                           "value too large to convert to signed int");
            return (signed int)-1;
        }
        return (signed int)val;
    }
    return (signed int)__Pyx_PyInt_AsSignedLong(x);
}

static INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) {
#if PY_VERSION_HEX < 0x03000000
    if (likely(PyInt_CheckExact(x) || PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to unsigned long");
            return (unsigned long)-1;
        }
        return (unsigned long)val;
    } else
#endif
    if (likely(PyLong_CheckExact(x) || PyLong_Check(x))) {
        if (unlikely(Py_SIZE(x) < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to unsigned long");
            return (unsigned long)-1;
        }
        return PyLong_AsUnsignedLong(x);
    } else {
        unsigned long val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (unsigned long)-1;
        val = __Pyx_PyInt_AsUnsignedLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

static INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
#if PY_VERSION_HEX < 0x03000000
    if (likely(PyInt_CheckExact(x) || PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to unsigned PY_LONG_LONG");
            return (unsigned PY_LONG_LONG)-1;
        }
        return (unsigned PY_LONG_LONG)val;
    } else
#endif
    if (likely(PyLong_CheckExact(x) || PyLong_Check(x))) {
        if (unlikely(Py_SIZE(x) < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to unsigned PY_LONG_LONG");
            return (unsigned PY_LONG_LONG)-1;
        }
        return PyLong_AsUnsignedLongLong(x);
    } else {
        unsigned PY_LONG_LONG val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (unsigned PY_LONG_LONG)-1;
        val = __Pyx_PyInt_AsUnsignedLongLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

static INLINE long __Pyx_PyInt_AsLong(PyObject* x) {
#if PY_VERSION_HEX < 0x03000000
    if (likely(PyInt_CheckExact(x) || PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        return (long)val;
    } else
#endif
    if (likely(PyLong_CheckExact(x) || PyLong_Check(x))) {
        return PyLong_AsLong(x);
    } else {
        long val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (long)-1;
        val = __Pyx_PyInt_AsLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

static INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
#if PY_VERSION_HEX < 0x03000000
    if (likely(PyInt_CheckExact(x) || PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        return (PY_LONG_LONG)val;
    } else
#endif
    if (likely(PyLong_CheckExact(x) || PyLong_Check(x))) {
        return PyLong_AsLongLong(x);
    } else {
        PY_LONG_LONG val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (PY_LONG_LONG)-1;
        val = __Pyx_PyInt_AsLongLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

static INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) {
#if PY_VERSION_HEX < 0x03000000
    if (likely(PyInt_CheckExact(x) || PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        return (signed long)val;
    } else
#endif
    if (likely(PyLong_CheckExact(x) || PyLong_Check(x))) {
        return PyLong_AsLong(x);
    } else {
        signed long val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (signed long)-1;
        val = __Pyx_PyInt_AsSignedLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

static INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) {
#if PY_VERSION_HEX < 0x03000000
    if (likely(PyInt_CheckExact(x) || PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        return (signed PY_LONG_LONG)val;
    } else
#endif
    if (likely(PyLong_CheckExact(x) || PyLong_Check(x))) {
        return PyLong_AsLongLong(x);
    } else {
        signed PY_LONG_LONG val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (signed PY_LONG_LONG)-1;
        val = __Pyx_PyInt_AsSignedLongLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
    PyObject *pycobj = 0;
    int result;
    
    pycobj = PyCObject_FromVoidPtr(vtable, 0);
    if (!pycobj)
        goto bad;
    if (PyDict_SetItemString(dict, "__pyx_vtable__", pycobj) < 0)
        goto bad;
    result = 0;
    goto done;

bad:
    result = -1;
done:
    Py_XDECREF(pycobj);
    return result;
}

#include "compile.h"
#include "frameobject.h"
#include "traceback.h"

static void __Pyx_AddTraceback(const char *funcname) {
    PyObject *py_srcfile = 0;
    PyObject *py_funcname = 0;
    PyObject *py_globals = 0;
    PyObject *empty_string = 0;
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;

    #if PY_MAJOR_VERSION < 3
    py_srcfile = PyString_FromString(__pyx_filename);
    #else
    py_srcfile = PyUnicode_FromString(__pyx_filename);
    #endif
    if (!py_srcfile) goto bad;
    if (__pyx_clineno) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
        #endif
    }
    else {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromString(funcname);
        #else
        py_funcname = PyUnicode_FromString(funcname);
        #endif
    }
    if (!py_funcname) goto bad;
    py_globals = PyModule_GetDict(__pyx_m);
    if (!py_globals) goto bad;
    #if PY_MAJOR_VERSION < 3
    empty_string = PyString_FromStringAndSize("", 0);
    #else
    empty_string = PyBytes_FromStringAndSize("", 0);
    #endif
    if (!empty_string) goto bad;
    py_code = PyCode_New(
        0,            /*int argcount,*/
        #if PY_MAJOR_VERSION >= 3
        0,            /*int kwonlyargcount,*/
        #endif
        0,            /*int nlocals,*/
        0,            /*int stacksize,*/
        0,            /*int flags,*/
        empty_string, /*PyObject *code,*/
        __pyx_empty_tuple,  /*PyObject *consts,*/
        __pyx_empty_tuple,  /*PyObject *names,*/
        __pyx_empty_tuple,  /*PyObject *varnames,*/
        __pyx_empty_tuple,  /*PyObject *freevars,*/
        __pyx_empty_tuple,  /*PyObject *cellvars,*/
        py_srcfile,   /*PyObject *filename,*/
        py_funcname,  /*PyObject *name,*/
        __pyx_lineno,   /*int firstlineno,*/
        empty_string  /*PyObject *lnotab*/
    );
    if (!py_code) goto bad;
    py_frame = PyFrame_New(
        PyThreadState_GET(), /*PyThreadState *tstate,*/
        py_code,             /*PyCodeObject *code,*/
        py_globals,          /*PyObject *globals,*/
        0                    /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    py_frame->f_lineno = __pyx_lineno;
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_srcfile);
    Py_XDECREF(py_funcname);
    Py_XDECREF(empty_string);
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}

static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION < 3
        if (t->is_unicode && (!t->is_identifier)) {
            *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
        } else if (t->intern) {
            *t->p = PyString_InternFromString(t->s);
        } else {
            *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
        }
        #else  /* Python 3+ has unicode identifiers */
        if (t->is_identifier || (t->is_unicode && t->intern)) {
            *t->p = PyUnicode_InternFromString(t->s);
        } else if (t->is_unicode) {
            *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
        } else {
            *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
        }
        #endif
        if (!*t->p)
            return -1;
        ++t;
    }
    return 0;
}

/* Type Conversion Functions */

static INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   if (x == Py_True) return 1;
   else if ((x == Py_False) | (x == Py_None)) return 0;
   else return PyObject_IsTrue(x);
}

static INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
  PyNumberMethods *m;
  const char *name = NULL;
  PyObject *res = NULL;
#if PY_VERSION_HEX < 0x03000000
  if (PyInt_Check(x) || PyLong_Check(x))
#else
  if (PyLong_Check(x))
#endif
    return Py_INCREF(x), x;
  m = Py_TYPE(x)->tp_as_number;
#if PY_VERSION_HEX < 0x03000000
  if (m && m->nb_int) {
    name = "int";
    res = PyNumber_Int(x);
  }
  else if (m && m->nb_long) {
    name = "long";
    res = PyNumber_Long(x);
  }
#else
  if (m && m->nb_int) {
    name = "int";
    res = PyNumber_Long(x);
  }
#endif
  if (res) {
#if PY_VERSION_HEX < 0x03000000
    if (!PyInt_Check(res) && !PyLong_Check(res)) {
#else
    if (!PyLong_Check(res)) {
#endif
      PyErr_Format(PyExc_TypeError,
                   "__%s__ returned non-%s (type %.200s)",
                   name, name, Py_TYPE(res)->tp_name);
      Py_DECREF(res);
      return NULL;
    }
  }
  else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_TypeError,
                    "an integer is required");
  }
  return res;
}

static INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject* x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyInt_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}

static INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
#if PY_VERSION_HEX < 0x02050000
   if (ival <= LONG_MAX)
       return PyInt_FromLong((long)ival);
   else {
       unsigned char *bytes = (unsigned char *) &ival;
       int one = 1; int little = (int)*(unsigned char*)&one;
       return _PyLong_FromByteArray(bytes, sizeof(size_t), little, 0);
   }
#else
   return PyInt_FromSize_t(ival);
#endif
}

static INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
   unsigned PY_LONG_LONG val = __Pyx_PyInt_AsUnsignedLongLong(x);
   if (unlikely(val == (unsigned PY_LONG_LONG)-1 && PyErr_Occurred())) {
       return (size_t)-1;
   } else if (unlikely(val != (unsigned PY_LONG_LONG)(size_t)val)) {
       PyErr_SetString(PyExc_OverflowError,
                       "value too large to convert to size_t");
       return (size_t)-1;
   }
   return (size_t)val;
}


