Fix the remaining 1334 flake8 errors in scripts/ . Close #391.

This commit is contained in:
Nicola Soranzo
2016-02-18 15:45:15 +00:00
parent f5277a654a
commit 93348e7199
55 changed files with 1513 additions and 1439 deletions
+4 -4
View File
@@ -1,13 +1,14 @@
#!/usr/bin/env python
usage = "USAGE: copy_hda_to_library_folder.py <base url> <api key> <hda id> <library id> <folder id> [ message ]"
import os, sys
import os
import sys
sys.path.insert( 0, os.path.dirname( __file__ ) )
from common import submit
# -----------------------------------------------------------------------------
def copy_hda_to_library_folder( base_url, key, hda_id, library_id, folder_id, message='' ):
url = 'http://%s/api/libraries/%s/contents' %( base_url, library_id )
url = 'http://%s/api/libraries/%s/contents' % ( base_url, library_id )
payload = {
'folder_id' : folder_id,
'create_type' : 'file',
@@ -19,7 +20,6 @@ def copy_hda_to_library_folder( base_url, key, hda_id, library_id, folder_id, me
return submit( key, url, payload )
# -----------------------------------------------------------------------------
if __name__ == '__main__':
num_args = len( sys.argv )
if num_args < 6: