No real long term affect for the snake, nope! Luckily, they pose no threat as far as that is concerned. If you were breeding, I would worry-they can destroy eggs.

Other than that, the only worry is them spreading to the kitchen and getting into any food they can. It doesn't really matter if they are fruit flies, drain flies or sphaerocerid flies... they will all get into food.