Fixed bug #16649 (sending of binary files on windows)...
...after getting glorious hint by silene.
This commit is contained in:
parent
724a9fe17c
commit
fbfb97c2fa
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@ class CampaignClient:
|
|||
if os.path.isdir(fn):
|
||||
sub = put_dir(os.path.basename(fn), fn)
|
||||
else:
|
||||
sub = put_file(os.path.basename(fn), file(fn))
|
||||
sub = put_file(os.path.basename(fn), open(fn, 'rb'))
|
||||
if sub: dataNode.insert(sub)
|
||||
return dataNode
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue