aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-10-26 08:42:14 -0400
committerW. Trevor King <wking@tremily.us>2012-10-26 08:42:14 -0400
commite186cfedadf43deb4b265d06be560bf5e5d81dc6 (patch)
tree3d5b8d6a2139932f5be63f98cf32d2302e664b98 /libbe/storage
parent3354bfda0d54f860f7c83db76dd32e395cd5d1ee (diff)
downloadbugseverywhere-e186cfedadf43deb4b265d06be560bf5e5d81dc6.tar.gz
doc: update :data: to :py:data: for modern Sphinx.
Diffstat (limited to 'libbe/storage')
-rw-r--r--libbe/storage/util/config.py4
-rw-r--r--libbe/storage/vcs/base.py10
2 files changed, 7 insertions, 7 deletions
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())