Did I find the right examples for you? yes no

All Samples(8)  |  Call(0)  |  Derive(0)  |  Import(8)
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items

If the argument is a tuple, the return value is the same object.

src/p/y/python-creole-1.1.1/creole/html_parser/parser.py   python-creole(Download)
import warnings
 
from creole.html_parser.config import BLOCK_TAGS, IGNORE_TAGS
from creole.html_tools.strip_html import strip_html
from creole.py3compat import TEXT_TYPE, BINARY_TYPE
    def _go_up(self):
        kinds = list(BLOCK_TAGS) + ["document"]
        self.cur = self._upto(self.cur, kinds)
        self.debug_msg("go up to", self.cur)
 
            self.__list_level -= 1
 
        if tag in BLOCK_TAGS or self.cur is None:
            self._go_up()
        else:

src/p/y/python-creole-HEAD/creole/html_parser/parser.py   python-creole(Download)
import warnings
 
from creole.html_parser.config import BLOCK_TAGS, IGNORE_TAGS
from creole.html_tools.strip_html import strip_html
from creole.py3compat import TEXT_TYPE, BINARY_TYPE
    def _go_up(self):
        kinds = list(BLOCK_TAGS) + ["document"]
        self.cur = self._upto(self.cur, kinds)
        self.debug_msg("go up to", self.cur)
 
            self.__list_level -= 1
 
        if tag in BLOCK_TAGS or self.cur is None:
            self._go_up()
        else:

src/p/y/python-creole-1.1.1/creole/shared/base_emitter.py   python-creole(Download)
import posixpath
 
from creole.html_parser.config import BLOCK_TAGS
from creole.html_tools.deentity import Deentity
from creole.py3compat import TEXT_TYPE
    def _list_emit(self, node, list_type):
        start_newline = False
        if self.last and self.last.kind not in BLOCK_TAGS:
            if not self.last.content or not self.last.content.endswith("\n"):
                start_newline = True
    def _emit_content(self, node):
        content = self.emit_children(node)
        content = self._escape_linebreaks(content)
        if node.kind in BLOCK_TAGS:
            content = "%s\n\n" % content

src/p/y/python-creole-HEAD/creole/shared/base_emitter.py   python-creole(Download)
import posixpath
 
from creole.html_parser.config import BLOCK_TAGS
from creole.html_tools.deentity import Deentity
from creole.py3compat import TEXT_TYPE
    def _list_emit(self, node, list_type):
        start_newline = False
        if self.last and self.last.kind not in BLOCK_TAGS:
            if not self.last.content or not self.last.content.endswith("\n"):
                start_newline = True
    def _emit_content(self, node):
        content = self.emit_children(node)
        content = self._escape_linebreaks(content)
        if node.kind in BLOCK_TAGS:
            content = "%s\n\n" % content

src/p/y/python-creole-1.1.1/creole/html_tools/strip_html.py   python-creole(Download)
import re
 
from creole.html_parser.config import BLOCK_TAGS
 
 
#        print("tag.........: %r" % tag)
 
        if tag in BLOCK_TAGS:
            return block.strip()
 

src/p/y/python-creole-HEAD/creole/html_tools/strip_html.py   python-creole(Download)
import re
 
from creole.html_parser.config import BLOCK_TAGS
 
 
#        print("tag.........: %r" % tag)
 
        if tag in BLOCK_TAGS:
            return block.strip()
 

src/p/y/python-creole-1.1.1/creole/html2rest/emitter.py   python-creole(Download)
import posixpath
 
from creole.html_parser.config import BLOCK_TAGS
from creole.shared.base_emitter import BaseEmitter
from creole.shared.markup_table import MarkupTable

src/p/y/python-creole-HEAD/creole/html2rest/emitter.py   python-creole(Download)
import posixpath
 
from creole.html_parser.config import BLOCK_TAGS
from creole.shared.base_emitter import BaseEmitter
from creole.shared.markup_table import MarkupTable