Skip to content
Myr

Removed some leftover code that became unnecessary

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 cf2a337 · Browse files · 1 file+2 added−7 removed
This commit

State

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

Diff stats

1 file+2 added−7 removed

  • other:+2 added−7 removed

1 file+2 added−7 removed

modified:click/termui.py+2 added-7 removed
1import os2import sys3import struct45from ._compat import raw_input, PY2, text_type, string_types, \6 get_best_encoding, colorama, isatty, strip_ansi5from ._compat import raw_input, text_type, string_types, \6 colorama, isatty, strip_ansi7from .utils import echo8from .exceptions import Abort, UsageError9from .types import convert_type10
168 unmodified lines
179 :param text: the text to page.180 """181 if not isinstance(text, string_types):182 text = text_type(text)183184 if PY2 and isinstance(text, text_type):185 encoding = get_best_encoding(sys.stdout)186 text = text.encode(encoding, 'replace')187183 from ._termui_impl import pager184 return pager(text + '\n')185186
249 unmodified lines