Skip to content

Commit 4879590

Browse files
committed
Fix typo for fallback to default number of console colors on windows
1 parent 7194ced commit 4879590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pwnlib/term/text.py

Lines changed: 1 addition & 1 deletion
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)