Skip to content

Commit

Permalink
Replace usage of basestring by six.string_types for Python3 compatibi…
Browse files Browse the repository at this point in the history
…lity
  • Loading branch information
marmeladema committed Dec 10, 2019
1 parent 267eaad commit 176e632
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/tidy/servo_tidy/tidy.py
Expand Up @@ -20,6 +20,7 @@
import sys

import colorama
import six
import toml
import voluptuous
import yaml
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 176e632

Please sign in to comment.