diff options
author | W. Trevor King <wking@tremily.us> | 2012-10-26 08:41:21 -0400 |
---|---|---|
committer | W. Trevor King <wking@tremily.us> | 2012-10-26 08:41:21 -0400 |
commit | 3354bfda0d54f860f7c83db76dd32e395cd5d1ee (patch) | |
tree | 25ebeb99d9ed8ca69dcc3d6ce93968a50a290600 /libbe/util | |
parent | 27ca8426ae587b73cde11a5d681efc029b8632a4 (diff) | |
download | bugseverywhere-3354bfda0d54f860f7c83db76dd32e395cd5d1ee.tar.gz |
doc: update :meth: to :py:meth: for modern Sphinx.
Diffstat (limited to 'libbe/util')
-rw-r--r-- | libbe/util/id.py | 6 | ||||
-rw-r--r-- | libbe/util/tree.py | 10 | ||||
-rw-r--r-- | libbe/util/utility.py | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/libbe/util/id.py b/libbe/util/id.py index 8c34303..8605d09 100644 --- a/libbe/util/id.py +++ b/libbe/util/id.py @@ -332,14 +332,14 @@ class ID (object): don't have to fetch all the ids in the storage repository but can restrict yourself to a specific branch. - You can generate ids of this sort with the :meth:`user` method, + You can generate ids of this sort with the :py:meth:`user` method, although in order to preform the truncation, your object (and its parents must define a `sibling_uuids` method. While users can use the convenient short user ids in the short term, the truncation will inevitably lead to name collision. To avoid that, we provide a non-truncated form of the short user ids - via the :meth:`long_user` method. These long user ids should be + via the :py:meth:`long_user` method. These long user ids should be converted to short user ids by intelligent user interfaces. See Also @@ -385,7 +385,7 @@ class ID (object): def child_uuids(child_storage_ids): """Extract uuid children from other children generated by - :meth:`ID.storage`. + :py:meth:`ID.storage`. This is useful for separating data belonging to a particular object directly from entries for its child objects. Since the diff --git a/libbe/util/tree.py b/libbe/util/tree.py index affdb85..c6aa46b 100644 --- a/libbe/util/tree.py +++ b/libbe/util/tree.py @@ -149,13 +149,13 @@ class Tree(list): def sort(self, *args, **kwargs): """Sort the tree recursively. - This method extends :meth:`list.sort` to Trees. + This method extends :py:meth:`list.sort` to Trees. Notes ----- - This method can be slow, e.g. on a :meth:`branch_len` sort, + This method can be slow, e.g. on a :py:meth:`branch_len` sort, since a node at depth `N` from the root has it's - :meth:`branch_len` method called `N` times. + :py:meth:`branch_len` method called `N` times. """ list.sort(self, *args, **kwargs) for child in self: @@ -170,7 +170,7 @@ class Tree(list): Depth first by default, but you can set `depth_first` to `False` for breadth first ordering. Siblings are returned in the order they are stored, so you might want to - :meth:`sort` your tree first. + :py:meth:`sort` your tree first. """ if depth_first == True: yield self @@ -202,7 +202,7 @@ class Tree(list): a-+-c and a-+ +-d-e-f +-d-e-f - would both produce (after sorting by :meth:`branch_len`):: + would both produce (after sorting by :py:meth:`branch_len`):: (0, a) (1, b) diff --git a/libbe/util/utility.py b/libbe/util/utility.py index b259768..99d28e5 100644 --- a/libbe/util/utility.py +++ b/libbe/util/utility.py @@ -89,7 +89,7 @@ def search_parent_directories(path, filename): class Dir (object): """A temporary directory for testing use. - Make sure you run :meth:`cleanup` after you're done using the + Make sure you run :py:meth:`cleanup` after you're done using the directory. """ def __init__(self): |