|
1 | | -from __future__ import absolute_import |
2 | | -from __future__ import division |
3 | | -from __future__ import print_function |
4 | | -from __future__ import unicode_literals |
5 | | - |
6 | | -from collections import namedtuple, OrderedDict |
7 | 1 | import itertools |
8 | 2 | import json |
9 | | -from six import string_types |
10 | | -from six.moves.urllib import parse |
| 3 | +from collections import namedtuple, OrderedDict |
| 4 | +from urllib import parse |
11 | 5 |
|
12 | 6 | import requests |
13 | 7 |
|
@@ -110,7 +104,7 @@ def get_type(value): |
110 | 104 | Note that bool is a subclass of int so order of statements matter. |
111 | 105 | """ |
112 | 106 |
|
113 | | - if isinstance(value, string_types) or value is None: |
| 107 | + if isinstance(value, str) or value is None: |
114 | 108 | return Type.STRING |
115 | 109 | elif isinstance(value, bool): |
116 | 110 | return Type.BOOLEAN |
@@ -446,7 +440,7 @@ def escape(value): |
446 | 440 |
|
447 | 441 | if value == "*": |
448 | 442 | return value |
449 | | - elif isinstance(value, string_types): |
| 443 | + elif isinstance(value, str): |
450 | 444 | return "'{}'".format(value.replace("'", "''")) |
451 | 445 | elif isinstance(value, bool): |
452 | 446 | return "TRUE" if value else "FALSE" |
|
0 commit comments