Searched defs:text_type (Results 1 - 25 of 31) sorted by relevance

12

/external/opencv3/3rdparty/jinja2/markupsafe/
H A D_native.py11 from ._compat import text_type namespace
21 return Markup(text_type(s)
43 if not isinstance(s, text_type):
44 s = text_type(s)
H A D_compat.py16 text_type = str variable
21 text_type = unicode variable
H A D__init__.py12 from ._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
13 unichr, PY2 namespace
[all...]
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/trie/
H A Ddatrie.py4 from six import text_type namespace
13 if not isinstance(key, text_type):
H A Dpy.py2 from six import text_type namespace
11 if not all(isinstance(x, text_type) for x in data.keys()):
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/
H A Dutils.py5 from six import text_type namespace
26 if not isinstance(_x, text_type):
29 assert isinstance(_x, text_type)
H A Dinputstream.py2 from six import text_type namespace
138 isUnicode = isinstance(source.read(0), text_type)
140 isUnicode = isinstance(source, text_type)
/external/chromium-trace/catapult/third_party/webtest/webtest/
H A Dcompat.py5 from six import text_type namespace
13 if isinstance(value, text_type):
34 if isinstance(value, text_type):
H A Dapp.py25 from six import text_type namespace
473 if isinstance(key, text_type):
478 if isinstance(filename, text_type):
494 if isinstance(key, text_type):
510 if isinstance(value, text_type):
551 if isinstance(url_or_req, text_type):
554 if isinstance(v, text_type):
729 if isinstance(params, text_type):
H A Dresponse.py16 from six import text_type namespace
273 if isinstance(s, text_type):
329 if not self.charset and isinstance(s, text_type):
382 if not PY3 and isinstance(output, text_type):
/external/opencv3/3rdparty/jinja2/
H A Dexceptions.py11 from jinja2._compat import imap, text_type, PY2, implements_to_string namespace
20 message = text_type(message).encode('utf-8')
75 u', '.join(imap(text_type, names))
H A Dtests.py13 from jinja2._compat import text_type, string_types, mapping_types namespace
67 return text_type(value).islower()
72 return text_type(value).isupper()
H A D_compat.py23 text_type = str variable
51 text_type = unicode variable
H A Dbccache.py24 from jinja2._compat import BytesIO, pickle, PY2, text_type namespace
163 if isinstance(filename, text_type):
H A Dfilters.py21 from jinja2._compat import next, imap, string_types, text_type, iteritems namespace
77 return escape(text_type(value))
119 return text_type(s).replace(text_type(old), text_type(new), count)
318 return text_type(d).join(imap(text_type, value))
329 value[idx] = text_type(item)
333 d = text_type(d)
342 return text_type(valu
[all...]
H A Druntime.py17 from jinja2._compat import next, imap, text_type, iteritems, \
29 to_string = text_type
50 return concat(imap(text_type, seq))
18 implements_iterator, implements_to_string, string_types, PY2 namespace
H A Dutils.py14 from jinja2._compat import text_type, string_types, implements_iterator, \
200 words = _word_split_re.split(text_type(escape(text)))
288 obj = text_type(obj)
289 if isinstance(obj, text_type):
291 return text_type(url_quote(obj))
15 allocate_lock, url_quote namespace
H A Dlexer.py23 from jinja2._compat import next, iteritems, implements_iterator, text_type, \
597 source = text_type(source)
24 intern namespace
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/treewalkers/
H A Dlxmletree.py2 from six import text_type namespace
15 elif isinstance(s, text_type):
H A D_base.py2 from six import text_type, string_types namespace
22 """Wrapper around six.text_type to convert None to empty string"""
28 elif isinstance(s, text_type):
31 return text_type(s)
72 "name": text_type(name),
106 return {"type": "Comment", "data": text_type(data)}
122 return {"type": "Entity", "name": text_type(name)}
/external/chromium-trace/catapult/third_party/WebOb/webob/
H A Dcompat.py13 text_type = str variable
19 text_type = unicode variable
30 if isinstance(s, text_type):
36 if isinstance(s, text_type):
41 if isinstance(s, text_type):
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/serializer/
H A Dhtmlserializer.py2 from six import text_type namespace
158 assert(isinstance(string, text_type))
165 assert(isinstance(string, text_type))
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/treebuilders/
H A D_base.py2 from six import text_type namespace
288 assert isinstance(name, text_type), "Element %s not unicode" % name
H A Detree.py2 from six import text_type namespace
219 assert isinstance(element.tag, text_type), \
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/vendored/
H A Dsix.py40 text_type = str variable
48 text_type = unicode variable

Completed in 1443 milliseconds

12