| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bs4/ |
| H A D | testing.py | 28 def soup(self, markup, **kwargs): argument 31 return BeautifulSoup(markup, builder=builder, **kwargs) 33 def document_for(self, markup): argument 38 return self.default_builder.test_fragment_to_document(markup) 95 markup = doctype + '\n<p>foo</p>' 96 soup = self.soup(markup) 127 markup = b"""<?xml version="1.0" encoding="utf-8"?> 133 soup = self.soup(markup) 136 markup.replace(b"\n", b"")) 139 markup = b"""<?PITarget PIContent?>""" [all …]
|
| H A D | __init__.py | 82 def __init__(self, markup="", features=None, builder=None, argument 174 if hasattr(markup, 'read'): # It's a file-type object. 175 markup = markup.read() 176 elif len(markup) <= 256: 181 if (isinstance(markup, str) 183 possible_filename = markup.encode("utf8") 185 possible_filename = markup 195 if isinstance(markup, str): 196 markup = markup.encode("utf8") 198 … markup. You should probably open this file and pass the filehandle into Beautiful Soup.' % markup) [all …]
|
| H A D | dammit.py | 209 def __init__(self, markup, override_encodings=None, is_html=False, argument 219 self.markup, self.sniffed_encoding = self.strip_byte_order_mark(markup) 248 self.markup, self.is_html) 255 self.chardet_encoding = chardet_dammit(self.markup) 291 def find_declared_encoding(cls, markup, is_html=False, search_entire_document=False): argument 300 xml_endpos = html_endpos = len(markup) 303 html_endpos = max(2048, int(len(markup) * 0.05)) 306 declared_encoding_match = xml_encoding_re.search(markup, endpos=xml_endpos) 308 declared_encoding_match = html_meta_re.search(markup, endpos=html_endpos) 335 def __init__(self, markup, override_encodings=[], argument [all …]
|
| H A D | element.py | 1599 markup = None 1601 markup = markup_name 1602 markup_attrs = markup 1609 or (markup and self._matches(markup, self.name)) 1610 or (not markup and self._matches(markup_name, self.name))): 1629 if markup: 1630 found = markup 1638 def search(self, markup): argument 1643 if hasattr(markup, '__iter__') and not isinstance(markup, (Tag, str)): 1644 for element in markup: [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bs4/tests/ |
| H A D | test_html5lib.py | 30 markup = "<p>A <b>bold</b> statement.</p>" 32 soup = self.soup(markup, parse_only=strainer) 34 soup.decode(), self.document_for(markup)) 42 markup = ('<table id="1">' 50 markup, 61 markup = '''<?xml version="1.0" encoding="utf-8"?> 70 soup = self.soup(markup) 75 markup = '<p><em>foo</p>\n<p>bar<a></a></em></p>' 76 soup = self.soup(markup) 82 markup = '<p><em>foo</p>\n<p>bar<a></a></em></p>\n' [all …]
|
| H A D | test_soup.py | 130 markup = "No<b>Yes</b><a>No<b>Yes <c>Yes</c></b>" 132 soup = self.soup(markup, parse_only=strainer) 153 self.assertEqual(self.sub.substitute_html(dammit.markup), 262 markup = '<div><a \N{SNOWMAN}="snowman"></a></div>' 263 self.assertEqual(self.soup(markup).div.encode("utf8"), markup.encode("utf8")) 269 markup = "I'm already Unicode! \N{SNOWMAN}" 270 dammit = UnicodeDammit(markup) 271 self.assertEqual(dammit.unicode_markup, markup) 274 markup = b"<foo>\x91\x92\x93\x94</foo>" 275 dammit = UnicodeDammit(markup) [all …]
|
| H A D | test_tree.py | 574 markup = '''<html> 588 markup = re.compile("\n\s*").sub("", markup) 589 self.tree = self.soup(markup) 1185 markup = '<b a="1" z="5" m="3" f="2" y="4"></b>' 1186 self.assertSoupEquals(markup, '<b a="1" f="2" m="3" y="4" z="5"></b>') 1381 markup = "<b><<Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>></b>" 1382 soup = self.soup(markup) 1391 markup = "<b><<Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>></b>" 1392 soup = self.soup(markup) 1399 markup = "<b><<Sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>></b>" [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bs4/builder/ |
| H A D | _lxml.py | 80 def prepare_markup(self, markup, user_specified_encoding=None, argument 90 if isinstance(markup, str): 93 yield markup, None, document_declared_encoding, False 95 if isinstance(markup, str): 98 yield (markup.encode("utf8"), "utf8", 108 markup, try_encodings, is_html, exclude_encodings) 110 yield (detector.markup, encoding, document_declared_encoding, False) 112 def feed(self, markup): argument 113 if isinstance(markup, bytes): 114 markup = BytesIO(markup) [all …]
|
| H A D | _htmlparser.py | 141 def prepare_markup(self, markup, user_specified_encoding=None, argument 148 if isinstance(markup, str): 149 yield (markup, None, None, False) 153 dammit = UnicodeDammit(markup, try_encodings, is_html=True, 155 yield (dammit.markup, dammit.original_encoding, 159 def feed(self, markup): argument 164 parser.feed(markup)
|
| H A D | __init__.py | 125 def feed(self, markup): argument 128 def prepare_markup(self, markup, user_specified_encoding=None, argument 130 return markup, None, None, False 181 def feed(self, markup): argument
|
| H A D | _html5lib.py | 39 def prepare_markup(self, markup, user_specified_encoding, argument 49 yield (markup, None, None, False) 52 def feed(self, markup): argument 56 doc = parser.parse(markup, encoding=self.user_specified_encoding) 59 if isinstance(markup, str):
|
| /OK3568_Linux_fs/kernel/tools/perf/ui/gtk/ |
| H A D | annotate.c | 33 const char *markup; in perf_gtk__get_percent() local 47 markup = perf_gtk__get_percent_color(percent); in perf_gtk__get_percent() 48 if (markup) in perf_gtk__get_percent() 49 ret += scnprintf(buf, size, "%s", markup); in perf_gtk__get_percent() 51 if (markup) in perf_gtk__get_percent() 74 const char *markup = "<span fgcolor='gray'>"; in perf_gtk__get_line() local 82 markup = NULL; in perf_gtk__get_line() 84 if (markup) in perf_gtk__get_line() 85 ret += scnprintf(buf, size, "%s", markup); in perf_gtk__get_line() 87 if (markup) in perf_gtk__get_line()
|
| H A D | hists.c | 22 const char *markup; in __percent_color_snprintf() local 31 markup = perf_gtk__get_percent_color(percent); in __percent_color_snprintf() 32 if (markup) in __percent_color_snprintf() 33 ret += scnprintf(buf, size, markup); in __percent_color_snprintf() 37 if (markup) in __percent_color_snprintf()
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-gnome/gnome/gconf/ |
| H A D | create_config_directory.patch | 16 Index: GConf-3.2.6/backends/markup-backend.c 18 --- GConf-3.2.6.orig/backends/markup-backend.c 19 +++ GConf-3.2.6/backends/markup-backend.c
|
| /OK3568_Linux_fs/kernel/Documentation/doc-guide/ |
| H A D | sphinx.rst | 155 .. _TOC tree: http://www.sphinx-doc.org/en/stable/markup/toctree.html 167 markup constructs`_. 170 .. _Sphinx specific markup constructs: http://www.sphinx-doc.org/en/stable/markup/index.html 177 * Please don't go overboard with reStructuredText markup. Keep it 290 The example below shows how to use this markup. The first level of the staged 291 list is the *table-row*. In the *table-row* there is only one markup allowed, 409 installed, you will see an vector image. If not the raw markup is inserted as 430 :caption: Embedded **SVG** markup 441 :caption: Embedded **SVG** markup
|
| /OK3568_Linux_fs/buildroot/package/lua-markdown/ |
| H A D | Config.in | 5 markup system.
|
| /OK3568_Linux_fs/buildroot/package/python-docutils/ |
| H A D | Config.in | 7 what-you-see-is-what-you-get plaintext markup syntax.
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-python/recipes-devtools/python/ |
| H A D | python3-meld3_2.0.1.bb | 4 template markup and dynamic rendering logic separate from one \
|
| /OK3568_Linux_fs/buildroot/package/libhid/ |
| H A D | 0001-dont-fiddle-with-debug-flags.patch | 5 …bin/viewvc.cgi/gentoo-x86/dev-libs/libhid/files/libhid-0.2.16-gentoo.patch?revision=1.1&view=markup
|
| /OK3568_Linux_fs/buildroot/package/empty/ |
| H A D | 0001-respect-LDFLAGS.patch | 2 …ntoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-misc/empty/files/empty-respect-LDFLAGS.patch?view=markup
|
| /OK3568_Linux_fs/buildroot/package/sredird/ |
| H A D | 0001-termio.patch | 4 http://svnweb.freebsd.org/ports/head/comms/sredird/files/patch-sredird.c?revision=363168&view=markup
|
| /OK3568_Linux_fs/kernel/ |
| H A D | README | 14 several of them using the Restructured Text markup notation.
|
| /OK3568_Linux_fs/buildroot/package/x11r7/xdriver_xf86-video-savage/ |
| H A D | 0002-xorg-xserver120.patch | 4 …/x11/xf86-video-savage/patches/patch-src_savage__driver.c?rev=1.3&content-type=text/x-cvsweb-markup
|
| /OK3568_Linux_fs/buildroot/package/libmpeg2/ |
| H A D | 0001-altivec.patch | 5 …ewvc.cgi/gentoo-x86/media-libs/libmpeg2/files/libmpeg2-0.5.1-altivec.patch?revision=1.1&view=markup
|
| /OK3568_Linux_fs/buildroot/package/pugixml/ |
| H A D | Config.in | 37 a lot of markup (i.e. nodes and attributes), but is slightly
|