summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-08-02 11:21:23 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2016-08-11 10:28:34 -0500
commit0b8a3ad8ad0ec5139f2fa83d67cfee98a709eacc (patch)
tree3a710a4391c721006d6b144e8ea39a4abaafd622 /var
parentaa6a6df640558d93add9cbfd4f94ba6a2c80fc54 (diff)
downloadspack-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.py5
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',