Skip to content
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

Closed
wants to merge 0 commits into from
Closed

added space param to art and aprint functions #247

wants to merge 0 commits into from

Conversation

codewithnick
Copy link
Contributor

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?

Copy link
Owner

@sepandhaghighi sepandhaghighi left a 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
Copy link
Owner

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):
Copy link
Owner

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):
Copy link
Owner

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
Copy link
Owner

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):
Copy link
Owner

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):
Copy link
Owner

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):

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants