~ubuntu-branches/ubuntu/saucy/python-imaging/saucy-proposed

« back to all changes in this revision

Viewing changes to PIL/BufrStubImagePlugin.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-01-31 20:49:20 UTC
  • mfrom: (27.1.1 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130131204920-b5zshy6vgfvdionl
Tags: 1.1.7+1.7.8-1ubuntu1
Rewrite build dependencies to allow cross builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
# See the README file for information on usage and redistribution.
10
10
#
11
11
 
12
 
import Image, ImageFile
 
12
from . import Image, ImageFile
13
13
 
14
14
_handler = None
15
15
 
26
26
# Image adapter
27
27
 
28
28
def _accept(prefix):
29
 
    return prefix[:4] == "BUFR" or prefix[:4] == "ZCZC"
 
29
    return prefix[:4] == b"BUFR" or prefix[:4] == b"ZCZC"
30
30
 
31
31
class BufrStubImageFile(ImageFile.StubImageFile):
32
32