From 176e63284e60208a4cc627174f63f7a033d67976 Mon Sep 17 00:00:00 2001 From: marmeladema Date: Tue, 29 Oct 2019 00:01:53 +0000 Subject: [PATCH] Replace usage of basestring by six.string_types for Python3 compatibility --- python/tidy/servo_tidy/tidy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index 899bb60e775..a3c1c0a9a01 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -20,6 +20,7 @@ import subprocess import sys import colorama +import six import toml import voluptuous import yaml @@ -117,7 +118,7 @@ def is_iter_empty(iterator): def normilize_paths(paths): - if isinstance(paths, basestring): + if isinstance(paths, six.string_types): return os.path.join(*paths.split('/')) else: return [os.path.join(*path.split('/')) for path in paths]