log21 3.0.0__tar.gz → 3.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {log21-3.0.0 → log21-3.0.1}/PKG-INFO +16 -6
- {log21-3.0.0 → log21-3.0.1}/README.md +15 -5
- {log21-3.0.0 → log21-3.0.1}/pyproject.toml +1 -1
- {log21-3.0.0 → log21-3.0.1}/src/log21/__init__.py +1 -1
- {log21-3.0.0 → log21-3.0.1}/src/log21/argumentify.py +1 -1
- {log21-3.0.0 → log21-3.0.1}/src/log21/_argparse.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/_module_helper.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/argparse.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/colors.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/crash_reporter/__init__.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/crash_reporter/formatters.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/crash_reporter/reporters.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/file_handler.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/formatters.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/levels.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/logger.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/logging_window.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/manager.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/pprint.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/progress_bar.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/stream_handler.py +0 -0
- {log21-3.0.0 → log21-3.0.1}/src/log21/tree_print.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: log21
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1
|
|
4
4
|
Summary: A simple logging package
|
|
5
5
|
Keywords: python,log,colorize,color,logging,Python3,CodeWriter21
|
|
6
6
|
Author: CodeWriter21(Mehrad Pooryoussof)
|
|
@@ -94,12 +94,22 @@ pip install git+https://github.com/MPCodeWriter21/log21
|
|
|
94
94
|
Changelog
|
|
95
95
|
---------
|
|
96
96
|
|
|
97
|
-
### v3.0.
|
|
97
|
+
### v3.0.1
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
Fix the issue with `argumentify` which would result in falsy default values to be
|
|
100
|
+
replaced with None.
|
|
101
|
+
|
|
102
|
+
+ Example:
|
|
103
|
+
|
|
104
|
+
```python
|
|
105
|
+
def main(offset: int = 0) -> None:
|
|
106
|
+
...
|
|
107
|
+
|
|
108
|
+
argumentify(main)
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
if no value is provided for `--offset`, the default will be `None` instead of `0` which
|
|
112
|
+
is unexpected and can lead to issues.
|
|
103
113
|
|
|
104
114
|
#### Breaking Changes
|
|
105
115
|
|
|
@@ -69,12 +69,22 @@ pip install git+https://github.com/MPCodeWriter21/log21
|
|
|
69
69
|
Changelog
|
|
70
70
|
---------
|
|
71
71
|
|
|
72
|
-
### v3.0.
|
|
72
|
+
### v3.0.1
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
Fix the issue with `argumentify` which would result in falsy default values to be
|
|
75
|
+
replaced with None.
|
|
76
|
+
|
|
77
|
+
+ Example:
|
|
78
|
+
|
|
79
|
+
```python
|
|
80
|
+
def main(offset: int = 0) -> None:
|
|
81
|
+
...
|
|
82
|
+
|
|
83
|
+
argumentify(main)
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
if no value is provided for `--offset`, the default will be `None` instead of `0` which
|
|
87
|
+
is unexpected and can lead to issues.
|
|
78
88
|
|
|
79
89
|
#### Breaking Changes
|
|
80
90
|
|
|
@@ -31,7 +31,7 @@ from .stream_handler import StreamHandler, ColorizingStreamHandler
|
|
|
31
31
|
# yapf: enable
|
|
32
32
|
|
|
33
33
|
__author__ = 'CodeWriter21 (Mehrad Pooryoussof)'
|
|
34
|
-
__version__ = '3.0.
|
|
34
|
+
__version__ = '3.0.1'
|
|
35
35
|
__github__ = 'https://GitHub.com/MPCodeWriter21/log21'
|
|
36
36
|
__all__ = [
|
|
37
37
|
'ColorizingStreamHandler', 'DecolorizingFileHandler', 'ColorizingFormatter',
|
|
@@ -359,7 +359,7 @@ def _add_arguments(
|
|
|
359
359
|
config['required'] = True
|
|
360
360
|
if argument.kind == _inspect._ParameterKind.VAR_POSITIONAL:
|
|
361
361
|
config['nargs'] = '*'
|
|
362
|
-
if argument.default:
|
|
362
|
+
if argument.default is not None:
|
|
363
363
|
config['default'] = argument.default
|
|
364
364
|
parser.add_argument(
|
|
365
365
|
*generate_flag(argument, reserved_flags=reserved_flags), **config
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|