aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/Plot.py2
-rw-r--r--wqflask/utility/tools.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/wqflask/utility/Plot.py b/wqflask/utility/Plot.py
index 4f5691c1..00658d10 100644
--- a/wqflask/utility/Plot.py
+++ b/wqflask/utility/Plot.py
@@ -319,7 +319,7 @@ def colorSpectrum(n=100):
ImageColor.getrgb("rgb(0%,100%,0%)"),
ImageColor.getrgb("rgb(0%,0%,100%)")]
N = n * multiple
- out = [None] * N;
+ out = [None] * N
for i in range(N):
x = float(i) / N
out[i] = ImageColor.getrgb("rgb({}%,{}%,{}%".format(
diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py
index 263c3948..d82e478d 100644
--- a/wqflask/utility/tools.py
+++ b/wqflask/utility/tools.py
@@ -198,7 +198,8 @@ def locate(name, subdir=None):
return lookfor
else:
raise Exception("Can not locate " + lookfor)
- if subdir: sys.stderr.write(subdir)
+ if subdir:
+ sys.stderr.write(subdir)
raise Exception("Can not locate " + name + " in " + base)