Skip to content
Browse files

Replace usage of basestring by six.string_types for Python3 compatibi…

  • Loading branch information
marmeladema committed Oct 29, 2019
1 parent 267eaad commit 176e63284e60208a4cc627174f63f7a033d67976
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/tidy/servo_tidy/
@@ -20,6 +20,7 @@
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('/'))
return [os.path.join(*path.split('/')) for path in paths]

0 comments on commit 176e632

Please sign in to comment.
You can’t perform that action at this time.