def upload_stable(user='pandas'):
 if os.system('cd build/html; rsync -avz . {0}@pandas.pydata.org:/usr/share/nginx/pandas/pandas-docs/stable/ -essh'.format(user)):
  raise SystemExit('Upload to stable failed')

def upload_stable ( user = 'pandas' ) : if os . system ( 'cd build/html; rsync -avz . {0}@pandas.pydata.org:/usr/share/nginx/pandas/pandas-docs/stable/ -essh' . format ( user ) ) : raise SystemExit ( 'Upload to stable failed' )
push a copy to the pydata stable directory .