File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
9
9
10
10
- {pull}` 297 ` moves non-hook functions from ` warnings.py ` to ` warnings_utils.py ` and
11
11
publishes them so that pytask-parallel can import them.
12
+ - {pull}` 305 ` removes traces of colorama. Whatever it did should be handled by rich.
12
13
13
14
## 0.2.5 - 2022-08-02
14
15
Original file line number Diff line number Diff line change @@ -122,8 +122,6 @@ def pytask_parse_config(
122
122
@hookimpl
123
123
def pytask_post_parse (config : dict [str , Any ]) -> None :
124
124
"""Initialize the CaptureManager."""
125
- _colorama_workaround ()
126
-
127
125
pluginmanager = config ["pm" ]
128
126
capman = CaptureManager (config ["capture" ])
129
127
pluginmanager .register (capman , "capturemanager" )
@@ -135,21 +133,6 @@ def pytask_post_parse(config: dict[str, Any]) -> None:
135
133
# Copied from pytest with slightly modified docstrings.
136
134
137
135
138
- def _colorama_workaround () -> None :
139
- """Ensure colorama is imported so that it attaches to the correct stdio handles on
140
- Windows.
141
-
142
- colorama uses the terminal on import time. So if something does the first import of
143
- colorama while I/O capture is active, colorama will fail in various ways.
144
-
145
- """
146
- if sys .platform .startswith ("win32" ):
147
- try :
148
- import colorama # noqa: F401
149
- except ImportError :
150
- pass
151
-
152
-
153
136
# IO Helpers.
154
137
155
138
You can’t perform that action at this time.
0 commit comments