16
16
17
17
from __future__ import print_function
18
18
19
+ from gyp import string_types
20
+
19
21
import sys
20
22
import re
21
23
@@ -108,11 +110,11 @@ class _String(_Type):
108
110
"""A setting that's just a string."""
109
111
110
112
def ValidateMSVS (self , value ):
111
- if not isinstance (value , basestring ):
113
+ if not isinstance (value , string_types ):
112
114
raise ValueError ('expected string; got %r' % value )
113
115
114
116
def ValidateMSBuild (self , value ):
115
- if not isinstance (value , basestring ):
117
+ if not isinstance (value , string_types ):
116
118
raise ValueError ('expected string; got %r' % value )
117
119
118
120
def ConvertToMSBuild (self , value ):
@@ -124,11 +126,11 @@ class _StringList(_Type):
124
126
"""A settings that's a list of strings."""
125
127
126
128
def ValidateMSVS (self , value ):
127
- if not isinstance (value , basestring ) and not isinstance (value , list ):
129
+ if not isinstance (value , string_types ) and not isinstance (value , list ):
128
130
raise ValueError ('expected string list; got %r' % value )
129
131
130
132
def ValidateMSBuild (self , value ):
131
- if not isinstance (value , basestring ) and not isinstance (value , list ):
133
+ if not isinstance (value , string_types ) and not isinstance (value , list ):
132
134
raise ValueError ('expected string list; got %r' % value )
133
135
134
136
def ConvertToMSBuild (self , value ):
0 commit comments