Changed audio.* Image* imports

so that they no longer import from PIL explicitly.
This is due to explicit PIL.Image* imports failing
on a Ubuntu machine within virtualenv.

PIL is a mystery I have yet to find the energy to unravel.

The 'implicit' approach works both for the affected
machine and my local machine and I've seen it more often
out in the wild, so I'm assuming it is the right way.
This commit is contained in:
Joar Wandborg 2012-03-27 23:43:15 +02:00
parent 0308958b2d
commit 352a180765
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
# Bram de Jong <bram.dejong at domain.com where domain in gmail>
# 2012, Joar Wandborg <first name at last name dot se>
from PIL import Image, ImageDraw, ImageColor #@UnresolvedImport
import Image, ImageDraw, ImageColor #@UnresolvedImport
from functools import partial
import math
import numpy

View File

@ -16,7 +16,7 @@
import pdb
import logging
from PIL import Image
import Image
from mediagoblin.processing import BadMediaFail
from mediagoblin.media_types.audio import audioprocessing