Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(78) | Call(52) | Derive(0) | Import(26)
Simple wrapper around the ``textwrap.wrap`` function in the standard library. This version does not wrap lines on hyphens in words. :param text: the text to wrap :param width: the maximum line width :param initial_indent: string that will be prepended to the first line of wrapped output :param subsequent_indent: string that will be prepended to all lines save the first of wrapped output
def wraptext(text, width=70, initial_indent='', subsequent_indent=''): """Simple wrapper around the ``textwrap.wrap`` function in the standard library. This version does not wrap lines on hyphens in words. :param text: the text to wrap :param width: the maximum line width :param initial_indent: string that will be prepended to the first line of wrapped output :param subsequent_indent: string that will be prepended to all lines save the first of wrapped output """ wrapper = TextWrapper(width=width, initial_indent=initial_indent, subsequent_indent=subsequent_indent, break_long_words=False) return wrapper.wrap(text)
from babel import __version__ as VERSION from babel.messages.catalog import Catalog, Message from babel.util import set, wraptext, LOCALTZ __all__ = ['read_po', 'write_po']
else: _width = 76 for line in wraptext(comment, _width): _write('#%s %s\n' % (prefix, line.strip()))
lines = [] for line in comment_header.splitlines(): lines += wraptext(line, width=width, subsequent_indent='# ') comment_header = u'\n'.join(lines) + u'\n'
src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Babel-0.9.6/babel/messages/pofile.py hortonworks-sandbox(Download)
from babel import __version__ as VERSION from babel.messages.catalog import Catalog, Message from babel.util import set, wraptext, LOCALTZ __all__ = ['read_po', 'write_po']
else: _width = 76 for line in wraptext(comment, _width): _write('#%s %s\n' % (prefix, line.strip()))
lines = [] for line in comment_header.splitlines(): lines += wraptext(line, width=width, subsequent_indent='# ') comment_header = u'\n'.join(lines) + u'\n'
src/k/i/kitsune-HEAD/vendor/packages/Babel/babel/messages/pofile.py kitsune(Download)
from babel import __version__ as VERSION from babel.messages.catalog import Catalog, Message from babel.util import set, wraptext, LOCALTZ __all__ = ['read_po', 'write_po']
else: _width = 76 for line in wraptext(comment, _width): _write('#%s %s\n' % (prefix, line.strip()))
lines = [] for line in comment_header.splitlines(): lines += wraptext(line, width=width, subsequent_indent='# ') comment_header = u'\n'.join(lines) + u'\n'
src/g/a/gae-boilerplate-HEAD/bp_includes/external/babel/messages/pofile.py gae-boilerplate(Download)
from babel import __version__ as VERSION from babel.messages.catalog import Catalog, Message from babel.util import set, wraptext, LOCALTZ __all__ = ['read_po', 'write_po']
else: _width = 76 for line in wraptext(comment, _width): _write('#%s %s\n' % (prefix, line.strip()))
lines = [] for line in comment_header.splitlines(): lines += wraptext(line, width=width, subsequent_indent='# ') comment_header = u'\n'.join(lines) + u'\n'
src/s/t/stackgeek-gaeb-HEAD/lib/externals/babel/messages/pofile.py stackgeek-gaeb(Download)
from babel import __version__ as VERSION from babel.messages.catalog import Catalog, Message from babel.util import set, wraptext, LOCALTZ __all__ = ['read_po', 'write_po']
else: _width = 76 for line in wraptext(comment, _width): _write('#%s %s\n' % (prefix, line.strip()))
lines = [] for line in comment_header.splitlines(): lines += wraptext(line, width=width, subsequent_indent='# ') comment_header = u'\n'.join(lines) + u'\n'
src/p/l/plexnet-HEAD/third_party/python/babel/messages/pofile.py plexnet(Download)
from babel import __version__ as VERSION from babel.messages.catalog import Catalog, Message from babel.util import set, wraptext, LOCALTZ __all__ = ['read_po', 'write_po']
else: _width = 76 for line in wraptext(comment, _width): _write('#%s %s\n' % (prefix, line.strip()))
lines = [] for line in comment_header.splitlines(): lines += wraptext(line, width=width, subsequent_indent='# ') comment_header = u'\n'.join(lines) + u'\n'
src/b/o/bomfu-HEAD/boilerplate/external/babel/messages/pofile.py bomfu(Download)
from babel import __version__ as VERSION from babel.messages.catalog import Catalog, Message from babel.util import set, wraptext, LOCALTZ __all__ = ['read_po', 'write_po']
else: _width = 76 for line in wraptext(comment, _width): _write('#%s %s\n' % (prefix, line.strip()))
lines = [] for line in comment_header.splitlines(): lines += wraptext(line, width=width, subsequent_indent='# ') comment_header = u'\n'.join(lines) + u'\n'
src/a/l/algae-HEAD/gae/libs/babel/messages/pofile.py algae(Download)
from babel import __version__ as VERSION from babel.messages.catalog import Catalog, Message from babel.util import set, wraptext, LOCALTZ __all__ = ['read_po', 'write_po']
else: _width = 76 for line in wraptext(comment, _width): _write('#%s %s\n' % (prefix, line.strip()))
lines = [] for line in comment_header.splitlines(): lines += wraptext(line, width=width, subsequent_indent='# ') comment_header = u'\n'.join(lines) + u'\n'
src/l/i/livepythonconsole-app-engine-HEAD/boilerplate/external/babel/messages/pofile.py livepythonconsole-app-engine(Download)
from babel import __version__ as VERSION from babel.messages.catalog import Catalog, Message from babel.util import set, wraptext, LOCALTZ __all__ = ['read_po', 'write_po']
else: _width = 76 for line in wraptext(comment, _width): _write('#%s %s\n' % (prefix, line.strip()))
lines = [] for line in comment_header.splitlines(): lines += wraptext(line, width=width, subsequent_indent='# ') comment_header = u'\n'.join(lines) + u'\n'
src/f/i/FireCheckIn-HEAD/kay/lib/babel/messages/pofile.py FireCheckIn(Download)
from babel import __version__ as VERSION from babel.messages.catalog import Catalog, Message from babel.util import set, wraptext, LOCALTZ __all__ = ['read_po', 'write_po']
else: _width = 76 for line in wraptext(comment, _width): _write('#%s %s\n' % (prefix, line.strip()))
lines = [] for line in comment_header.splitlines(): lines += wraptext(line, width=width, subsequent_indent='# ') comment_header = u'\n'.join(lines) + u'\n'
1 | 2 | 3 Next