def move_tables(manager, src_manager, tables):
 check_exists(src_manager, tables, TABLE_TYPE)
 for table in tables:
  manager.execute(('RENAME TABLE `%(db)s`.`%(table)s` TO `%(table)s`' % dict(db=src_manager.get_db_name(), table=table)))

def move_tables ( manager , src_manager , tables ) : check_exists ( src_manager , tables , TABLE_TYPE ) for table in tables : manager . execute ( ( 'RENAME TABLE `%(db)s`.`%(table)s` TO `%(table)s`' % dict ( db = src_manager . get_db_name ( ) , table = table ) ) )
moves the specified tables from another database if a table does not exist in the source database .