Skip to content

Commit 3128b9d

Browse files
committed
#990 - reverted the print and white-flag E999 now, as the online documentation from git admits that the linter error is incorrectly evaluated (PyCQA/pycodestyle#584). possibly the white-flag is removed in the future.
1 parent fcfa6b9 commit 3128b9d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

parcels/tools/converters.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# flake8: noqa: E999
12
import inspect
23
from datetime import timedelta as delta
34
from math import cos
@@ -56,14 +57,14 @@ def reltime(self, time):
5657
try:
5758
return np.array([(t - self.time_origin).total_seconds() for t in time])
5859
except ValueError:
59-
raise ValueError("Cannot subtract 'time' (a %s object) from a %s calendar.\n" \
60+
raise ValueError("Cannot subtract 'time' (a %s object) from a %s calendar.\n"
6061
"Provide 'time' as a %s object?"
6162
% (type(time), self.calendar, type(self.time_origin)))
6263
else:
6364
try:
6465
return (time - self.time_origin).total_seconds()
6566
except ValueError:
66-
raise ValueError("Cannot subtract 'time' (a %s object) from a %s calendar.\n" \
67+
raise ValueError("Cannot subtract 'time' (a %s object) from a %s calendar.\n"
6768
"Provide 'time' as a %s object?"
6869
% (type(time), self.calendar, type(self.time_origin)))
6970
elif self.calendar is None:

0 commit comments

Comments
 (0)