Skip to content
Myr

add bytearray support too

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

authored by Russ Webber · committed by Russ Webber · parent b3dd1b2 · Browse files · 1 file+1 added−1 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−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/_termui_impl.py+1 added-1 removed
434 unmodified lines
435 def edit(self, text):436 import tempfile437438 text = text or ''439 binary_data = type(text) is bytes439 binary_data = type(text) in [bytes, bytearray]440441 if not binary_data and text and not text.endswith('\n'):442 text += '\n'443
184 unmodified lines