mochi / mochikit

MochiKit makes JavaScript suck less

Home Page:http://mochi.github.io/mochikit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

problem add control code for script/pack.py

AquaBindi opened this issue · comments

Windows Vista 64bit
python 2.7.2 (16bit)

run script/pack.py.
add control code on file end.

Just my environment?

script/pack.py
line:16
-    outf = file(os.path.join(dirname, 'packed/MochiKit/MochiKit.js'), 'w')
+    outf = file(os.path.join(dirname, 'packed/MochiKit/MochiKit.js'), 'wb')

I think the linked commit fixes the EOF issue in Windows as well as any Windows-style newlines. I don't have access to any Windows machine to test this right now, so please reopen if this doesn't solve the issue.

thank you!