mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Use six.string_types instead of basestring.
This commit is contained in:
parent
dff4223c9f
commit
e9e04aa6c6
@ -84,7 +84,7 @@ class SafeAtoms(dict):
|
||||
def __init__(self, atoms):
|
||||
dict.__init__(self)
|
||||
for key, value in atoms.items():
|
||||
if isinstance(value, basestring):
|
||||
if isinstance(value, string_types):
|
||||
self[key] = value.replace('"', '\\"')
|
||||
else:
|
||||
self[key] = value
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user