##// END OF EJS Templates
bundle2: look for __next__ as well as next to identify iterators...
Augie Fackler -
r33636:5ae35a13 default
parent child Browse files
Show More
@@ -1070,7 +1070,8 b' class bundlepart(object):'
1070 Exists to handle the different methods to provide data to a part."""
1070 Exists to handle the different methods to provide data to a part."""
1071 # we only support fixed size data now.
1071 # we only support fixed size data now.
1072 # This will be improved in the future.
1072 # This will be improved in the future.
1073 if util.safehasattr(self.data, 'next'):
1073 if (util.safehasattr(self.data, 'next')
1074 or util.safehasattr(self.data, '__next__')):
1074 buff = util.chunkbuffer(self.data)
1075 buff = util.chunkbuffer(self.data)
1075 chunk = buff.read(preferedchunksize)
1076 chunk = buff.read(preferedchunksize)
1076 while chunk:
1077 while chunk:
General Comments 0
You need to be logged in to leave comments. Login now