[python-astropy] 02/03: Remove buggy itersubclass doctests
Ole Streicher
olebole-guest at moszumanska.debian.org
Fri Jan 24 10:30:28 UTC 2014
This is an automated email from the git hooks/post-receive script.
olebole-guest pushed a commit to branch debian
in repository python-astropy.
commit df26fcb8087d7c01ce244dcd67c0d3c5610c5329
Author: Ole Streicher <debian at liska.ath.cx>
Date: Thu Jan 16 16:29:56 2014 +0100
Remove buggy itersubclass doctests
---
debian/patches/python3.4.patch | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/debian/patches/python3.4.patch b/debian/patches/python3.4.patch
index 9185d43..0afe994 100644
--- a/debian/patches/python3.4.patch
+++ b/debian/patches/python3.4.patch
@@ -330,3 +330,28 @@ Bug-Debian: http://bugs.debian.org/734293
ffswap2_slow(svalues, peel);
for (ii = peel; ii < (nvals - peel - (nvals - peel) % 8); ii+=8) {
swap2_sse2((char*)&svalues[ii]);
+--- a/astropy/io/fits/util.py
++++ b/astropy/io/fits/util.py
+@@ -24,22 +24,6 @@
+
+ Generator over all subclasses of a given class, in depth first order.
+
+- >>> class A(object): pass
+- >>> class B(A): pass
+- >>> class C(A): pass
+- >>> class D(B,C): pass
+- >>> class E(D): pass
+- >>>
+- >>> for cls in itersubclasses(A):
+- ... print(cls.__name__)
+- B
+- D
+- E
+- C
+- >>> # get ALL (new-style) classes currently defined
+- >>> [cls.__name__ for cls in itersubclasses(object)]
+- ['type', ...'tuple', ...]
+-
+ From http://code.activestate.com/recipes/576949/
+ """
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-astropy.git
More information about the debian-science-commits
mailing list