black/src
erykoff 0969ca4a46
Change sys.exit to raise ImportError (#2440)
The fix for #1688 in #1761 breaks help("modules") introspection and also leads
to unhappy results when inadvertently importing blackd from Python. Basically
the sys.exit(-1) causes the whole Python REPL to exit -- not great to suffice.

Commit history before merge:

* Change sys.exit to Raise.
* Add #2440 to changelog.
* Fix lint error from prettier
* Remove exception chain for more helpful user message.

Co-authored-by: Richard Si <63936253+ichard26@users.noreply.github.com>
2021-08-24 16:59:24 -04:00
..
black Improve f-string expression detection regex so ... (#2437) 2021-08-22 19:52:19 -07:00
black_primer Jupyter notebook support (#2357) 2021-08-06 16:57:46 -04:00
blackd Change sys.exit to raise ImportError (#2440) 2021-08-24 16:59:24 -04:00
blib2to3 Revert "Use lowercase hex numbers fixes #1692 (#1775)" 2021-04-25 19:13:23 +02:00