[FIX]:AccessInit: hash collision error possible

lp bug: https://launchpad.net/bugs/859123 fixed

bzr revid: nch@tinyerp.com-20111114065105-ho6id5qnsndd5ks9
This commit is contained in:
Denis Seleznyov 2011-11-14 12:21:05 +05:30 committed by Naresh (OpenERP)
parent 99a3ab1c43
commit f373597f33
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ def convert(from_file, to_file):
__convert(from_file, to_file, size=95)
def __convert(from_file, to_file, size=95):
import Image, ImageDraw, ImageFilter
from PIL import Image, ImageDraw, ImageFilter
im = Image.open(from_file)
if float(im.size[1]/im.size[0])>2:
im = im.resize((im.size[0]*size/im.size[1], size))