Skip to content

Commit 2fc8af4

Browse files
fix: Added the COLORS directly into Colors module.
1 parent e9d7ceb commit 2fc8af4

5 files changed

Lines changed: 233 additions & 172 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ Help this project by [Donation](DONATE.md)
66
Changes
77
-----------
88

9+
### 2.5.4
10+
11+
Added constant colors directly to the Colors module. Now you can do this:
12+
```python
13+
from log21 import print
14+
from log21.colors import GREEN, WHITE, RED
15+
16+
print(GREEN + 'This' + WHITE + ' is' + RED + ' Red')
17+
```
18+
919
### 2.5.3
1020

1121
Moved some dictionaries to `__init__` methods.

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@ python setup.py install
5353
Changes
5454
-------
5555

56-
### 2.5.3
56+
### 2.5.4
5757

58-
Moved some dictionaries to `__init__` methods.
59-
`colors` in `Argparse.ColorizingHelpFormatter` class.
60-
`_level_name` in `Formatters._Formatter` class and `level_colors` in `Formatters.ColorizingFormatter` class.
61-
`sign_colors` in `PPrint.PrettyPrinter` class.
62-
`colors` in `TreePrint.TreePrint.Node` class.
58+
Added constant colors directly to the Colors module. Now you can do this:
59+
```python
60+
from log21 import print
61+
from log21.colors import GREEN, WHITE, RED
62+
63+
print(GREEN + 'This' + WHITE + ' is' + RED + ' Red')
64+
```
6365

6466
[Full CHANGELOG](https://github.com/MPCodeWriter21/log21/blob/master/CHANGELOG.md)
6567

0 commit comments

Comments
 (0)