summaryrefslogtreecommitdiff
path: root/src/click/_compat.py
Commit message (Collapse)AuthorAgeFilesLines
* use os.fsdecode to display pathsfsdecodeDavid Lord2021-04-121-8/+0
| | | | Works with pathlib, consistent with Python's output.
* allow style support for Jupyter on Windowsleshna balara2021-02-241-6/+1
|
* always install colorama on WindowsDavid Lord2021-02-151-42/+38
|
* initial type checking configurationIwan Aucamp2021-02-151-5/+10
| | | | add minimal annotations to pass checks
* Deprecate click.get_terminal_size() in favor of stdlib shutil.Jon Dufresne2021-02-151-11/+0
| | | | | | | | | | | | Since Python 3.3, the stdlib provides the function shutil.get_terminal_size(). Now that the project has dropped Python 2 support, the compatibility shim is no longer necessary. The stdlib version returns a named tuple. So rather than indexing "0", can use the more self-documenting attribute "columns". Docs available at: https://docs.python.org/3/library/shutil.html#shutil.get_terminal_size
* f-strings everywhereDavid Lord2020-04-201-2/+2
|
* apply pyupgrade --py36-plusDavid Lord2020-04-201-4/+4
|
* remove py2 parts of _compat moduleDavid Lord2020-04-201-362/+183
|
* Merge branch '7.x'David Lord2020-03-081-1/+1
|
* manual cleanupDavid Lord2020-03-081-5/+5
|
* apply pyupgradeDavid Lord2020-03-081-1/+1
|
* apply formattingDavid Lord2020-03-061-3/+1
|
* apply flake8David Lord2020-03-061-0/+1
|
* apply blackDavid Lord2020-03-061-103/+121
|
* apply reorder-python-importsDavid Lord2020-03-061-3/+2
|
* move to src directoryDavid Lord2020-03-061-0/+774