File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2626 unicode_literals )
2727
2828import six
29- from six .moves import filter
3029from six import unichr
3130
3231import binascii
@@ -209,8 +208,9 @@ def _parse(self):
209208 # Start with reasonable defaults
210209 prop = {'weight' : 'Regular' , 'ItalicAngle' : 0.0 , 'isFixedPitch' : False ,
211210 'UnderlinePosition' : - 100 , 'UnderlineThickness' : 50 }
212- tokenizer = self ._tokens (self .parts [0 ])
213- filtered = filter (lambda x : x [0 ] != self ._whitespace , tokenizer )
211+ filtered = ((token , value )
212+ for token , value in self ._tokens (self .parts [0 ])
213+ if token is not self ._whitespace )
214214 # The spec calls this an ASCII format; in Python 2.x we could
215215 # just treat the strings and names as opaque bytes but let's
216216 # turn them into proper Unicode, and be lenient in case of high bytes.
You can’t perform that action at this time.
0 commit comments