Home
last modified time | relevance | path

Searched refs:text_type (Results 1 – 25 of 79) sorted by relevance

1234

/external/libchrome/third_party/markupsafe/
D__init__.py12 from markupsafe._compat import text_type, string_types, int_types, \
23 class Markup(text_type):
72 return text_type.__new__(cls, base)
73 return text_type.__new__(cls, base, encoding, errors)
90 return self.__class__(text_type.__mul__(self, num))
99 return self.__class__(text_type.__mod__(self, arg))
104 text_type.__repr__(self)
108 return self.__class__(text_type.join(self, map(self.escape, seq)))
109 join.__doc__ = text_type.join.__doc__
112 return list(map(self.__class__, text_type.split(self, *args, **kwargs)))
[all …]
D_native.py12 from markupsafe._compat import text_type
22 return Markup(text_type(s)
44 if not isinstance(s, text_type):
45 s = text_type(s)
D_compat.py16 text_type = str variable
21 text_type = unicode variable
/external/python/pyopenssl/src/OpenSSL/
D_util.py4 from six import PY2, text_type
86 if not isinstance(s, (bytes, text_type)):
89 if isinstance(s, text_type):
108 elif isinstance(s, text_type):
131 text_type.__name__ + " for {0} is no longer accepted, use bytes"
148 if isinstance(obj, text_type):
/external/tensorflow/tensorflow/tools/test/
Dupload_test_benchmarks.py90 from six import text_type
154 test_name = text_type(test_result["name"])
166 "info": text_type(data)
174 ent_name = text_type(ent["name"])
182 "info": text_type(json.dumps(ent))
/external/autotest/client/common_lib/
Dseven.py24 text_type = str variable
33 text_type = unicode variable
90 elif isinstance(s, text_type):
/external/libchrome/third_party/jinja2/
Dfilters.py22 from jinja2._compat import imap, string_types, text_type, iteritems, PY2
91 return escape(text_type(value))
134 return text_type(s).replace(text_type(old), text_type(new), count)
405 return text_type(d).join(imap(text_type, value))
416 value[idx] = text_type(item)
420 d = text_type(d)
429 return text_type(value).center(width)
698 return Markup(text_type(value)).striptags()
892 return text_type(value)
Dtests.py15 from jinja2._compat import text_type, string_types, integer_types
69 return text_type(value).islower()
74 return text_type(value).isupper()
Dexceptions.py11 from jinja2._compat import imap, text_type, PY2, implements_to_string
20 message = text_type(message).encode('utf-8')
75 u', '.join(imap(text_type, names))
Dutils.py16 from jinja2._compat import text_type, string_types, implements_iterator, \
206 words = _word_split_re.split(text_type(escape(text)))
207 rel_attr = rel and ' rel="%s"' % text_type(escape(rel)) or ''
296 obj = text_type(obj)
297 if isinstance(obj, text_type):
300 rv = text_type(url_quote(obj, safe))
D_compat.py23 text_type = str variable
51 text_type = unicode variable
Dnativetypes.py5 from jinja2._compat import text_type
26 out = u''.join([text_type(v) for v in chain(head, nodes)])
/external/tensorflow/tensorflow/python/util/
Dcompat.py81 elif isinstance(bytes_or_text, _six.text_type):
106 if isinstance(bytes_or_text, _six.text_type):
214 bytes_or_text_types = (bytes, _six.text_type)
/external/python/setuptools/setuptools/
Dunicode_utils.py9 if isinstance(path, six.text_type):
26 if isinstance(path, six.text_type):
/external/python/apitools/apitools/base/protorpclite/
Dutil.py180 return six.text_type(module.package)
191 return six.text_type(base_name)
194 return six.text_type(module.__name__)
Ddescriptor.py133 messages.IntegerField: six.text_type,
134 messages.FloatField: six.text_type,
138 messages.EnumField: lambda value: six.text_type(value.number),
277 enum_value_descriptor.name = six.text_type(enum_value.name)
/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/
Dparse_html_deps.py61 return six.text_type(self._soup.string)
195 return [six.text_type(t.string) for t in tags]
201 soup = _CreateSoupWithoutHeadOrBody(six.text_type(self._soup))
231 html = controller.GetHTMLForInlineStylesheet(six.text_type(style.string))
260 return six.text_type(soup).strip()
/external/python/oauth2client/oauth2client/
D_helpers.py67 if isinstance(value, six.text_type) else value)
89 if isinstance(result, six.text_type):
/external/skia/fuzz/
DFuzzSkParagraph.cpp205 uint8_t text_type; in AddStyleAndText() local
206 fuzz->next(&text_type); in AddStyleAndText()
207 switch (text_type % 3) { in AddStyleAndText()
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_metaclass.py164 text_type = node.children[0].type # always Leaf(nnn, 'class')
217 pass_leaf = Leaf(text_type, u'pass')
226 pass_leaf = Leaf(text_type, u'pass')
/external/python/cpython3/Lib/lib2to3/fixes/
Dfix_metaclass.py164 text_type = node.children[0].type # always Leaf(nnn, 'class')
217 pass_leaf = Leaf(text_type, 'pass')
226 pass_leaf = Leaf(text_type, 'pass')
/external/python/dateutil/dateutil/tz/
Dwin.py14 from six import text_type
219 tzkeyname = text_type("{kn}\\{name}").format(kn=TZKEYNAME, name=name)
285 tzkeyname = text_type('{kn}\\{sn}').format(kn=TZKEYNAME,
/external/python/cryptography/src/cryptography/x509/
Dgeneral_name.py65 if isinstance(value, six.text_type):
132 if isinstance(value, six.text_type):
177 if isinstance(value, six.text_type):
/external/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/
Dspawnbase.py11 text_type = str if PY3 else unicode variable
109 self.string_type = text_type
112 self.allowed_string_types = (text_type, )
/external/python/setuptools/setuptools/tests/
Dtest_archive_util.py42 archive_util.unpack_archive(tarfile_with_unicode, six.text_type(target))

1234