DaveL17 wrote:What am I not seeing?
The vowels?
Seriously, I get lost moving between classes at the best of times, but whenever I see that error I usually add or remove ‘self’ as the first parameter.
In your case, you’re calling translate(None,’ ‘) so my first port of call would be to remove None.
Secondly, I’m confused how translate is even working because it takes a trans object using maketrans() - speaking randomly, do you need to provide ‘ ‘ as a list/array/dict of conversions, even from ‘ ‘ to ‘’
Thirdly, have you unwittingly defined your own translate() function within this class that you are accidentally calling?
Peter
Sent from my iPhone using Tapatalk Pro