Skip to content

Commit

Permalink
fixed windows python downloading bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jplehmann committed Mar 31, 2012
1 parent 3987785 commit 5910bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coursera-dl
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def download_file_nowget(url, fn, cookies_file):
urlfile = get_opener(cookies_file).open(url)
chunk_sz = 1048576
bytesread = 0
f = open(fn, "w")
f = open(fn, "wb")
while True:
data = urlfile.read(chunk_sz)
if not data:
Expand Down

0 comments on commit 5910bd4

Please sign in to comment.