�
��iYc�����������@��si��d��d�l��m�Z�d��d�l��m�Z�d��d�l��m�Z�d��d�l��m�Z�d��d�l��m�Z�d��d�l�Z�d��d�l�Z�d��d�l�m	�Z	�d��d�l
�m�Z�d	�d
�l�m
�Z
�e�j�j�d�k��r��d��d�l�m�Z�n�d��d�l�m�Z�e�Z�e
�d�d����7�d
�e�j�k�rd��d�l�m�Z�n�d��d�l�m�Z�Wd�QXd�d�d��d�d���Z�d�e�f�d�������YZ�d����Z�e�d�k�ree����n��d�S(���i����(���t���with_statement(���t���absolute_import(���t���division(���t���print_function(���t���unicode_literalsN(���t���contextmanager(���t���escapei���(���t���LibtoolImporteri���(���t���StringIOu ���UNINSTALLED_INTROSPECTION_SRCDIR(���t���collect_attributesu��� c���������C��s����|�d��k�r�g��}�n��d�|��f�}�|�d��k	�rh�t�|�t���rO�|�j�d���}�n��d�t�|���|��f�}�n�d�}�t�|��|�|�|�t�|���t�|�����}�|�|�|�S(���Nu���<%su���UTF-8u���>%s</%s>u���/>(���t���Nonet
���isinstancet���bytest���decodeR���R	���t���len(���t���tag_namet
���attributest���datat���self_indentt���self_indent_chart���prefixt���suffixt���attrs(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt
���build_xml_tag1���s����	
t	���XMLWriterc�����������B��s����e��Z�d�����Z�d�d���Z�d����Z�d����Z�d����Z�d����Z�d����Z	�d�e
�e�d���Z�d	����Z
�d�d
���Z�d�d���Z�d����Z�e�d�d
�����Z�RS(���c���������C��sE���t�����|��_�|��j�j�d���g��|��_�d�|��_�d�|��_�|��j����d��S(���Nu���<?xml version="1.0"?>
i����i���(���R���t���_datat���writet
���_tag_stackt���_indentt���_indent_unitt���enable_whitespace(���t���self(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt���__init__F���s����			c���������C��sX���|�d��k�r�g��}�n��t�|�|�|��j�|��j�t�|���d���}�|��j�d�|�|�f���d��S(���Ni���u���<%s%s>(���R
���R	���R���t���_indent_charR���t
���write_line(���R���R���R���R���(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt	���_open_tagT���s
����		c���������C��s���|��j��d�|�f���d��S(���Nu���</%s>(���R"���(���R���R���(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt
���_close_tag[���s����c���������C��s���d�|��_��d�|��_�d��S(���Nu��� u���
(���R!���t
���_newline_char(���R���(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyR���`���s����	c���������C��s���d�|��_��d�|��_�d��S(���Nu����(���R!���R%���(���R���(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt���disable_whitespaced���s����	c���������C��s
���|��j��j����S(���u,���Returns a unicode string containing the XML.(���R���t���getvalue(���R���(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt���get_xmlh���s����c���������C��s���|��j��j����j�d���S(���u8���Returns a utf-8 encoded bytes object containing the XML.u���utf-8(���R���R'���t���encode(���R���(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt���get_encoded_xmll���s����u����c���������C��s����t��|�t���r!�|�j�d���}�n��|�r6�t�|���}�n��|�ri�|��j�j�d�|��j�|��j�|�|��j�f���n�|��j�j�d�|�|��j�f���d��S(���Nu���utf-8u���%s%s%su���%s%s(	���R���R���R
���R���R���R���R!���R���R%���(���R���t���linet���indentt	���do_escape(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyR"���p���s����c���������C��s���|��j��d�|�f���d��S(���Nu���<!-- %s -->(���R"���(���R���t���text(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt
���write_comment}���s����c���������C��s)���|��j��t�|�|�|�|��j�|��j�����d��S(���N(���R"���R���R���R!���(���R���R���R���R���(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt	���write_tag����s����c���������C��sK���|�d��k�r�g��}�n��|��j�|�|���|��j�j�|���|��j�|��j�7_�d��S(���N(���R
���R#���R���t���appendR���R���(���R���R���R���(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt���push_tag����s
����	c���������C��s2���|��j��|��j�8_��|��j�j����}�|��j�|���|�S(���N(���R���R���R���t���popR$���(���R���R���(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt���pop_tag����s����
c���������c��s+���|��j��|�|���z	�d��VWd��|��j����Xd��S(���N(���R2���R4���(���R���R���R���(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt
���tagcontext����s����	N(���t���__name__t
���__module__R ���R
���R#���R$���R���R&���R(���R*���t���Truet���FalseR"���R/���R0���R2���R4���R���R5���(����(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyR���D���s���						
		c����������C��s����t�����}��|��j�d���|��j�d���|��j�d���|��j�d�d�d�d�d�g���|��j����|��j����|��j����|��j����}�|�j�d���}�d
�d��l�}�|�j�|���d��S(���Nu
���repositoryu	���namespaceu���enumerationu���memberu���nameu���westu���valueu���7u���c:identifieru���GTK_ANCHOR_WESTu	���glib:nicku���
i����(���u���nameu���west(���u���valueu���7(���u���c:identifieru���GTK_ANCHOR_WEST(���u	���glib:nicku���west(���R���R2���R4���R(���t���splitt���pprint(���t���wt���xt���linesR;���(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt���test����s"����	


	




u���__main__(���t
���__future__R����R���R���R���R���t���ost���syst
���contextlibR���t���xml.sax.saxutilsR���t���libtoolimporterR���t���version_infot���majorR���t���iot���strt���unicodeR
���t���environt
���_giscannerR	���t���giscanner._giscannerR���t���objectR���R?���R6���(����(����(����ss���/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyt���<module>���s.���	V