Skip to content

Sourcery Starbot ⭐ refactored RayElg/RustPythonCFFI#1

Open
SourceryAI wants to merge 1 commit intoRayElg:mainfrom
SourceryAI:main
Open

Sourcery Starbot ⭐ refactored RayElg/RustPythonCFFI#1
SourceryAI wants to merge 1 commit intoRayElg:mainfrom
SourceryAI:main

Conversation

@SourceryAI
Copy link
Copy Markdown

Thanks for starring sourcery-ai/sourcery ✨ 🌟 ✨

Here's your pull request refactoring your most popular Python repo.

If you want Sourcery to refactor all your Python repos and incoming pull requests install our bot.

Review changes via command line

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

git fetch https://github.com/sourcery-ai-bot/RustPythonCFFI main
git merge --ff-only FETCH_HEAD
git reset HEAD^

Comment thread inPython.py
for i in split:
if len(i) > 8:
l += 1
l = sum(len(i) > 8 for i in split)
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 shortLong refactored with the following changes:

Comment thread inPython.py
Comment on lines -16 to +13
example = example + line
example += line
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 16-16 refactored with the following changes:

  • Replace assignment with augmented assignment (aug-assign)

Comment thread withRust.py
with open("formalSentences.txt",encoding="utf8") as f:
for line in f:
example = example + line
example += line
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 15-15 refactored with the following changes:

  • Replace assignment with augmented assignment (aug-assign)

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