Home
last modified time | relevance | path

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

1234567

/external/chromium-trace/trace-viewer/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 …]
DPKG-INFO2 Name: six
5 Home-page: http://pypi.python.org/pypi/six/
18 Online documentation is at http://pythonhosted.org/six/.
20 Bugs can be reported to https://bitbucket.org/gutworth/six. The code can also
23 For questions about six or porting in general, email the python-porting mailing
/external/chromium-trace/trace-viewer/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)):
Dintset.py9 import six
66 _VALID_TYPES = six.integer_types + (_Infinity,)
124 if not ( isinstance(self._min, six.integer_types) or self._min is _MININF ):
126 if not ( isinstance(self._max, six.integer_types) or self._max is _MAXINF ):
131 if isinstance(self._max, six.integer_types):
136 if isinstance(arg, six.integer_types):
150 if not ( isinstance(start, six.integer_types) or start is _MININF ):
152 if not ( isinstance(stop, six.integer_types) or stop is _MAXINF ):
157 if isinstance(stop, six.integer_types):
218 elif isinstance(other, six.integer_types + (tuple,)):
[all …]
Dtemplate.py34 import six
37 from six.moves.urllib.parse import quote
81 self._unicode = isinstance(content, six.text_type)
127 if isinstance(item, six.string_types):
188 assert not isinstance(part, six.string_types)
211 six.reraise(exc_info[0], e, exc_info[2])
216 six.exec_(code, ns)
221 six.reraise(exc_info[0], e, exc_info[2])
230 value = six.text_type(value)
239 six.reraise(exc_info[0], e, exc_info[2])
[all …]
/external/chromium-trace/trace-viewer/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 …]
Dtest_wsgiwrappers.py7 import six
89 assert isinstance(fs.filename, six.text_type)
109 assert isinstance(data, six.binary_type)
120 assert isinstance(data, six.binary_type)
133 assert isinstance(data, six.text_type)
144 assert isinstance(data, six.text_type)
/external/chromium-trace/trace-viewer/third_party/six/six.egg-info/
DSOURCES.txt7 six.py
12 six.egg-info/PKG-INFO
13 six.egg-info/SOURCES.txt
14 six.egg-info/dependency_links.txt
15 six.egg-info/top_level.txt
DPKG-INFO2 Name: six
5 Home-page: http://pypi.python.org/pypi/six/
18 Online documentation is at http://pythonhosted.org/six/.
20 Bugs can be reported to https://bitbucket.org/gutworth/six. The code can also
23 For questions about six or porting in general, email the python-porting mailing
/external/chromium-trace/trace-viewer/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/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()
Dvarargs.c30 int six = sumn(3, 1, 2, 3); in main() local
32 if ( six != 6 ) { in main()
33 printf("%s: Expected 6 but got %d\n", argv[0], six); in main()
/external/chromium-trace/trace-viewer/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)):
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
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:
Dwsgilib.py18 import six
20 from six.moves import cStringIO as StringIO
21 from six.moves.urllib.parse import unquote, urlsplit
136 six.reraise(got_exc[0], got_exc[1], got_exc[2])
162 if isinstance(content, six.text_type):
287 errors = six.BytesIO()
299 'wsgi.input': six.BytesIO(),
321 basic_environ['wsgi.input'] = six.BytesIO(istream)
332 six.reraise(exc_info[0], exc_info[1], exc_info[2])
348 if not isinstance(s, six.binary_type):
[all …]
Dfixture.py23 import six
25 from six.moves import cStringIO as StringIO
26 from six.moves.urllib.parse import urlencode
27 from six.moves.urllib import parse as urlparse
131 if isinstance(app, (six.binary_type, six.text_type)):
195 if not isinstance(params, (six.binary_type, six.text_type)):
229 if six.PY3:
244 environ['wsgi.input'] = six.BytesIO(params)
327 if six.PY3:
334 if six.PY3:
[all …]
/external/chromium-trace/trace-viewer/third_party/six/documentation/
Dindex.rst4 .. module:: six
13 without modification. six consists of only one Python file, so it is painless
16 Six can be downloaded on `PyPi <http://pypi.python.org/pypi/six/>`_. Its bug
17 tracker and code hosting is on `BitBucket <http://bitbucket.org/gutworth/six>`_.
19 The name, "six", comes from the fact that 2*3 equals 6. Why not addition?
93 import six
96 if isinstance(value, six.integer_types):
98 elif isinstance(value, six.class_types):
100 elif isinstance(value, six.string_types):
118 from six import get_unbound_function
[all …]
/external/chromium-trace/trace-viewer/third_party/Paste/paste/auth/
Ddigest.py39 from six.moves.urllib.parse import quote as url_quote
40 import six
73 if six.PY3:
87 if six.PY3:
92 if six.PY3:
111 if six.PY3:
118 if six.PY3:
Dcookie.py44 import hmac, base64, random, six, time, warnings
65 return six.moves.reduce((lambda a, b: a.replace(b[0], b[1])), sublist, str(s))
78 if six.PY3:
130 if isinstance(timeout, six.string_types):
144 if six.PY3:
308 if six.PY3:
382 if isinstance(scanlist, six.string_types):
/external/chromium-trace/trace-viewer/third_party/Paste/tests/test_auth/
Dtest_auth_digest.py10 import six
17 if six.PY3:
63 from six.moves.urllib.error import HTTPError
64 from six.moves.urllib.request import build_opener, HTTPDigestAuthHandler
/external/clang/test/CodeGen/
Dtbaa-struct.cpp54 struct six { struct
60 void copy5(struct six *a, struct six *b) { in copy5() argument
/external/chromium-trace/trace-viewer/third_party/Paste/paste/evalexception/
Devalcontext.py3 from six.moves import cStringIO as StringIO
7 import six
38 six.exec_(code, self.globs, self.namespace)

1234567