Skip to content
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

fix typo #587

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dill/pointers.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def find_chain(obj, predicate, edge_func, max_depth=20, extra_ignore=()):
return [obj] # not found


# backward compatability
# backward compatibility
refobject = at


Expand Down
6 changes: 3 additions & 3 deletions dill/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ def _namespace(obj):
return qual


#NOTE: 05/25/14 broke backward compatability: added 'alias' as 3rd argument
#NOTE: 05/25/14 broke backward compatibility: added 'alias' as 3rd argument
def _getimport(head, tail, alias='', verify=True, builtin=False):
"""helper to build a likely import string from head and tail of namespace.
('head','tail') are used in the following context: "from head import tail"
Expand Down Expand Up @@ -714,7 +714,7 @@ def _getimport(head, tail, alias='', verify=True, builtin=False):


#XXX: rename builtin to force? vice versa? verify to force? (as in getsource)
#NOTE: 05/25/14 broke backward compatability: added 'alias' as 2nd argument
#NOTE: 05/25/14 broke backward compatibility: added 'alias' as 2nd argument
def getimport(obj, alias='', verify=True, builtin=False, enclosing=False):
"""get the likely import string for the given object

Expand Down Expand Up @@ -1001,7 +1001,7 @@ def _code_stitcher(block):
return


# backward compatability
# backward compatibility
def getimportable(obj, alias='', byname=True, explicit=False):
return importable(obj,alias,source=(not byname),builtin=explicit)
#return outdent(_importable(obj,alias,source=(not byname),builtin=explicit))
Expand Down