-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
added space param to art and aprint functions #247
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codewithnick Thanks for your efforts 💯
Please take a look at my comments 🔥
Also, you should rebase your dev
branch. It's out of date and lead to some conflicts
CHANGELOG.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codewithnick What happened here?
3449 edits!!?
Please don't manipulate the file structure only add new logs.
art/art.py
Outdated
@@ -125,7 +125,7 @@ def help_func(): | |||
print(CLI_HELP) | |||
|
|||
|
|||
def aprint(artname, number=1): | |||
def aprint(artname, number=1,space=1): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update aprint
function docstring:
:param space: space between arts
:type space: int
art/art.py
Outdated
except UnicodeEncodeError: | ||
print(ART_ENVIRONMENT_WARNING.format(artname)) | ||
|
||
|
||
def art(artname, number=1): | ||
def art(artname, number=1,space=1): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update art
function docstring:
:param space: space between arts
:type space: int
art/art.py
Outdated
@@ -174,7 +174,7 @@ def art(artname, number=1): | |||
art_value = art_dic[artname] | |||
if isinstance(number, int) is False: | |||
raise artError(NUMBER_TYPE_ERROR) | |||
return (art_value + " ") * number | |||
return (art_value + " "*space) * number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PEP8:
return (art_value + " " * space) * number
art/art.py
Outdated
except UnicodeEncodeError: | ||
print(ART_ENVIRONMENT_WARNING.format(artname)) | ||
|
||
|
||
def art(artname, number=1): | ||
def art(artname, number=1,space=1): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PEP8:
def art(artname, number=1, space=1):
art/art.py
Outdated
@@ -125,7 +125,7 @@ def help_func(): | |||
print(CLI_HELP) | |||
|
|||
|
|||
def aprint(artname, number=1): | |||
def aprint(artname, number=1,space=1): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PEP8:
def aprint(artname, number=1, space=1):
Reference Issues/PRs
#241
What does this implement/fix? Explain your changes.
I have added space parameter in art and aprint functions (default parameter : space=1)
Any other comments?