(self, obj)
Save a module as an import
Save a module as an import
Save a module as an import
def save_module(self, obj):
        """
        Save a module as an import
        """
        if _is_dynamic(obj):
            self.save_reduce(dynamic_subimport, (obj.__name__, vars(obj)), obj=obj)
        else:
            self.save_reduce(subimport, (obj.__name__,), obj=obj)
def save_module ( self , obj ) : if _is_dynamic ( obj ) : self . save_reduce ( dynamic_subimport , ( obj . __name__ , vars ( obj ) ) , obj = obj ) else : self . save_reduce ( subimport , ( obj . __name__ , ) , obj = obj )