-
Notifications
You must be signed in to change notification settings - Fork 96
Update blob.py #390
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
base: master
Are you sure you want to change the base?
Update blob.py #390
Changes from 2 commits
133dcfe
05221e2
91fab40
b66e07e
fe5e319
0e2176e
40975ad
0cba2bb
8e4591a
a17af3c
8ae4188
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -942,13 +942,14 @@ def remove_committed_dir(path): | |||||||||||||
filename = os.path.join(dirpath, filename) | ||||||||||||||
remove_committed(filename) | ||||||||||||||
shutil.rmtree(path) | ||||||||||||||
|
||||||||||||||
link_or_copy = shutil.copy | ||||||||||||||
link_or_copy = shutil.copy | ||||||||||||||
else: | ||||||||||||||
remove_committed = os.remove | ||||||||||||||
remove_committed_dir = shutil.rmtree | ||||||||||||||
link_or_copy = os.link | ||||||||||||||
|
||||||||||||||
try: | ||||||||||||||
link_or_copy = os.link | ||||||||||||||
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. Please add a comment indicating why we fall back to
Suggested change
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. Ok. Just added those comments. I tried to see how the proposed change to blob.py within ZODB works with other python implementations like for iSH for IOS which has Alpine linux as it's underpinnings. Unfortunately, their python is so broken with many dependencies not available that libraries such as ZODB won't even install. |
||||||||||||||
|
||||||||||||||
def find_global_Blob(module, class_): | ||||||||||||||
if module == 'ZODB.blob' and class_ == 'Blob': | ||||||||||||||
|
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.
This assignment must be at the same indentation level as the function definitions: it is not part of the function.