FileProducer class refactoring: use a conditional expression instead of the 'noop' lambda in case of binary transfer which is slightly faster; also get rid of self.done check wich is useless. Finally do not raise exception in case of type not in ('a', 'i') to facilitate customization of new types.
FileProducer class refactoring: use a conditional expression instead of the 'noop' lambda in case of binary transfer which is slightly faster; also get rid of self.done check wich is useless. Finally do not raise exception in case of type not in ('a', 'i') to facilitate customization of new types.

giampaolo/pyftpdlib