From 368179194423b6da831164a89cf8b5350631a014 Mon Sep 17 00:00:00 2001 From: Jeff Santner Date: Wed, 13 Jun 2018 18:23:32 -0700 Subject: [PATCH] Syntax --- pyked/validation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyked/validation.py b/pyked/validation.py index e198ca2..8bfd101 100644 --- a/pyked/validation.py +++ b/pyked/validation.py @@ -275,7 +275,8 @@ def _validate_isvalid_quantity(self, isvalid_quantity, field, value): """ if type(value[0]) is str: values = value[0].split() - if temp in values for temp in ['degC', 'degF', 'celsius', 'fahrenheit']: + if any([temp in values for temp in + ['degC', 'degF', 'celsius', 'fahrenheit']]): value_alt = [float(values[0])] + values[1:] quantity = Q_(*value_alt) else: