We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7194ced commit 4879590Copy full SHA for 4879590
pwnlib/term/text.py
@@ -27,7 +27,7 @@ class Module(types.ModuleType):
27
def __init__(self):
28
self.__file__ = __file__
29
self.__name__ = __name__
30
- 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
31
self.when = 'auto'
32
self._colors = {
33
'black': 0,
0 commit comments