From bea976a0f7bf8727402d3d53e3c31d1af64d8b5d Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Mon, 18 Nov 2024 20:17:44 +0330 Subject: [PATCH 1/6] fix : lprint function modified --- art/functions.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/art/functions.py b/art/functions.py index 154072b3..4a603ffc 100644 --- a/art/functions.py +++ b/art/functions.py @@ -253,11 +253,8 @@ def lprint(length=15, height=1, char='#'): :type char: str :return: None """ - try: - grid = line(length, height, char) - print(grid) - except artError as e: - print(str(e)) + grid = line(length, height, char) + print(grid) def line(length=15, height=1, char='#'): From 6c7861321bea0bf24c534120cd1360d4f83e31eb Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Mon, 18 Nov 2024 20:20:10 +0330 Subject: [PATCH 2/6] fix : tests updated --- art/tests/test.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/art/tests/test.py b/art/tests/test.py index 979e1dab..a1dfda97 100644 --- a/art/tests/test.py +++ b/art/tests/test.py @@ -11,7 +11,17 @@ *************** *************** >>> lprint(length=0, height=1, char="#") -The 'length' must be an int higher than 0. +Traceback (most recent call last): + ... +art.art.artError: The 'length' must be an int higher than 0. +>>> lprint(length=15, height='test', char="#") +Traceback (most recent call last): + ... +art.art.artError: The 'height' must be an int higher than 0. +>>> lprint(length=15, height=2, char=4) +Traceback (most recent call last): + ... +art.art.artError: The 'char' type must be str. >>> line(length=10, height=1, char="#") '##########' >>> line(length=15, height=2, char="*") From 4391ace19485c017cf0ee1d35149e39aeb4dc4d9 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Mon, 18 Nov 2024 20:21:08 +0330 Subject: [PATCH 3/6] doc : README.md lprint section updated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9921cd90..2e05ccdf 100644 --- a/README.md +++ b/README.md @@ -347,7 +347,7 @@ Filename: test.txt #### 1. lprint -This function prints a grid (`length` by `height`) of any given character. +This function prints a grid (`length` by `height`) of any given character in normal mode and raise `artError` in exception. ```pycon >>> lprint(length=15, height=2, char="*") *************** From dee4dcd5fb85d32d7f4343133491ec79bca4abc5 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Mon, 18 Nov 2024 20:22:39 +0330 Subject: [PATCH 4/6] doc : README.md functions table updated --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2e05ccdf..d90a7278 100644 --- a/README.md +++ b/README.md @@ -743,7 +743,17 @@ _/ _ _ _/ text2art str raise artError - + + + lprint + None + raise artError + + + line + str + raise artError + set_default None From 6ef5da17c2db7e83835b69e15a6cdb78368be1c5 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Mon, 18 Nov 2024 20:29:34 +0330 Subject: [PATCH 5/6] doc : README.md lprint/line section updated --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d90a7278..e791fa90 100644 --- a/README.md +++ b/README.md @@ -354,8 +354,8 @@ This function prints a grid (`length` by `height`) of any given character in nor *************** ``` -* Note1: This feature has been added since `Version 6.4` -* Note2: The default values are `length=15`, `height=1`, `char='#'` +* Note1 : New in `Version 6.4` +* Note2 : The default values are `length=15`, `height=1`, `char='#'` #### 2. line @@ -365,8 +365,8 @@ This function returns a grid (`length` by `height`) of any given character as `s '***************\n***************' ``` -* Note1: This feature has been added since `Version 6.4` -* Note2: The default values are `length=15`, `height=1`, `char='#'` +* Note1 : New in `Version 6.4` +* Note2 : The default values are `length=15`, `height=1`, `char='#'` ### Decoration From b557bfdc005fb4f171dadf50b8ac59efec5f77da Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Tue, 19 Nov 2024 01:56:13 +0330 Subject: [PATCH 6/6] doc : CHANGELOG.md updated --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3eed7248..0e7ff91d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - PyPI badge in `README.md` - GitHub actions are limited to the `dev` and `master` branches - `Python 3.13` added to `test.yml` +- `README.md` modified ## [6.3] - 2024-09-19 ### Added - `data` directory