Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 225b1bd

Browse files
committed
Simplify ExtGState concatenation
1 parent c0d3f96 commit 225b1bd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/matplotlib/backends/backend_pdf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,10 +1275,10 @@ def _soft_mask_state(self, smask):
12751275
def writeExtGSTates(self):
12761276
self.writeObject(
12771277
self._extGStateObject,
1278-
dict(itertools.chain(
1279-
self.alphaStates.values(),
1280-
self._soft_mask_states.values()
1281-
))
1278+
dict([
1279+
*self.alphaStates.values(),
1280+
*self._soft_mask_states.values()
1281+
])
12821282
)
12831283

12841284
def _write_soft_mask_groups(self):

0 commit comments

Comments
 (0)