Home
last modified time | relevance | path

Searched full:six (Results 1 – 25 of 2990) sorted by relevance

12345678910>>...120

/external/python/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.
20 - Pull request #167: Add `six.moves.getoutput`.
22 - Pull request #80: Add `six.moves.urllib_parse.splitvalue`.
24 - Pull request #75: Add `six.moves.email_mime_image`.
32 - Issue #122: Improve the performance of `six.int2byte` on Python 3.
34 - Pull request #55 and issue #99: Don't add the `winreg` module to `six.moves`
37 - Pull request #60 and issue #108: Add `six.moves.getcwd` and
38 `six.moves.getcwdu`.
45 - Issue #106: Support the `flush` parameter to `six.print_`.
[all …]
DPKG-INFO2 Name: six
5 Home-page: http://pypi.python.org/pypi/six/
9 Description: .. image:: http://img.shields.io/pypi/v/six.svg
10 :target: https://pypi.python.org/pypi/six
12 .. image:: https://travis-ci.org/benjaminp/six.svg?branch=master
13 :target: https://travis-ci.org/benjaminp/six
16 :target: https://github.com/benjaminp/six/blob/master/LICENSE
18 Six is a Python 2 and 3 compatibility library. It provides utility functions
23 Six supports every Python version since 2.6. It is contained in only one Python
27 Online documentation is at http://six.rtfd.org.
[all …]
DREADME.rst1 .. image:: http://img.shields.io/pypi/v/six.svg
2 :target: https://pypi.python.org/pypi/six
4 .. image:: https://travis-ci.org/benjaminp/six.svg?branch=master
5 :target: https://travis-ci.org/benjaminp/six
8 :target: https://github.com/benjaminp/six/blob/master/LICENSE
10 Six is a Python 2 and 3 compatibility library. It provides utility functions
15 Six supports every Python version since 2.6. It is contained in only one Python
19 Online documentation is at http://six.rtfd.org.
21 Bugs can be reported to https://github.com/benjaminp/six. The code can also
24 For questions about six or porting in general, email the python-porting mailing
Dsetup.py23 # Six is a dependency of setuptools, so using setuptools creates a
25 # therefore allow falling back to distutils to install six.
31 import six
45 setup(name="six",
46 version=six.__version__,
49 url="http://pypi.python.org/pypi/six/",
51 py_modules=["six"],
/external/autotest/client/common_lib/
Dseven.py6 Seven is an extension to the compatibility layer six.
8 to Python 3, but aren't present in the six library.
11 import six
12 import six.moves.configparser
17 if six.PY3:
54 None (output of six.exec_)
64 return six.exec_(code_obj, globals_, locals_)
70 Unfortunately, in six configparser is not same between 2/3. For our .ini's
73 if six.PY3:
74 return six.moves.configparser.ConfigParser(args, strict=False)
[all …]
/external/python/six/six.egg-info/
DPKG-INFO2 Name: six
5 Home-page: http://pypi.python.org/pypi/six/
9 Description: .. image:: http://img.shields.io/pypi/v/six.svg
10 :target: https://pypi.python.org/pypi/six
12 .. image:: https://travis-ci.org/benjaminp/six.svg?branch=master
13 :target: https://travis-ci.org/benjaminp/six
16 :target: https://github.com/benjaminp/six/blob/master/LICENSE
18 Six is a Python 2 and 3 compatibility library. It provides utility functions
23 Six supports every Python version since 2.6. It is contained in only one Python
27 Online documentation is at http://six.rtfd.org.
[all …]
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
/external/autotest/server/site_tests/telemetry_ScrollingActionTests/
Dtelemetry_ScrollingActionTests.py11 '/usr/local/lib/python2.7/dist-packages/six-1.16.0-py2.7.egg')
13 # This is weird. But it seems something is bringing in six earlier
15 import six
16 if six.PY2:
17 reload(six)
20 importlib.reload(six)
21 logging.debug("six version is {}".format(six.__version__))
22 if six.__version__ != '1.16.0':
25 logging.warning("Could not import six due to %s", e)
/external/tensorflow/tensorflow/python/estimator/
DBUILD66 "@six_archive//:six",
80 "@six_archive//:six",
91 "@six_archive//:six",
106 "@six_archive//:six",
121 "@six_archive//:six",
141 "@six_archive//:six",
158 "@six_archive//:six",
188 "@six_archive//:six",
201 "@six_archive//:six",
212 "@six_archive//:six",
[all …]
/external/autotest/server/site_tests/telemetry_Benchmarks/
Dtelemetry_Benchmarks.py12 '/usr/local/lib/python2.7/dist-packages/six-1.16.0-py2.7.egg')
14 # This is weird. But it seems something is bringing in six earlier
16 import six
17 if six.PY2:
18 reload(six)
21 importlib.reload(six)
22 logging.debug("six version is {}".format(six.__version__))
23 if six.__version__ != '1.16.0':
26 logging.warning("Could not import six due to %s", e)
/external/tensorflow/tensorflow/tools/compatibility/
DBUILD21 deps = ["@six_archive//:six"],
30 "@six_archive//:six",
43 "@six_archive//:six",
54 "@six_archive//:six",
64 "@six_archive//:six",
80 "@six_archive//:six",
116 "@six_archive//:six",
136 "@six_archive//:six",
162 "@six_archive//:six",
179 "@six_archive//:six",
[all …]
/external/truth/core/src/test/java/com/google/common/truth/
DMultimapSubjectTest.java391 ImmutableMultimap.of(3, "one", 3, "six", 3, "two", 4, "five", 4, "four"); in valuesForKey()
395 assertThat(multimap).valuesForKey(3).containsAtLeast("one", "six").inOrder(); in valuesForKey()
402 ImmutableListMultimap.of(3, "one", 3, "six", 3, "two", 4, "five", 4, "four"); in valuesForKeyListMultimap()
410 ImmutableListMultimap.of(3, "one", 3, "six", 3, "two", 4, "five", 4, "four"); in containsExactlyEntriesIn()
439 ImmutableMultimap.of(3, "one", 3, "six", 3, "two", 4, "five", 4, "four"); in containsExactlyRejectsNull()
474 ImmutableMultimap.of(3, "one", 3, "six", 3, "two", 4, "five", 4, "four"); in containsExactlyFailureMissing()
476 actual.remove(3, "six"); in containsExactlyFailureMissing()
481 assertFailureValue("missing", "{3=[six], 4=[five]}"); in containsExactlyFailureMissing()
487 ImmutableMultimap.of(3, "one", 3, "six", 3, "two", 4, "five", 4, "four"); in containsExactlyFailureExtra()
500 ImmutableMultimap.of(3, "one", 3, "six", 3, "two", 4, "five", 4, "four"); in containsExactlyFailureBoth()
[all …]
/external/scapy/scapy/
Dmain.py24 import scapy.modules.six as six namespace
27 IGNORED = list(six.moves.builtins.__dict__)
118 globals_dict = six.moves.builtins.__dict__
129 for name, sym in six.iteritems(mod.__dict__):
224 session = six.moves.builtins.__dict__["scapy_session"]
247 six.moves.cPickle.dump(to_be_saved, f, pickleProto)
260 s = six.moves.cPickle.load(gzip.open(fname,"rb"))
263 s = six.moves.cPickle.load(open(fname,"rb"))
268 scapy_session = six.moves.builtins.__dict__["scapy_session"]
283 s = six.moves.cPickle.load(gzip.open(fname,"rb"))
[all …]
Dconfig.py19 import scapy.modules.six as six namespace
133 for num,layer in six.iteritems(self.num2layer):
140 for layer,num in six.iteritems(self.layer2num):
212 return six.iteritems(self.__dict__)
214 … return ((k,v) for (k,v) in six.iteritems(self.__dict__) if t0-self._timetable[k] < self.timeout)
217 return six.iterkeys(self.__dict__)
219 return (k for k in six.iterkeys(self.__dict__) if t0-self._timetable[k] < self.timeout)
221 return six.iterkeys(self.__dict__)
224 return six.itervalues(self.__dict__)
226 return (v for (k,v) in six.iteritems(self.__dict__) if t0-self._timetable[k] < self.timeout)
[all …]
/external/autotest/client/cros/cellular/
Dtest_endpoint.py10 import six.moves.BaseHTTPServer
11 import six.moves.urllib.parse
13 class TestEndpointHandler(six.moves.BaseHTTPServer.BaseHTTPRequestHandler):
30 url = six.moves.urllib.parse.urlparse(self.path)
35 parsed_query = six.moves.urllib.parse.parse_qs(url.query)
49 server = six.moves.BaseHTTPServer.HTTPServer(('', 80), TestEndpointHandler)
/external/autotest/client/cros/
Dhttpd.py13 import cgi, errno, logging, os, posixpath, six.moves.SimpleHTTPServer, socket, ssl, sys
14 import threading, six.moves.urllib.parse
15 from six.moves import urllib
16 from six.moves.BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
17 from six.moves.socketserver import BaseServer, ThreadingMixIn
35 class FormHandler(six.moves.SimpleHTTPServer.SimpleHTTPRequestHandler):
43 six.moves.SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map.update({
72 path = six.moves.urllib.parse.urlparse(self.path)[2]
115 path = six.moves.urllib.parse.urlparse(path)[2]
148 split_url = six.moves.urllib.parse.urlsplit(self.path)
[all …]
/external/autotest/client/common_lib/test_utils/
Dmock.py8 import re, collections, six, sys, unittest
10 import six
11 from six.moves import zip
24 class SaveDataAfterCloseStringIO(six.StringIO):
46 six.StringIO.close(self)
49 class SaveDataAfterCloseBytesIO(six.BytesIO):
72 six.BytesIO.close(self)
87 if isinstance(arg1, six.string_types) and isinstance(
88 arg2, six.string_types):
112 for key, value in six.iteritems(actual_arg):
[all …]
/external/python/apitools/apitools/base/py/
Dutil.py22 import six
23 from six.moves import http_client
24 import six.moves.urllib.error as urllib_error
25 import six.moves.urllib.parse as urllib_parse
26 import six.moves.urllib.request as urllib_request
32 if six.PY3:
82 if isinstance(scope_spec, six.string_types):
83 scope_spec = six.ensure_str(scope_spec)
86 scope_spec = [six.ensure_str(x) for x in scope_spec]
132 if not isinstance(value, six.string_types):
/external/private-join-and-compute/bazel/
Dpjc_deps.bzl64 # Six (python compatibility)
65 if "six" not in native.existing_rules():
67 name = "six",
68 build_file = "@com_google_protobuf//:six.BUILD",
70 …url = "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab…
/external/stg/test_cases/diff_tests/member/expected/
Dorder_c.o_o_flat1 … four; int five; int six; } v' to 'struct { int zero; int one; int two; double e; int three; doubl…
2 …t four; int five; int six; }' to 'struct { int zero; int one; int two; double e; int three; double…
17 member 'int six' changed
Dorder_c.o_o_plain1 … four; int five; int six; } v' to 'struct { int zero; int one; int two; double e; int three; doubl…
2 …t four; int five; int six; }' to 'struct { int zero; int one; int two; double e; int three; double…
17 member 'int six' changed
Dorder_c.o_o_small1 … four; int five; int six; } v' to 'struct { int zero; int one; int two; double e; int three; doubl…
2 …t four; int five; int six; }' to 'struct { int zero; int one; int two; double e; int three; double…
17 member 'int six' changed
/external/chromium-trace/catapult/common/py_utils/py_utils/
Ddiscover_unittest.py11 import six
30 (name, cls.__name__) for name, cls in six.iteritems(classes))
45 (name, cls.__name__) for name, cls in six.iteritems(classes))
58 (name, cls.__name__) for name, cls in six.iteritems(classes))
78 (name, cls.__name__) for name, cls in six.iteritems(classes))
93 (name, cls.__name__) for name, cls in six.iteritems(classes))
107 (name, cls.__name__) for name, cls in six.iteritems(classes))
/external/autotest/server/
Dsubcommand_unittest.py9 import six
15 from six.moves import range
16 from six.moves import zip
106 self.god.stub_function(six.moves.cPickle, 'dumps')
126 six.moves.cPickle.dumps.expect_call(True,
127 six.moves.cPickle.HIGHEST_PROTOCOL).and_return('True')
150 six.moves.cPickle.dumps.expect_call(error,
151 six.moves.cPickle.HIGHEST_PROTOCOL).and_return('error')
257 self.god.stub_function(six.moves.cPickle, 'load')
289 (six.moves.cPickle.load.expect_call(
[all …]

12345678910>>...120