test: Remove unused, undocumented and misleading CScript.__add__

This commit is contained in:
MarcoFalke committed 2020-04-22 09:00:56 -04:00
1 parent 9e8e813df5
commit faff9e4bb4
3 files changed
+5 -11

No files matched your search

+2 -9
View File
@@ -449,15 +449,8 @@ class CScript(bytes):
return other
def __add__(self, other):
# Do the coercion outside of the try block so that errors in it are
# noticed.
other = self.__coerce_instance(other)
try:
# bytes.__add__ always returns bytes instances unfortunately
return CScript(super(CScript, self).__add__(other))
except TypeError:
raise TypeError('Can not add a %r instance to a CScript' % other.__class__)
# add makes no sense for a CScript()
raise NotImplementedError
def join(self, iterable):
# join makes no sense for a CScript()