def IsEncodingsModule(module_name):
 if ((module_name in ('codecs', 'encodings')) or module_name.startswith('encodings.')):
  return True
 return False

def IsEncodingsModule ( module_name ) : if ( ( module_name in ( 'codecs' , 'encodings' ) ) or module_name . startswith ( 'encodings.' ) ) : return True return False
determines if the supplied module is related to encodings in any way .