Searched refs:six (Results 1 – 25 of 352) sorted by relevance
12345678910>>...15
28 import six35 six._add_doc(f, """New doc""")41 m = six._import_module("logging.handlers")46 assert isinstance(1, six.integer_types)47 assert isinstance(-1, six.integer_types)48 assert isinstance(six.MAXSIZE + 23, six.integer_types)49 assert not isinstance(.1, six.integer_types)53 assert isinstance("hi", six.string_types)54 assert isinstance(six.u("hi"), six.string_types)55 assert issubclass(six.text_type, six.string_types)[all …]
1 Changelog for six4 This file lists the changes in each six version.9 - Issue #122: Improve the performance of `six.int2byte` on Python 3.11 - Pull request #55 and issue #99: Don't add the `winreg` module to `six.moves`14 - Pull request #60 and issue #108: Add `six.moves.getcwd` and15 `six.moves.getcwdu`.22 - Issue #106: Support the `flush` parameter to `six.print_`.30 - Issue #105 and pull request #58: Ensure `six.wraps` respects the *updated* and35 - Issue #97: Optimize `six.iterbytes` on Python 2.37 - Issue #98: Fix `six.moves` race condition in multi-threaded code.[all …]
8 import six15 six._add_doc(f, """New doc""")21 m = six._import_module("logging.handlers")26 assert isinstance(1, six.integer_types)27 assert isinstance(-1, six.integer_types)28 assert isinstance(six.MAXSIZE + 23, six.integer_types)29 assert not isinstance(.1, six.integer_types)33 assert isinstance("hi", six.string_types)34 assert isinstance(six.u("hi"), six.string_types)35 assert issubclass(six.text_type, six.string_types)[all …]
1 Changelog for six4 This file lists the changes in each six version.9 - Issue #106: Support the `flush` parameter to `six.print_`.17 - Issue #105 and pull request #58: Ensure `six.wraps` respects the *updated* and22 - Issue #97: Optimize `six.iterbytes` on Python 2.24 - Issue #98: Fix `six.moves` race condition in multi-threaded code.26 - Pull request #51: Add `six.view(keys|values|itmes)`, which provide dictionary32 - Issue #90: Add `six.moves.shlex_quote`.34 - Issue #59: Add `six.moves.intern`.36 - Add `six.urllib.parse.uses_(fragment|netloc|params|query|relative)`.[all …]
5 import six7 from six.moves import html_entities8 from six.moves.urllib.parse import quote, unquote24 elif isinstance(v, six.binary_type):26 elif isinstance(v, six.text_type):27 if six.PY3:32 if six.PY3:33 return cgi.escape(six.text_type(v), 1)35 return cgi.escape(six.text_type(v).encode(encoding), 1)41 return six.unichr(code)[all …]
4 import six8 if isinstance(obj, (six.binary_type, six.text_type)):20 if isinstance(obj, (six.binary_type, six.text_type)):
19 import six20 from six.moves import filter25 import six.moves.http_client35 NOT_FOUND = wsgi_util.error(six.moves.http_client.NOT_FOUND)50 connection = six.moves.http_client.HTTPConnection('localhost', self.port)206 self.assertEquals(six.moves.http_client.NOT_FOUND, status)207 self.assertEquals(six.moves.http_client.responses[six.moves.http_client.NOT_FOUND], status_text)208 …self.assertEquals(util.pad_string(six.moves.http_client.responses[six.moves.http_client.NOT_FOUND]…219 self.assertEquals(six.moves.http_client.OK, status)220 self.assertEquals(six.moves.http_client.responses[six.moves.http_client.OK], status_text)[all …]
26 import six31 import six.moves.http_client49 _HTTP_BAD_REQUEST = wsgi_util.error(six.moves.http_client.BAD_REQUEST)50 _HTTP_NOT_FOUND = wsgi_util.error(six.moves.http_client.NOT_FOUND)51 _HTTP_UNSUPPORTED_MEDIA_TYPE = wsgi_util.error(six.moves.http_client.UNSUPPORTED_MEDIA_TYPE)101 six.moves.http_client.METHOD_NOT_ALLOWED,102 six.moves.http_client.responses[six.moves.http_client.METHOD_NOT_ALLOWED],140 return send_rpc_error(six.moves.http_client.BAD_REQUEST,151 return send_rpc_error(six.moves.http_client.BAD_REQUEST,167 for name, value in six.iteritems(environ):[all …]
22 import six26 import six.moves.http_client65 if isinstance(status, six.integer_types):66 status = '%d %s' % (status, six.moves.http_client.responses.get(status, 'Unknown Error'))67 elif not isinstance(status, six.string_types):71 headers = six.iteritems(headers)79 if isinstance(value, six.text_type):120 status_message = six.moves.http_client.responses.get(status_code, 'Unknown Error')150 not_found = error(six.moves.http_client.NOT_FOUND)167 if int(status_code) == six.moves.http_client.NOT_FOUND:
49 from boto.vendored import six51 from boto.vendored.six import BytesIO, StringIO52 from boto.vendored.six.moves import filter, http_client, map, _thread, \54 from boto.vendored.six.moves.queue import Queue55 from boto.vendored.six.moves.urllib.parse import parse_qs, quote, unquote, \57 from boto.vendored.six.moves.urllib.request import urlopen59 if six.PY3:
5 import six6 from six.moves import StringIO65 key_str = six.text_type69 key_str = six.binary_type73 assert isinstance(obj, six.text_type)81 assert isinstance(value, six.text_type)108 assert isinstance(d.pop('xxx', u'5 test'), six.text_type)110 assert isinstance(d.getone(k('a')), six.text_type)124 assert isinstance(d.setdefault(k('y'), b'y test'), six.text_type)125 assert isinstance(d[k('y')], six.text_type)[all …]
3 import six34 if not six.PY3 and not isinstance(log, six.binary_type):48 if not isinstance(body, six.binary_type):52 body += six.b('-- Body ----------\n')70 if isinstance(header_name, six.text_type):79 if isinstance(body, six.text_type):86 debug_app = DebugApp(form=six.b('''<html><body>
3 import six4 from six import PY35 from six import text_type6 from six.moves import http_cookies36 six.print_(value, file=sys.stderr)
3 import six47 if isinstance(value, six.text_type):49 elif isinstance(value, six.binary_type):71 if isinstance(v, six.text_type):83 if isinstance(pat, six.binary_type):85 if isinstance(pat, six.text_type):
16 import six26 if not isinstance(number, six.integer_types):64 if isinstance(s, six.text_type):66 elif not isinstance(s, six.binary_type):68 if six.PY3:75 number = (number * 256 + six.byte2int([c])) % modulo
5 import six6 from six.moves import http_client38 six.StringIO(), chunksize=chunksize, total_size=total_size)43 download = transfer.Download.FromStream(six.StringIO())50 six.StringIO(), chunksize=10, total_size=total_size)59 download = transfer.Download.FromStream(six.StringIO())72 download = transfer.Download.FromStream(six.StringIO(),83 download_stream = six.StringIO()112 download_stream = six.StringIO()141 download_stream = six.StringIO()[all …]
9 import six10 from six.moves import http_client11 import six.moves.urllib.error as urllib_error12 import six.moves.urllib.parse as urllib_parse13 import six.moves.urllib.request as urllib_request60 if isinstance(scope_spec, six.string_types):108 if not isinstance(value, six.string_types):
19 int six = 0; in main() local35 six = sumn(3, 1, 2, 3); in main()37 if ( six != 6 ) { in main()38 printf("%s: Expected 6 but got %d\n", argv[0], six); in main()
23 import six30 from six.moves.urllib.parse import urlencode110 for h, v in six.iteritems(headers):114 for h, v in six.iteritems(path_params):165 for key, value in six.iteritems(params):171 if isinstance(value, six.text_type) and callable(value.encode):180 for h, v in six.iteritems(resp):368 for key, original_value in six.iteritems(original):
26 import six93 if isinstance(message, six.text_type):144 if isinstance(message, six.text_type):167 if isinstance(password, six.text_type):185 if isinstance(private_key_password, six.string_types):246 if isinstance(key_pem, six.text_type):280 if isinstance(message, six.text_type):343 if isinstance(raw_bytes, six.text_type):350 if isinstance(b64string, six.text_type):
8 import six10 from six.moves.urllib.parse import quote110 if isinstance(logging_level, (six.binary_type, six.text_type)):112 if isinstance(set_logger_level, (six.binary_type, six.text_type)):
13 import six14 from six.moves import cStringIO as StringIO35 if isinstance(display, six.string_types):52 if six.PY3:77 if six.PY3:
77 import six181 assert isinstance(detail, (type(None), six.binary_type, six.text_type)), (183 assert isinstance(comment, (type(None), six.binary_type, six.text_type)), (209 if six.PY2:211 if isinstance(value, six.text_type):241 if isinstance(content, six.text_type):597 for name, value in six.iteritems(dict(globals())):598 if (isinstance(value, (type, six.class_types)) and
27 import six111 if six.PY3 and isinstance(value, bytes):221 elif isinstance(value, six.integer_types):225 elif isinstance(value, six.string_types):253 for key, value in six.iteritems(dictionary):325 isinstance(value, (six.integer_types, six.string_types))):332 isinstance(value, six.string_types)):
26 import six.moves.http_client37 import six164 if isinstance(protocol, six.string_types):267 content = six.moves.http_client.responses.get(response.status, 'Unknown Error')288 if response.status == six.moves.http_client.OK:313 connection_type = six.moves.http_client.HTTPSConnection315 connection_type = six.moves.http_client.HTTPConnection396 host = six.text_type(os.uname()[1])409 six.reraise(remote.ServerError, message, traceback)