Skip to content

Commit 7c79c73

Browse files
authored
Backport: Fix typo for fallback to default number of console colors on windows (#2467)
* Fix typo for fallback to default number of console colors on windows * Update CHANGELOG
1 parent 3e9849f commit 7c79c73

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,11 @@ The table below shows which release corresponds to each branch, and what date th
123123
- [#2445][2445] Fix parsing the PLT on Windows
124124
- [#2466][2466] Fix PLT emulation with Unicorn 2.1.0
125125
- [#2466][2466] Switch to PyPi Simple API for update checks
126+
- [#2467][2467] Fix loading at all on Windows
126127

127128
[2445]: https://github.com/Gallopsled/pwntools/pull/2445
128129
[2466]: https://github.com/Gallopsled/pwntools/pull/2466
130+
[2467]: https://github.com/Gallopsled/pwntools/pull/2467
129131

130132
## 4.13.0 (`stable`)
131133

pwnlib/term/text.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Module(types.ModuleType):
2727
def __init__(self):
2828
self.__file__ = __file__
2929
self.__name__ = __name__
30-
self.num_colors = termcap.get('colors', 8) if sys.platform == 'win32' else 8
30+
self.num_colors = termcap.get('colors', default=8) if sys.platform == 'win32' else 8
3131
self.when = 'auto'
3232
self._colors = {
3333
'black': 0,

0 commit comments

Comments
 (0)