We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6c2b6a commit 61a92acCopy full SHA for 61a92ac
o2tools/ojn.py
@@ -40,7 +40,12 @@ def __repr__(self):
40
return f'{self.__class__.__name__}({attrs})'
41
42
def __eq__(self, other):
43
- return vars(self) == vars(other) and isinstance(other, self.__class__)
+ return (
44
+ isinstance(other, self.__class__) and
45
+ hasattr(self, "__dict__") and
46
+ hasattr(other, "__dict__") and
47
+ self.__dict__ == other.__dict__
48
+ )
49
50
51
class PackageHeader:
o2tools/opa.py
@@ -1,7 +1,7 @@
1
"""
2
Useful tools for OPA files.
3
4
-This has the same functionality for OPI files.
+This has the same functionality as OPI files.
5
6
Source:
7
0 commit comments