Skip to content

Commit

Permalink
Fix typo for fallback to default number of console colors on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker committed Aug 6, 2024
1 parent 7194ced commit 4879590
Showing 1 changed file with 1 addition and 1 deletion.
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 4879590

Please sign in to comment.