diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2016-08-02 11:21:23 -0500 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2016-08-11 10:28:34 -0500 |
commit | 0b8a3ad8ad0ec5139f2fa83d67cfee98a709eacc (patch) | |
tree | 3a710a4391c721006d6b144e8ea39a4abaafd622 /var | |
parent | aa6a6df640558d93add9cbfd4f94ba6a2c80fc54 (diff) | |
download | spack-0b8a3ad8ad0ec5139f2fa83d67cfee98a709eacc.tar.gz spack-0b8a3ad8ad0ec5139f2fa83d67cfee98a709eacc.tar.bz2 spack-0b8a3ad8ad0ec5139f2fa83d67cfee98a709eacc.tar.xz spack-0b8a3ad8ad0ec5139f2fa83d67cfee98a709eacc.zip |
Flake8
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-matplotlib/package.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/py-matplotlib/package.py b/var/spack/repos/builtin/packages/py-matplotlib/package.py index 51a198bd2b..fdc312509d 100644 --- a/var/spack/repos/builtin/packages/py-matplotlib/package.py +++ b/var/spack/repos/builtin/packages/py-matplotlib/package.py @@ -23,6 +23,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## from spack import * +import os @@ -80,12 +81,12 @@ class PyMatplotlib(Package): if str(self.version) in ['1.4.2', '1.4.3']: # hack to fix configuration file config_file = None - for p,d,f in os.walk(prefix.lib): + for p, d, f in os.walk(prefix.lib): for file in f: if file.find('matplotlibrc') != -1: config_file = join_path(p, 'matplotlibrc') print config_file - if config_file == None: + if not config_file: raise InstallError('could not find config file') filter_file(r'backend : pyside', 'backend : Qt4Agg', |