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 26
26
unicode_literals )
27
27
28
28
import six
29
- from six .moves import filter
30
29
from six import unichr
31
30
32
31
import binascii
@@ -209,8 +208,9 @@ def _parse(self):
209
208
# Start with reasonable defaults
210
209
prop = {'weight' : 'Regular' , 'ItalicAngle' : 0.0 , 'isFixedPitch' : False ,
211
210
'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 )
214
214
# The spec calls this an ASCII format; in Python 2.x we could
215
215
# just treat the strings and names as opaque bytes but let's
216
216
# 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