Skip to content
Myr

Fixed some 3.x problems.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 209faf4 · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:click/termui.py+2 added-2 removed
429 unmodified lines
430 launch a file manager with the file located. This431 might have weird effects if the url does not point to432 the filesystem.433 """434 from _termui_impl import open_url434 from ._termui_impl import open_url435 return open_url(url, wait=wait, locate=locate)436437438# If this is provided, getchar() calls into this instead. This is used
18 unmodified lines
457 the terminal. The default is not not show it.458 """459 f = _getchar460 if f is None:461 from _termui_impl import getchar as f461 from ._termui_impl import getchar as f462 return f(echo)
modified:examples/termui/termui.py+1 added-1 removed
25 unmodified lines
26@cli.command()27def pager():28 """Demonstrates using the pager."""29 lines = []30 for x in xrange(200):30 for x in range_type(200):31 lines.append('%s. Hello World!' % click.style(str(x), fg='green'))32 click.echo_via_pager('\n'.join(lines))3334
71 unmodified lines