From e186cfedadf43deb4b265d06be560bf5e5d81dc6 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 26 Oct 2012 08:42:14 -0400 Subject: doc: update :data: to :py:data: for modern Sphinx. --- libbe/storage/util/config.py | 4 ++-- libbe/storage/vcs/base.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'libbe/storage') diff --git a/libbe/storage/util/config.py b/libbe/storage/util/config.py index 7e14b5d..4945b1f 100644 --- a/libbe/storage/util/config.py +++ b/libbe/storage/util/config.py @@ -67,7 +67,7 @@ def set_val(name, value, section="DEFAULT", encoding=None): section : str The section to store the name/value in. encoding : str - The config file's encoding, defaults to :data:`default_encoding`. + The config file's encoding, defaults to :py:data:`default_encoding`. """ if encoding == None: encoding = default_encoding @@ -97,7 +97,7 @@ def get_val(name, section="DEFAULT", default=None, encoding=None): default : The value to return if `name` is not set. encoding : str - The config file's encoding, defaults to :data:`default_encoding`. + The config file's encoding, defaults to :py:data:`default_encoding`. Examples -------- diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py index 9de2fe3..845336d 100644 --- a/libbe/storage/vcs/base.py +++ b/libbe/storage/vcs/base.py @@ -57,7 +57,7 @@ Don't list this module, it is implicitly last. """ def set_preferred_vcs(name): - """Manipulate :data:`VCS_ORDER` to place `name` first. + """Manipulate :py:data:`VCS_ORDER` to place `name` first. This is primarily indended for testing purposes. """ @@ -70,7 +70,7 @@ def set_preferred_vcs(name): def _get_matching_vcs(matchfn): """Return the first module for which matchfn(VCS_instance) is True. - Searches in :data:`VCS_ORDER`. + Searches in :py:data:`VCS_ORDER`. """ for submodname in VCS_ORDER: module = import_by_name('libbe.storage.vcs.%s' % submodname) @@ -82,7 +82,7 @@ def _get_matching_vcs(matchfn): def vcs_by_name(vcs_name): """Return the module for the VCS with the given name. - Searches in :data:`VCS_ORDER`. + Searches in :py:data:`VCS_ORDER`. """ if vcs_name == VCS.name: return new() @@ -91,14 +91,14 @@ def vcs_by_name(vcs_name): def detect_vcs(dir): """Return an VCS instance for the vcs being used in this directory. - Searches in :data:`VCS_ORDER`. + Searches in :py:data:`VCS_ORDER`. """ return _get_matching_vcs(lambda vcs: vcs._detect(dir)) def installed_vcs(): """Return an instance of an installed VCS. - Searches in :data:`VCS_ORDER`. + Searches in :py:data:`VCS_ORDER`. """ return _get_matching_vcs(lambda vcs: vcs.installed()) -- cgit