[Python-modules-commits] r2248 - in /packages/html5lib/trunk/debian: changelog patches/ patches/00list patches/example-parse.py-fix.dpatch rules

bzed-guest at users.alioth.debian.org bzed-guest at users.alioth.debian.org
Fri May 4 14:49:17 UTC 2007


Author: bzed-guest
Date: Fri May  4 14:49:16 2007
New Revision: 2248

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=2248
Log:
fixing the parse.py example

Added:
    packages/html5lib/trunk/debian/patches/
    packages/html5lib/trunk/debian/patches/00list
    packages/html5lib/trunk/debian/patches/example-parse.py-fix.dpatch   (with props)
Modified:
    packages/html5lib/trunk/debian/changelog
    packages/html5lib/trunk/debian/rules

Modified: packages/html5lib/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/html5lib/trunk/debian/changelog?rev=2248&op=diff
==============================================================================
--- packages/html5lib/trunk/debian/changelog (original)
+++ packages/html5lib/trunk/debian/changelog Fri May  4 14:49:16 2007
@@ -1,3 +1,10 @@
+html5lib (0.9-2) UNRELEASED; urgency=low
+
+  * Several small fixes in the parse.py example, see
+    debian/patches/example-parse.py-fix.dpatch for details
+
+ -- Bernd Zeimetz <bernd at bzed.de>  Fri, 04 May 2007 16:44:00 +0200
+
 html5lib (0.9-1) unstable; urgency=low
 
   * Initial release (Closes: #414028)

Added: packages/html5lib/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/python-modules/packages/html5lib/trunk/debian/patches/00list?rev=2248&op=file
==============================================================================
--- packages/html5lib/trunk/debian/patches/00list (added)
+++ packages/html5lib/trunk/debian/patches/00list Fri May  4 14:49:16 2007
@@ -1,0 +1,1 @@
+example-parse.py-fix

Added: packages/html5lib/trunk/debian/patches/example-parse.py-fix.dpatch
URL: http://svn.debian.org/wsvn/python-modules/packages/html5lib/trunk/debian/patches/example-parse.py-fix.dpatch?rev=2248&op=file
==============================================================================
--- packages/html5lib/trunk/debian/patches/example-parse.py-fix.dpatch (added)
+++ packages/html5lib/trunk/debian/patches/example-parse.py-fix.dpatch Fri May  4 14:49:16 2007
@@ -1,0 +1,44 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## example-fix.dpatch by Bernd Zeimetz <bernd at bzed.de>
+##
+## DP: parse.py in the examples directory does not work.
+## DP: This can be fixed by replacing all instances of 'src.' with
+## DP: 'html5lib.' in the file.
+## DP: Also making the messages to stderr readable again by adding
+## DP: \n at the end and fixing a spelling mistake.
+
+ at DPATCH@
+diff -urNad html5lib~/examples/parse.py html5lib/examples/parse.py
+--- html5lib~/examples/parse.py	2007-03-11 19:41:46.000000000 +0100
++++ html5lib/examples/parse.py	2007-05-04 16:40:41.000000000 +0200
+@@ -40,22 +40,22 @@
+                 f = open(f)
+             except IOError: pass
+     except IndexError:
+-        sys.stderr.write("No filename provided. Use -h for help")
++        sys.stderr.write("No filename provided. Use -h for help\n")
+         sys.exit(1)
+ 
+     if opts.treebuilder is not None:
+         try:
+-            treebuilder = __import__("src.treebuilders." + opts.treebuilder,
+-                None,None,"src").TreeBuilder
++            treebuilder = __import__("html5lib.treebuilders." + opts.treebuilder,
++                None,None,"html5lib").TreeBuilder
+         except ImportError, name:
+-            sys.stderr.write("Treebuilder %s not found"%name)
++            sys.stderr.write("Treebuilder %s not found\n" % name)
+             raise
+         except Exception, foo:
+-            import src.treebuilders.simpletree
+-            treebuilder = src.treebuilders.simpletree.TreeBuilder
++            import html5lib.treebuilders.simpletree
++            treebuilder = html5lib.treebuilders.simpletree.TreeBuilder
+     else:
+-        import src.treebuilders.simpletree
+-        treebuilder = src.treebuilders.simpletree.TreeBuilder
++        import html5lib.treebuilders.simpletree
++        treebuilder = html5lib.treebuilders.simpletree.TreeBuilder
+ 
+     if opts.xml:
+         p = liberalxmlparser.XHTMLParser(tree=treebuilder)

Propchange: packages/html5lib/trunk/debian/patches/example-parse.py-fix.dpatch
------------------------------------------------------------------------------
    svn:executable = *

Modified: packages/html5lib/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/html5lib/trunk/debian/rules?rev=2248&op=diff
==============================================================================
--- packages/html5lib/trunk/debian/rules (original)
+++ packages/html5lib/trunk/debian/rules Fri May  4 14:49:16 2007
@@ -3,5 +3,6 @@
 DEB_PYTHON_SYSTEM=pysupport
 
 include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 




More information about the Python-modules-commits mailing list