You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

log21

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log21 - pypi Package Compare versions

Comparing version
2.10.0
to
2.10.1
+1
-1
PKG-INFO
Metadata-Version: 2.1
Name: log21
Version: 2.10.0
Version: 2.10.1
Summary: A simple logging package that helps you log colorized messages in Windows console.

@@ -5,0 +5,0 @@ Author-email: "CodeWriter21(Mehrad Pooryoussof)" <CodeWriter21@gmail.com>

@@ -29,3 +29,3 @@ [build-system]

]
version = "2.10.0"
version = "2.10.1"

@@ -32,0 +32,0 @@ [tool.setuptools.packages.find]

Metadata-Version: 2.1
Name: log21
Version: 2.10.0
Version: 2.10.1
Summary: A simple logging package that helps you log colorized messages in Windows console.

@@ -5,0 +5,0 @@ Author-email: "CodeWriter21(Mehrad Pooryoussof)" <CodeWriter21@gmail.com>

@@ -27,3 +27,3 @@ # log21.__init__.py

__author__ = 'CodeWriter21 (Mehrad Pooryoussof)'
__version__ = '2.10.0'
__version__ = '2.10.1'
__github__ = 'Https://GitHub.com/MPCodeWriter21/log21'

@@ -30,0 +30,0 @@ __all__ = [

@@ -283,2 +283,5 @@ # log21.Argparse.py

for group in groups:
if not group._group_actions:
raise ValueError(f'empty group {group}')
try:

@@ -289,6 +292,16 @@ start = actions.index(group._group_actions[0])

else:
end = start + len(group._group_actions)
group_action_count = len(group._group_actions)
end = start + group_action_count
if actions[start:end] == group._group_actions:
suppressed_actions_count = 0
for action in group._group_actions:
group_actions.add(action)
if action.help is _argparse.SUPPRESS:
suppressed_actions_count += 1
exposed_actions_count = group_action_count - suppressed_actions_count
if not exposed_actions_count:
continue
if not group.required:

@@ -303,3 +316,3 @@ if start in inserts:

inserts[end] = ']'
else:
elif exposed_actions_count > 1:
if start in inserts:

@@ -947,3 +960,18 @@ inserts[start] += ' ('

option_tuple = option_string_indices[start_index]
action, option_string, explicit_arg = option_tuple
if len(option_tuple) == 3:
action, option_string, explicit_arg = option_tuple
sep = None
elif len(option_tuple) == 4:
action, option_string, sep, explicit_arg = option_tuple
else:
# Tell the user that there seem to have been a change in argparse module
# and if they see this error they should immediately report it in an
# issue at GitHub.com/MPCodeWriter21/log21 with their Python version
raise ValueError(
'Unknown option tuple length, please report this issue at: '
'https://GitHub.com/MPCodeWriter21/log21\n'
f'Python version: {_sys.version}'
f'Option tuple: {option_tuple}'
f'log21 version: {_log21.__version__}'
)

@@ -971,16 +999,23 @@ # identify additional optionals in the same arg string

if arg_count == 0 and option_string[1] not in chars:
if sep or explicit_arg[0] in chars:
msg = _gettext('ignored explicit argument %r')
raise _argparse.ArgumentError(action, msg % explicit_arg)
action_tuples.append((action, [], option_string))
char = option_string[0]
option_string = char + explicit_arg[0]
new_explicit_arg = explicit_arg[1:] or None
optionals_map = self._option_string_actions
if option_string in optionals_map:
action = optionals_map[option_string]
explicit_arg = new_explicit_arg
explicit_arg = explicit_arg[1:]
if not explicit_arg:
sep = explicit_arg = None
elif explicit_arg[0] == '=':
sep = '='
explicit_arg = explicit_arg[1:]
else:
sep = ''
else:
msg = _gettext(
f'ignored explicit argument {explicit_arg!r}'
)
raise _argparse.ArgumentError(action, msg)
extras.append(char + explicit_arg)
stop = start_index + 1
break
# if the action expect exactly one argument, we've

@@ -997,4 +1032,4 @@ # successfully matched the option; exit the loop

else:
msg = _gettext(f'ignored explicit argument {explicit_arg!r}')
raise _argparse.ArgumentError(action, msg)
msg = _gettext('ignored explicit argument %r')
raise _argparse.ArgumentError(action, msg % explicit_arg)

@@ -1001,0 +1036,0 @@ # if there is no explicit argument, try to match the