summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-08-30 16:28:55 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2016-08-30 16:28:55 -0500
commit1be6267149ba2fdd3d510bde713b237eaa0248e9 (patch)
treee91fe3b20c79bef2e61c69ac0964c71f338cf48b /lib
parentf6d07b54f15941ba25ed10ff9465df358a59d625 (diff)
downloadspack-1be6267149ba2fdd3d510bde713b237eaa0248e9.tar.gz
spack-1be6267149ba2fdd3d510bde713b237eaa0248e9.tar.bz2
spack-1be6267149ba2fdd3d510bde713b237eaa0248e9.tar.xz
spack-1be6267149ba2fdd3d510bde713b237eaa0248e9.zip
Undo changes to trailing triple quotes in docstring
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_environment.py3
-rw-r--r--lib/spack/spack/config.py3
-rw-r--r--lib/spack/spack/environment.py3
-rw-r--r--lib/spack/spack/mirror.py4
-rw-r--r--lib/spack/spack/spec.py4
-rw-r--r--lib/spack/spack/version.py3
6 files changed, 12 insertions, 8 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py
index 9fbf0536a4..9b5ed367d1 100644
--- a/lib/spack/spack/build_environment.py
+++ b/lib/spack/spack/build_environment.py
@@ -494,7 +494,8 @@ def fork(pkg, function, dirty=False):
If something goes wrong, the child process is expected to print
the error and the parent process will exit with error as
well. If things go well, the child exits and the parent
- carries on."""
+ carries on.
+ """
try:
pid = os.fork()
diff --git a/lib/spack/spack/config.py b/lib/spack/spack/config.py
index ebddfb328f..dec43726a0 100644
--- a/lib/spack/spack/config.py
+++ b/lib/spack/spack/config.py
@@ -117,7 +117,8 @@ a key in a configuration file. For example, this::
...
Will make Spack take compilers *only* from the user configuration, and
-the site configuration will be ignored."""
+the site configuration will be ignored.
+"""
import copy
import os
diff --git a/lib/spack/spack/environment.py b/lib/spack/spack/environment.py
index 64863510c3..b0eadef7a6 100644
--- a/lib/spack/spack/environment.py
+++ b/lib/spack/spack/environment.py
@@ -266,7 +266,8 @@ class EnvironmentModifications(object):
parameters
:param \*args: list of files to be sourced
- :rtype: instance of EnvironmentModifications"""
+ :rtype: instance of EnvironmentModifications
+ """
env = EnvironmentModifications()
# Check if the files are actually there
diff --git a/lib/spack/spack/mirror.py b/lib/spack/spack/mirror.py
index 1e759848ea..2361fb5448 100644
--- a/lib/spack/spack/mirror.py
+++ b/lib/spack/spack/mirror.py
@@ -141,8 +141,8 @@ def create(path, specs, **kwargs):
This routine iterates through all known package versions, and
it creates specs for those versions. If the version satisfies any spec
- in the specs list, it is downloaded and added to the mirror."""
-
+ in the specs list, it is downloaded and added to the mirror.
+ """
# Make sure nothing is in the way.
if os.path.isfile(path):
raise MirrorError("%s already exists and is a file." % path)
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index 19733c8a41..d8a7cf9d7b 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -2110,8 +2110,8 @@ class Spec(object):
*Example:* ``$_$@$+`` translates to the name, version, and options
of the package, but no dependencies, arch, or compiler.
- TODO: allow, e.g., $6# to customize short hash length
- TODO: allow, e.g., $## for full hash.
+ TODO: allow, e.g., ``$6#`` to customize short hash length
+ TODO: allow, e.g., ``$##`` for full hash.
"""
color = kwargs.get('color', False)
length = len(format_string)
diff --git a/lib/spack/spack/version.py b/lib/spack/spack/version.py
index fb87966d04..bc96dcd716 100644
--- a/lib/spack/spack/version.py
+++ b/lib/spack/spack/version.py
@@ -158,7 +158,8 @@ class Version(object):
"""A Version 'satisfies' another if it is at least as specific and has
a common prefix. e.g., we want gcc@4.7.3 to satisfy a request for
gcc@4.7 so that when a user asks to build with gcc@4.7, we can find
- a suitable compiler."""
+ a suitable compiler.
+ """
nself = len(self.version)
nother = len(other.version)