Skip to content

Commit

Permalink
remove bracket in _namespace for pypy3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckerns committed Feb 22, 2022
1 parent dd31452 commit 96d3d53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dill/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def _namespace(obj):
# mostly for functions and modules and such
#FIXME: 'wrong' for decorators and curried functions
try: #XXX: needs some work and testing on different types
module = qual = str(getmodule(obj)).split()[1].strip('"').strip("'")
module = qual = str(getmodule(obj)).split()[1].strip('>').strip('"').strip("'")
qual = qual.split('.')
if ismodule(obj):
return qual
Expand Down

0 comments on commit 96d3d53

Please sign in to comment.