I wrote little wrapper for urllib (python3). Is it proper and safe to import module in if?
if self.response_encodi
Sure, that's fine. It can even be necessary in cases where the module has initialization code that you don't always want to run.