Skip to content
Myr

Use helper function instead of own code

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

authored by Markus Unterwaditzer · committed by Armin Ronacher · parent dbb0a0a · Browse files · 1 file+1 added−5 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+1 added−5 removed

  • other:+1 added−5 removed

1 file+1 added−5 removed

modified:click/_termui_impl.py+1 added-5 removed
83 unmodified lines
84 self.finished = False85 self.max_width = None86 self.entered = False87 self.current_item = None88 self.is_hidden = not isatty(self.file)8989 try:90 self.is_hidden = not self.file.isatty()91 except Exception:92 self.is_hidden = True9390 def __enter__(self):91 self.entered = True92 return self93
390 unmodified lines