moved _webp into the PIL namespace

This commit is contained in:
wiredfool 2013-04-08 21:53:59 -07:00
parent 088c752e40
commit 8295e33390
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
from PIL import Image
from PIL import ImageFile
from io import BytesIO
import _webp
from PIL import _webp
def _accept(prefix):
return prefix[:4] == b"RIFF" and prefix[8:16] == b"WEBPVP8 "

View File

@ -3,7 +3,7 @@ from tester import *
from PIL import Image
try:
import _webp
from PIL import _webp
except:
skip('webp support not installed')

View File

@ -330,7 +330,7 @@ class pil_build_ext(build_ext):
if os.path.isfile("_webp.c") and feature.webp:
exts.append(Extension(
"_webp", ["_webp.c"], libraries=["webp"]))
"PIL._webp", ["_webp.c"], libraries=["webp"]))
if sys.platform == "darwin":