def upload_dev_pdf(user='pandas'):
 if os.system('cd build/latex; scp pandas.pdf {0}@pandas.pydata.org:/usr/share/nginx/pandas/pandas-docs/dev/'.format(user)):
  raise SystemExit('PDF upload to Pydata Dev failed')

def upload_dev_pdf ( user = 'pandas' ) : if os . system ( 'cd build/latex; scp pandas.pdf {0}@pandas.pydata.org:/usr/share/nginx/pandas/pandas-docs/dev/' . format ( user ) ) : raise SystemExit ( 'PDF upload to Pydata Dev failed' )
push a copy to the pydata dev directory .