mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Replace usage of basestring by six.string_types for Python3 compatibility
This commit is contained in:
parent
267eaad4eb
commit
176e63284e
1 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue