-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wip/v2 #11
base: master
Are you sure you want to change the base?
Wip/v2 #11
Conversation
target_files = self.contents.keys() | ||
modification_points = copy.deepcopy(self.modification_points) | ||
new_contents = copy.deepcopy(self.contents) | ||
for target_file in target_files: | ||
edits = list(filter(lambda a: a.target[0] == target_file, patch.edit_list)) | ||
for edit in edits: | ||
edit.apply(self, new_contents, modification_points) | ||
if minify and len(edits) == 0: |
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.
if minify and not edits
would to more pythonic 😺 (reference)
Hi Gabin, You should ping me or assign me as reviewer otherwise I am not notified when you open a pull request or ask questions. I created others branches more suitable for pull requests:
Let me know if you want me to change or rebase anything; as long as its on my fork nobody should mind if I force-push my own branches. |
No description provided.