From 0de0c6a116f60d904e71f430912de41e21514297 Mon Sep 17 00:00:00 2001 From: jevans Date: Thu, 20 Jun 2013 18:09:45 -0400 Subject: [PATCH] Change old-style classes into new-style. Closes #52 --- glymur/codestream.py | 4 ++-- glymur/jp2box.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/glymur/codestream.py b/glymur/codestream.py index b7598cf..04c208f 100644 --- a/glymur/codestream.py +++ b/glymur/codestream.py @@ -29,7 +29,7 @@ for _marker in range(0xff90, 0xff94): _valid_markers.append(_marker) -class Codestream: +class Codestream(object): """Container for codestream information. Attributes @@ -869,7 +869,7 @@ class Codestream: return TLMsegment(**kwargs) -class Segment: +class Segment(object): """Segment information. Attributes diff --git a/glymur/jp2box.py b/glymur/jp2box.py index bb313df..d4a44e9 100644 --- a/glymur/jp2box.py +++ b/glymur/jp2box.py @@ -33,7 +33,7 @@ from .core import _method_display from .core import _reader_requirements_display -class Jp2kBox: +class Jp2kBox(object): """Superclass for JPEG 2000 boxes. Attributes @@ -243,7 +243,7 @@ class ColourSpecificationBox(Jp2kBox): return box -class _ICCProfile: +class _ICCProfile(object): """ """ profile_class = {b'scnr': 'input device profile', @@ -1773,7 +1773,7 @@ class UUIDBox(Jp2kBox): return box -class Exif: +class Exif(object): """ Attributes ---------- @@ -1826,7 +1826,7 @@ class Exif: self.exif_gpsinfo = gps.processed_ifd -class _Ifd: +class _Ifd(object): """ Attributes ----------