Skip to content

Commit

Permalink
Backport: Fix typo for fallback to default number of console colors o…
Browse files Browse the repository at this point in the history
…n windows (#2467)

* Fix typo for fallback to default number of console colors on windows

* Update CHANGELOG
  • Loading branch information
peace-maker authored Sep 25, 2024
1 parent 3e9849f commit 7c79c73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ The table below shows which release corresponds to each branch, and what date th
- [#2445][2445] Fix parsing the PLT on Windows
- [#2466][2466] Fix PLT emulation with Unicorn 2.1.0
- [#2466][2466] Switch to PyPi Simple API for update checks
- [#2467][2467] Fix loading at all on Windows

[2445]: https://github.com/Gallopsled/pwntools/pull/2445
[2466]: https://github.com/Gallopsled/pwntools/pull/2466
[2467]: https://github.com/Gallopsled/pwntools/pull/2467

## 4.13.0 (`stable`)

Expand Down
2 changes: 1 addition & 1 deletion pwnlib/term/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Module(types.ModuleType):
def __init__(self):
self.__file__ = __file__
self.__name__ = __name__
self.num_colors = termcap.get('colors', 8) if sys.platform == 'win32' else 8
self.num_colors = termcap.get('colors', default=8) if sys.platform == 'win32' else 8
self.when = 'auto'
self._colors = {
'black': 0,
Expand Down

0 comments on commit 7c79c73

Please sign in to comment.