-
Notifications
You must be signed in to change notification settings - Fork 92
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
Update blob.py #390
Open
BandungBB
wants to merge
11
commits into
zopefoundation:master
Choose a base branch
from
BandungBB:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update blob.py #390
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
133dcfe
Update blob.py
BandungBB 05221e2
Update blob.py
BandungBB 91fab40
Update blob.py
BandungBB b66e07e
Update blob.py
BandungBB fe5e319
Update blob.py
BandungBB 0e2176e
Update blob.py
BandungBB 40975ad
Update blob.py
BandungBB 0cba2bb
Update blob.py
BandungBB 8e4591a
Update src/ZODB/blob.py
icemac a17af3c
Update blob.py
BandungBB 8ae4188
Update blob.py
BandungBB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -942,8 +942,10 @@ def remove_committed_dir(path): | |||||
filename = os.path.join(dirpath, filename) | ||||||
remove_committed(filename) | ||||||
shutil.rmtree(path) | ||||||
|
||||||
link_or_copy = shutil.copy | ||||||
try: | ||||||
link_or_copy = shutil.copy | ||||||
except AttributeError: #pragma: no cover | ||||||
link_or_copy = shutil.copy | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This assignment must be at the same indentation level as the function definitions: it is not part of the function.
Suggested change
|
||||||
else: | ||||||
remove_committed = os.remove | ||||||
remove_committed_dir = shutil.rmtree | ||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
First, this cannot be the correct spot for the
try: .. except: ...
bit: it is inside theif sys.platform == "win32":
block. The correct location should be below (line 950).Second, the two parts of the
try: ... except: ...
test must not have the same content. Line 950 below should be changed to: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.
Ooops. You are correct. The changes were meant for line 950