Page MenuHomeSolus

Update py to 1.7.0
ClosedPublic

Authored by kyrios123 on Oct 29 2018, 9:39 PM.
Tags
None
Referenced Files
F10894305: D4217.id10359.diff
Jul 1 2023, 9:54 AM
F10893438: D4217.id10399.diff
Jun 30 2023, 7:29 PM
F10889385: D4217.diff
Jun 27 2023, 9:29 PM
F10738395: D4217.id.diff
May 13 2023, 11:31 AM
Subscribers

Details

Summary
  • use shutil.get_terminal_size() in Python 3.3+ to determine the size of the terminal, which produces more accurate results than the previous method.
  • introduce new PY_IGNORE_IMPORTMISMATCH environment variable that suppresses ImportMismatchError exceptions when set to 1.
  • add TerminalWriter.width_of_current_line (i18n version of TerminalWriter.chars_on_current_line), a read-only property that tracks how wide the current line is, attempting to take into account international characters in the calculation.

Signed-off-by: Pierre-Yves <pyu@riseup.net>

Test Plan

Unit tests are OK

Diff Detail

Repository
R2499 py
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Oct 30 2018, 12:32 PM
This revision was automatically updated to reflect the committed changes.