summaryrefslogtreecommitdiff
path: root/textproc/py-textile
diff options
context:
space:
mode:
authorobache <obache>2011-10-28 02:15:10 +0000
committerobache <obache>2011-10-28 02:15:10 +0000
commitdb8f613c2d1cc88b5c366d7cc2debe276b259bc6 (patch)
tree664cf3dc528f5dfbd30e17aa9261a569f750debf /textproc/py-textile
parent6fc2d8485936e60e0d87c145c0b3b93b0ed2f57b (diff)
downloadpkgsrc-db8f613c2d1cc88b5c366d7cc2debe276b259bc6.tar.gz
Add python24 compatibility fixes.
Diffstat (limited to 'textproc/py-textile')
-rw-r--r--textproc/py-textile/distinfo3
-rw-r--r--textproc/py-textile/patches/patch-textile_tests_____init____.py25
2 files changed, 27 insertions, 1 deletions
diff --git a/textproc/py-textile/distinfo b/textproc/py-textile/distinfo
index c7efec09522..26be4fa6be2 100644
--- a/textproc/py-textile/distinfo
+++ b/textproc/py-textile/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2011/10/25 08:30:10 obache Exp $
+$NetBSD: distinfo,v 1.5 2011/10/28 02:15:10 obache Exp $
SHA1 (textile-2.1.5.tar.gz) = 16a4930fc3ef1afa3360e63af382258cc881a341
RMD160 (textile-2.1.5.tar.gz) = ed4163df4b7e586de23c054fc243f7631c7962c3
Size (textile-2.1.5.tar.gz) = 16541 bytes
+SHA1 (patch-textile_tests_____init____.py) = 71c27bd218a82b80b18d0198c5c1d2996c447e0a
diff --git a/textproc/py-textile/patches/patch-textile_tests_____init____.py b/textproc/py-textile/patches/patch-textile_tests_____init____.py
new file mode 100644
index 00000000000..fcab746da90
--- /dev/null
+++ b/textproc/py-textile/patches/patch-textile_tests_____init____.py
@@ -0,0 +1,25 @@
+$NetBSD: patch-textile_tests_____init____.py,v 1.1 2011/10/28 02:15:10 obache Exp $
+
+* python24 compatibility fix.
+ (for python>=25, the list of base classes in a class definition can be empty)
+
+--- textile/tests/__init__.py.orig 2011-05-04 02:19:09.000000000 +0000
++++ textile/tests/__init__.py
+@@ -11,7 +11,7 @@ from nose.plugins.skip import SkipTest
+ """
+
+
+-class TestKnownValues():
++class TestKnownValues:
+ xhtml_known_values = (
+ ('hello, world', '\t<p>hello, world</p>'),
+
+@@ -277,7 +277,7 @@ class TestKnownValues():
+ eq_(output, expected_output)
+
+
+-class Tests():
++class Tests:
+ def testFootnoteReference(self):
+ html = textile.textile('YACC[1]')
+ assert_true(re.search('^\t<p>YACC<sup class="footnote"><a href="#fn[a-z0-9-]+">1</a></sup></p>', html))