Rev 5502: Unbreak pqm by commenting out the bogus use of doctest +SKIP not supported by python2.4 in http://bazaar.launchpad.net/~vila/bzr/integration/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Fri Oct 15 13:35:00 BST 2010
At http://bazaar.launchpad.net/~vila/bzr/integration/
------------------------------------------------------------
revno: 5502
revision-id: v.ladeuil+lp at free.fr-20101015123500-iyqj7e0r62ie6qfy
parent: pqm at pqm.ubuntu.com-20101015113333-auzmqh8gqjkzlgg0
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: trunk
timestamp: Fri 2010-10-15 14:35:00 +0200
message:
Unbreak pqm by commenting out the bogus use of doctest +SKIP not supported by python2.4
-------------- next part --------------
=== modified file 'bzrlib/pyutils.py'
--- a/bzrlib/pyutils.py 2010-10-15 11:15:52 +0000
+++ b/bzrlib/pyutils.py 2010-10-15 12:35:00 +0000
@@ -63,18 +63,18 @@
"""Determine the 'parent' of a given dotted module name and (optional)
member name.
- Typical use is::
-
- >>> parent_mod, parent_member, final_attr = calc_parent_name(
- ... module_name, member_name) # doctest: +SKIP
- >>> parent_obj = get_named_object(parent_mod, parent_member)
- ... # doctest: +SKIP
-
The idea is that ``getattr(parent_obj, final_attr)`` will equal
get_named_object(module_name, member_name).
:return: (module_name, member_name, final_attr) tuple.
"""
+# +SKIP is not recognized by python2.4
+# Typical use is::
+#
+# >>> parent_mod, parent_member, final_attr = calc_parent_name(
+# ... module_name, member_name) # doctest: +SKIP
+# >>> parent_obj = get_named_object(parent_mod, parent_member)
+# ... # doctest: +SKIP
if member_name is not None:
split_name = member_name.rsplit('.', 1)
if len(split_name) == 1:
More information about the bazaar-commits
mailing list