Home
last modified time | relevance | path

Searched refs:six (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/external/chromium-trace/catapult/third_party/six/
Dtest_six.py28 import six
35 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 …]
DCHANGES1 Changelog for six
4 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` and
15 `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* and
35 - Issue #97: Optimize `six.iterbytes` on Python 2.
37 - Issue #98: Fix `six.moves` race condition in multi-threaded code.
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/six/
Dtest_six.py8 import six
15 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 …]
DCHANGES1 Changelog for six
4 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* and
22 - 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 dictionary
32 - 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 …]
/external/chromium-trace/catapult/third_party/Paste/paste/util/
Dquoting.py5 import six
7 from six.moves import html_entities
8 from six.moves.urllib.parse import quote, unquote
24 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 …]
Dconverters.py4 import six
8 if isinstance(obj, (six.binary_type, six.text_type)):
20 if isinstance(obj, (six.binary_type, six.text_type)):
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/wsgi/
Dutil_test.py19 import six
20 from six.moves import filter
25 import six.moves.http_client
35 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 …]
Dservice.py26 import six
31 import six.moves.http_client
49 _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 …]
Dutil.py22 import six
26 import six.moves.http_client
65 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:
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/
Dcompat.py49 from boto.vendored import six
51 from boto.vendored.six import BytesIO, StringIO
52 from boto.vendored.six.moves import filter, http_client, map, _thread, \
54 from boto.vendored.six.moves.queue import Queue
55 from boto.vendored.six.moves.urllib.parse import parse_qs, quote, unquote, \
57 from boto.vendored.six.moves.urllib.request import urlopen
59 if six.PY3:
/external/chromium-trace/catapult/third_party/Paste/tests/
Dtest_multidict.py5 import six
6 from six.moves import StringIO
65 key_str = six.text_type
69 key_str = six.binary_type
73 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 …]
/external/chromium-trace/catapult/third_party/webtest/webtest/
Ddebugapp.py3 import six
34 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>
Dcompat.py3 import six
4 from six import PY3
5 from six import text_type
6 from six.moves import http_cookies
36 six.print_(value, file=sys.stderr)
Dutils.py3 import six
47 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):
/external/chromium-trace/catapult/third_party/Paste/paste/exceptions/
Dserial_number_generator.py16 import six
26 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
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
Dtransfer_test.py5 import six
6 from six.moves import http_client
38 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 …]
Dutil.py9 import six
10 from six.moves import http_client
11 import six.moves.urllib.error as urllib_error
12 import six.moves.urllib.parse as urllib_parse
13 import six.moves.urllib.request as urllib_request
60 if isinstance(scope_spec, six.string_types):
108 if not isinstance(value, six.string_types):
/external/compiler-rt/test/BlocksRuntime/
Dvarargs-bad-assign.c19 int six = 0; in main() local
35 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()
/external/chromium-trace/catapult/third_party/apiclient/googleapiclient/
Dmodel.py23 import six
30 from six.moves.urllib.parse import urlencode
110 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):
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/
Dcrypt.py26 import six
93 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):
/external/chromium-trace/catapult/third_party/Paste/paste/
Dtranslogger.py8 import six
10 from six.moves.urllib.parse import quote
110 if isinstance(logging_level, (six.binary_type, six.text_type)):
112 if isinstance(set_logger_level, (six.binary_type, six.text_type)):
Dcgitb_catcher.py13 import six
14 from six.moves import cStringIO as StringIO
35 if isinstance(display, six.string_types):
52 if six.PY3:
77 if six.PY3:
Dhttpexceptions.py77 import six
181 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
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/
Dprotojson.py27 import six
111 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)):
Dtransport.py26 import six.moves.http_client
37 import six
164 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.HTTPSConnection
315 connection_type = six.moves.http_client.HTTPConnection
396 host = six.text_type(os.uname()[1])
409 six.reraise(remote.ServerError, message, traceback)

12345678910>>...15