Bugfix: restore __contains__
method after ArchSpec refactor. (#2481)
This commit is contained in:
@@ -449,6 +449,9 @@ def __str__(self):
|
|||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return str(self)
|
return str(self)
|
||||||
|
|
||||||
|
def __contains__(self, string):
|
||||||
|
return string in str(self)
|
||||||
|
|
||||||
|
|
||||||
@key_ordering
|
@key_ordering
|
||||||
class CompilerSpec(object):
|
class CompilerSpec(object):
|
||||||
|
Reference in New Issue
Block a user