Skip to content

Commit

Permalink
fix typo (#587)
Browse files Browse the repository at this point in the history
Signed-off-by: lilinjie <lilinjie@uniontech.com>
  • Loading branch information
uniontech-lilinjie committed Apr 3, 2023
1 parent 580ccdd commit 4e420e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 4e420e3

Please sign in to comment.