Skip to content

Add a toggle to print module messages and replace .format with f-strings - #22

Open
Rajdave69 wants to merge 6 commits into
undefinedplayer:masterfrom
Rajdave69:master
Open

Add a toggle to print module messages and replace .format with f-strings#22
Rajdave69 wants to merge 6 commits into
undefinedplayer:masterfrom
Rajdave69:master

Conversation

@Rajdave69

Copy link
Copy Markdown

This PR changes a few things -

  • Adds a parameter to the CloudFlare class in cloudflare.py called print_messages. This parameter is defaulted to True. It controls if messages should be printed through the module
  • Replace .format prints with f-strings.
  • Fix a grammatical error and spelling-mistake.

This optional parameter sets if messages should be printed or not, within the module. It's defaulted to True.

This gives the end user an option to disable printing messages from the module directly which would serve many purposes.
This change makes the code more human-readable.
@Rajdave69 Rajdave69 changed the title Add a toggle to print module messages and replace .format to f-strings Add a toggle to print module messages and replace .format with f-strings Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant