File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -99,15 +99,15 @@ OpenSlide objects
99
99
.. attribute :: properties
100
100
101
101
Metadata about the slide, in the form of a
102
- :class: `Mapping < collections.Mapping> ` from OpenSlide property name to
102
+ :class: `~ collections.abc. Mapping ` from OpenSlide property name to
103
103
property value. Property values are always strings. OpenSlide
104
104
provides some :ref: `standard properties <Standard properties >`, plus
105
105
additional properties that vary by slide format.
106
106
107
107
.. attribute :: associated_images
108
108
109
109
Images, such as label or macro images, which are associated with this
110
- slide. This is a :class: `Mapping < collections.Mapping> ` from image
110
+ slide. This is a :class: `~ collections.abc. Mapping ` from image
111
111
name to RGBA :class: `Image <PIL.Image.Image> `.
112
112
113
113
Unlike in the C interface, these images are not premultiplied.
Original file line number Diff line number Diff line change 23
23
"""
24
24
25
25
from __future__ import division , print_function
26
- from collections import Mapping
27
26
from PIL import Image
28
27
28
+ try :
29
+ # Python 3.3+
30
+ from collections .abc import Mapping
31
+ except ImportError :
32
+ # Python 2
33
+ from collections import Mapping
34
+
29
35
from openslide import lowlevel
30
36
31
37
# For the benefit of library users
You can’t perform that action at this time.
0 commit comments