Closed kkarwows closed 11 years ago
Crop view from clean-image-crop-uploader / cicu / views.py doesn't work on Windows. Problem is in line:
f = open(pathToFile, mode='r')
According to http://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files it should be:
f = open(pathToFile, mode='rb')
It's safe both for Unix and Windows.
Hi Kkarwows, yes it's right! It prefers to use 'rb' mode. Thank you for your contribution! Alfredo
Crop view from clean-image-crop-uploader / cicu / views.py doesn't work on Windows. Problem is in line:
According to http://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files it should be:
It's safe both for Unix and Windows.