Commit 3b1edac8 authored by shake's avatar shake
Browse files

Variable name change, two objects with the same name -

git-svn-id: f1b3a171-7291-4a19-a512-95ad0ad9394a
parent 473a5d54
......@@ -131,9 +131,9 @@ def processDir(args, directory, files):
req =, auth=(shell.user, shell.passwd),
elif method == 'put':
f = open(os.path.join(directory, f), 'rb')
fobj = open(os.path.join(directory, f), 'rb')
req = requests.put(url, auth=(shell.user, shell.passwd),
data=f, headers=headers)
data=fobj, headers=headers)
print req.url, req.status_code,'\n', req.text
def doPut(shell, arg, filename, contentID=None):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment