diff options
author | Glenn Johnson <glenn-johnson@uiowa.edu> | 2016-07-23 19:00:57 -0500 |
---|---|---|
committer | Glenn Johnson <glenn-johnson@uiowa.edu> | 2016-07-23 19:10:09 -0500 |
commit | 4181fd79cd6993ccb5cb95c4d3dd8d2cdf0b17c3 (patch) | |
tree | 5a0e9c74bd995e1288ff0eaa79a2329da84d3509 /lib | |
parent | b51be2bb1bc9dd3c422af2f159c94bc0277fcecc (diff) | |
download | spack-4181fd79cd6993ccb5cb95c4d3dd8d2cdf0b17c3.tar.gz spack-4181fd79cd6993ccb5cb95c4d3dd8d2cdf0b17c3.tar.bz2 spack-4181fd79cd6993ccb5cb95c4d3dd8d2cdf0b17c3.tar.xz spack-4181fd79cd6993ccb5cb95c4d3dd8d2cdf0b17c3.zip |
Fix flake8 errors related to lines
Fixed the flake 8 errors that involved too many blank lines or not
enough blank lines. Basically, all of the flake8 errors except line
length errors.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/stage.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py index 0914afe3a7..cf1c9d7b50 100644 --- a/lib/spack/spack/stage.py +++ b/lib/spack/spack/stage.py @@ -144,7 +144,6 @@ class Stage(object): # Flag to decide whether to delete the stage folder on exit or not self.keep = keep - def __enter__(self): """ Entering a stage context will create the stage directory @@ -155,7 +154,6 @@ class Stage(object): self.create() return self - def __exit__(self, exc_type, exc_val, exc_tb): """ Exiting from a stage context will delete the stage directory unless: @@ -174,7 +172,6 @@ class Stage(object): if exc_type is None and not self.keep: self.destroy() - def _need_to_create_path(self): """Makes sure nothing weird has happened since the last time we looked at path. Returns True if path already exists and is ok. @@ -334,7 +331,6 @@ class Stage(object): self.fetcher = self.default_fetcher raise fs.FetchError(errMessage, None) - def check(self): """Check the downloaded archive against a checksum digest. No-op if this stage checks code out of a repository.""" @@ -348,11 +344,9 @@ class Stage(object): else: self.fetcher.check() - def cache_local(self): spack.cache.store(self.fetcher, self.mirror_path) - def expand_archive(self): """Changes to the stage directory and attempt to expand the downloaded archive. Fail if the stage is not set up or if the archive is not yet @@ -509,8 +503,11 @@ class DIYStage(object): raise ChdirError("Setup failed: no such directory: " + self.path) # DIY stages do nothing as context managers. - def __enter__(self): pass - def __exit__(self, exc_type, exc_val, exc_tb): pass + def __enter__(self): + pass + + def __exit__(self, exc_type, exc_val, exc_tb): + pass def chdir_to_source(self): self.chdir() |