def update_module(conn, module):
 remote_module = conn.modules[module.__name__]
 local_file = inspect.getsourcefile(module)
 remote_file = inspect.getsourcefile(remote_module)
 upload_file(conn, local_filem, remote_file)
 reload(remote_module)

def update_module ( conn , module ) : remote_module = conn . modules [ module . __name__ ] local_file = inspect . getsourcefile ( module ) remote_file = inspect . getsourcefile ( remote_module ) upload_file ( conn , local_filem , remote_file ) reload ( remote_module )
updates an existing module on the server .