Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
sudo apt remove python3-pip
python -m pip install --upgrade pip
python -m pip install . black isort mypy pytest readme_renderer
python -m pip install . types-dataclasses # Needed for Python 3.6
pip list
- name: Type Checker
run: |
Expand Down
6 changes: 2 additions & 4 deletions ptpython/repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def run_and_show_expression(self, expression):
except KeyboardInterrupt: # KeyboardInterrupt doesn't inherit from Exception.
raise
except SystemExit:
return
raise
except BaseException as e:
self._handle_exception(e)
else:
Expand Down Expand Up @@ -330,9 +330,7 @@ def _format_result_output(self, result: object) -> StyleAndTextTuples:
else:
result_repr = black.format_str(
result_repr,
mode=black.FileMode(
line_length=self.app.output.get_size().columns
),
mode=black.Mode(line_length=self.app.output.get_size().columns),
)

formatted_result_repr = to_formatted_text(
Expand Down