Skip to content

Commit

Permalink
Does not ignore class without source code file for compute version #912
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Jul 14, 2020
1 parent f668d57 commit b5360f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/SourceVersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def version(*sources):
try:
h.update(open(inspect.getsourcefile(c), 'rb').read())
except TypeError: # No python source file
pass
h.update(str(id(c)).encode())
else:
raise NotImplementedError(source.__class__)

Expand Down

0 comments on commit b5360f4

Please sign in to comment.