pdfcolor: Fix Python 2.6 compatibility
parent
94f3d61bb2
commit
0911703eba
|
@ -21,7 +21,11 @@ class PDFColorSpace(object):
|
|||
return '<PDFColorSpace: %s, ncomponents=%d>' % (self.name, self.ncomponents)
|
||||
|
||||
|
||||
if six.PY2:
|
||||
PREDEFINED_COLORSPACE = {}
|
||||
else:
|
||||
PREDEFINED_COLORSPACE = collections.OrderedDict()
|
||||
|
||||
for (name, n) in [
|
||||
('DeviceGray', 1), # default value first
|
||||
('CalRGB', 3),
|
||||
|
|
Loading…
Reference in New Issue