Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/pythonmods In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv29627
Modified Files: xmlwitch-py.info xmlwitch-py.patch Log Message: New upstream version. Index: xmlwitch-py.patch =================================================================== RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/pythonmods/xmlwitch-py.patch,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- xmlwitch-py.patch 19 Feb 2010 22:57:59 -0000 1.1 +++ xmlwitch-py.patch 12 Jan 2011 23:36:45 -0000 1.2 @@ -1,6 +1,6 @@ -diff -ru xmlwitch-0.1.0.orig/xmlwitch.py xmlwitch-0.1.0/xmlwitch.py ---- xmlwitch-0.1.0.orig/xmlwitch.py 2009-08-02 22:11:44.000000000 -0400 -+++ xmlwitch-0.1.0/xmlwitch.py 2010-02-19 17:38:02.000000000 -0500 +diff -ru xmlwitch-0.2.orig/xmlwitch.py xmlwitch-0.2/xmlwitch.py +--- xmlwitch-0.2.orig/xmlwitch.py 2011-01-01 16:15:53.000000000 -0500 ++++ xmlwitch-0.2/xmlwitch.py 2011-01-12 18:12:39.000000000 -0500 @@ -1,5 +1,5 @@ -from __future__ import with_statement -from StringIO import StringIO @@ -9,32 +9,37 @@ from xml.sax import saxutils from keyword import kwlist as PYTHON_KWORD_LIST -@@ -21,11 +21,10 @@ - return element(name, self) - __getitem__ = __getattr__ - def __str__(self): -- return self._document.getvalue().encode(self._encoding) -- def __unicode__(self): -+ return self._document.getvalue() -+ def __byte__(self): - return self._document.getvalue().decode(self._encoding) - def _write(self, line): -- line = line.decode(self._encoding) - self._document.write('%s%s\n' % (self._indentation * self._indent, line)) +@@ -29,14 +29,13 @@ + return Element(name, self) + + def __str__(self): +- return self._document.getvalue().encode(self._encoding).strip() ++ return self._document.getvalue().strip() + +- def __unicode__(self): ++ def __byte__(self): + return self._document.getvalue().decode(self._encoding).strip() + + def write(self, content): + """Write raw content to the document""" +- content = content.decode(self._encoding) + self._document.write('%s' % content) + + def write_escaped(self, content): +@@ -45,7 +44,6 @@ + + def write_indented(self, content): + """Write indented content to the document""" +- content = content.decode(self._encoding) + self.write('%s%s\n' % (self._indent * self._indentation, content)) - class element: -@@ -53,7 +52,7 @@ - @property - def serialized_attrs(self): - serialized = [] -- for attr, value in self.attributes.items(): -+ for attr, value in list(self.attributes.items()): - serialized.append(' %s=%s' % (self.nameprep(attr), saxutils.quoteattr(value))) - return ''.join(serialized) - def nameprep(self, name): -@@ -86,4 +85,4 @@ - xml.label('Some label', for_='some_field') - div.text(':') - xml.input(None, type='text', value='') -- print xml -+ print(xml) + builder = Builder # 0.1 backward compatibility +@@ -92,7 +90,7 @@ + def _serialized_attrs(self): + """Serialize attributes for element insertion""" + serialized = [] +- for attr, value in self.attributes.items(): ++ for attr, value in list(self.attributes.items()): + serialized.append(' %s=%s' % ( + self._nameprep(attr), saxutils.quoteattr(value) + )) Index: xmlwitch-py.info =================================================================== RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/libs/pythonmods/xmlwitch-py.info,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- xmlwitch-py.info 15 Aug 2010 21:31:10 -0000 1.5 +++ xmlwitch-py.info 12 Jan 2011 23:36:45 -0000 1.6 @@ -1,7 +1,7 @@ Info2: << Package: xmlwitch-py%type_pkg[python] -Version: 0.1.0 -Revision: 3 +Version: 0.2 +Revision: 1 Type: python (2.6 2.7 3.1) Description: Python implementation of Ruby's XML Builder DescDetail: << @@ -18,10 +18,10 @@ Homepage: http://pypi.python.org/pypi/xmlwitch Source: mirror:custom:x/xmlwitch/xmlwitch-%v.tar.gz -Source-MD5: c35e24e11a24d104edce5b8bc6a9e0d7 +Source-MD5: 965cb65dc692240781857fbfa27a6802 PatchFile: %{ni}.patch -PatchFile-MD5: 2b418a54a25208643808e9544de3d5d5 +PatchFile-MD5: e6e0b94905673a346acb591391a5a278 PatchScript: << #!/bin/bash -ev let pyversion="%type_pkg[python]" @@ -37,12 +37,14 @@ %p/bin/python%type_raw[python] setup.py build << +InfoTest: TestScript: %p/bin/python%type_raw[python] tests/xmlwitch_tests.py + InstallScript: << %p/bin/python%type_raw[python] setup.py install \ --root=%d << -DocFiles: PKG-INFO README.markdown xmlwitch.doctest +DocFiles: PKG-INFO README.md README.txt CustomMirror: << eur-NL: http://a.pypi.python.org/packages/source/ ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs