We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d87c56e commit a13917aCopy full SHA for a13917a
src/future/backports/urllib/parse.py
@@ -107,11 +107,11 @@ def _coerce_args(*args):
107
# an appropriate result coercion function
108
# - noop for str inputs
109
# - encoding function otherwise
110
- str_input = isinstance(args[0], basestring)
+ str_input = isinstance(args[0], str)
111
for arg in args[1:]:
112
# We special-case the empty string to support the
113
# "scheme=''" default argument to some functions
114
- if arg and isinstance(arg, basestring) != str_input:
+ if arg and isinstance(arg, str) != str_input:
115
raise TypeError("Cannot mix str and non-str arguments")
116
if str_input:
117
return args + (_noop,)
0 commit comments