/external/libchrome/third_party/markupsafe/ |
D | __init__.py | 12 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.py | 12 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.py | 16 text_type = str variable 21 text_type = unicode variable
|
/external/python/pyopenssl/src/OpenSSL/ |
D | _util.py | 4 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/ |
D | upload_test_benchmarks.py | 90 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/ |
D | seven.py | 24 text_type = str variable 33 text_type = unicode variable 90 elif isinstance(s, text_type):
|
/external/libchrome/third_party/jinja2/ |
D | filters.py | 22 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)
|
D | tests.py | 15 from jinja2._compat import text_type, string_types, integer_types 69 return text_type(value).islower() 74 return text_type(value).isupper()
|
D | exceptions.py | 11 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))
|
D | utils.py | 16 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.py | 23 text_type = str variable 51 text_type = unicode variable
|
D | nativetypes.py | 5 from jinja2._compat import text_type 26 out = u''.join([text_type(v) for v in chain(head, nodes)])
|
/external/tensorflow/tensorflow/python/util/ |
D | compat.py | 81 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/ |
D | unicode_utils.py | 9 if isinstance(path, six.text_type): 26 if isinstance(path, six.text_type):
|
/external/python/apitools/apitools/base/protorpclite/ |
D | util.py | 180 return six.text_type(module.package) 191 return six.text_type(base_name) 194 return six.text_type(module.__name__)
|
D | descriptor.py | 133 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/ |
D | parse_html_deps.py | 61 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.py | 67 if isinstance(value, six.text_type) else value) 89 if isinstance(result, six.text_type):
|
/external/skia/fuzz/ |
D | FuzzSkParagraph.cpp | 205 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/ |
D | fix_metaclass.py | 164 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/ |
D | fix_metaclass.py | 164 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/ |
D | win.py | 14 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/ |
D | general_name.py | 65 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/ |
D | spawnbase.py | 11 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/ |
D | test_archive_util.py | 42 archive_util.unpack_archive(tarfile_with_unicode, six.text_type(target))
|