mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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 sys
|
||||||
|
|
||||||
import colorama
|
import colorama
|
||||||
|
import six
|
||||||
import toml
|
import toml
|
||||||
import voluptuous
|
import voluptuous
|
||||||
import yaml
|
import yaml
|
||||||
|
@ -117,7 +118,7 @@ def is_iter_empty(iterator):
|
||||||
|
|
||||||
|
|
||||||
def normilize_paths(paths):
|
def normilize_paths(paths):
|
||||||
if isinstance(paths, basestring):
|
if isinstance(paths, six.string_types):
|
||||||
return os.path.join(*paths.split('/'))
|
return os.path.join(*paths.split('/'))
|
||||||
else:
|
else:
|
||||||
return [os.path.join(*path.split('/')) for path in paths]
|
return [os.path.join(*path.split('/')) for path in paths]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue