| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e7fa5ef commit 0968971
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -77,10 +77,14 @@ def _set_cache_(self, attr): | |||
| 77 | 77 | ||
| 78 | 78 | def __eq__(self, other): | |
| 79 | 79 | """:return: True if the objects have the same SHA1""" | |
| 80 | + if not hasattr(other, 'binsha'): | ||
| 81 | + return False | ||
| 80 | 82 | return self.binsha == other.binsha | |
| 81 | 83 | ||
| 82 | 84 | def __ne__(self, other): | |
| 83 | 85 | """:return: True if the objects do not have the same SHA1 """ | |
| 86 | + if not hasattr(other, 'binsha'): | ||
| 87 | + return True | ||
| 84 | 88 | return self.binsha != other.binsha | |
| 85 | 89 | ||
| 86 | 90 | def __hash__(self): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments