summaryrefslogtreecommitdiff
path: root/lorrycontroller/readconf.py
diff options
context:
space:
mode:
Diffstat (limited to 'lorrycontroller/readconf.py')
-rw-r--r--lorrycontroller/readconf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lorrycontroller/readconf.py b/lorrycontroller/readconf.py
index 162e116..a8949c1 100644
--- a/lorrycontroller/readconf.py
+++ b/lorrycontroller/readconf.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2016 Codethink Limited
+# Copyright (C) 2014-2019 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -394,7 +394,7 @@ class LorryControllerConfValidator(object):
def _check_is_list_of_strings(self, section, field):
obj = section[field]
if not isinstance(obj, list) or not all(
- isinstance(s, basestring) for s in obj):
+ isinstance(s, str) for s in obj):
raise ValidationError(
'%s field in %r must be a list of strings' %
(field, section))