Skip to content

Sourcery refactored main branch#1

Open
sourcery-ai[bot] wants to merge 1 commit intomainfrom
sourcery/main
Open

Sourcery refactored main branch#1
sourcery-ai[bot] wants to merge 1 commit intomainfrom
sourcery/main

Conversation

@sourcery-ai
Copy link
Copy Markdown

@sourcery-ai sourcery-ai bot commented Aug 5, 2023

Branch main refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the main branch, then run:

git fetch origin sourcery/main
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from ludoplex August 5, 2023 16:28
#
if result:

if result := myStringEncrypt.is_demo():
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 32-50 refactored with the following changes:

This removes the following comments ( why? ):

# login to the service
# result["label_limit"] (int) - label limit length
# result["bytes_limit"] (int) - bytes/file limit length
# result["credits_left"] (int) - number of credits left
# result["cmd_min"] (int) - minimum number of encryption commands
# result["demo"] (boolean) - demo mode flag
# result["credits_total"] (int) - initial number of credits
#
# result["string_limit"] (int) - string limit length
# result[] array holds the information about the license
# result["cmd_max"] (int) - maximum number of encryption commands

Comment on lines -277 to +281
source_file = open(file_path, 'rb')
bytes = source_file.read()
source_file.close()

with open(file_path, 'rb') as source_file:
bytes = source_file.read()
if not bytes:
return False

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function StringEncrypt.encrypt_file_contents refactored with the following changes:

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.

0 participants