File: __init__.py

package info (click to toggle)
pythonmagick 0.7-5
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,284 kB
  • ctags: 377
  • sloc: sh: 9,133; cpp: 2,358; perl: 279; makefile: 100; python: 11
file content (13 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
import _PythonMagick

class Image(_PythonMagick.Image):
    pass

class Blob(_PythonMagick.Blob):
    def __init__(self,*args):
        if len(args)==1 and type(args[0])==type(''):
            _PythonMagick.Blob.__init__(self)
            self.update(args[0])
        else:
            _PythonMagick.Blob.__init__(self,*args)
    data=property(_PythonMagick.get_blob_data,_PythonMagick.Blob.update)