fixes #435
This commit is contained in:
@@ -1638,6 +1638,8 @@ def rdata(file, rower=rrower()):
|
||||
res = rrdata()
|
||||
except:
|
||||
res = rrdata()
|
||||
except EOFError:
|
||||
res = rrdata()
|
||||
|
||||
return res
|
||||
|
||||
|
||||
@@ -83,15 +83,15 @@ def validate_kml(value):
|
||||
|
||||
|
||||
def handle_uploaded_image(i):
|
||||
import StringIO
|
||||
from io import StringIO, BytesIO
|
||||
from PIL import Image, ImageOps, ExifTags
|
||||
import os
|
||||
from django.core.files import File
|
||||
image_str = ""
|
||||
image_str = b''
|
||||
for chunk in i.chunks():
|
||||
image_str += chunk
|
||||
|
||||
imagefile = StringIO.StringIO(image_str)
|
||||
imagefile = BytesIO(image_str)
|
||||
|
||||
|
||||
image = Image.open(i)
|
||||
|
||||
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user