From cfaf95a5a44f21a1d30d84316bd74094c0b3494f Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 9 Nov 2015 23:34:34 +1100 Subject: [PATCH] Commented or removed unused lines --- PIL/BdfFontFile.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PIL/BdfFontFile.py b/PIL/BdfFontFile.py index 0c1614e0f..e6cc22f91 100644 --- a/PIL/BdfFontFile.py +++ b/PIL/BdfFontFile.py @@ -109,10 +109,10 @@ class BdfFontFile(FontFile.FontFile): if s.find(b"LogicalFontDescription") < 0: comments.append(s[i+1:-1].decode('ascii')) - font = props["FONT"].split("-") + # font = props["FONT"].split("-") - font[4] = bdf_slant[font[4].upper()] - font[11] = bdf_spacing[font[11].upper()] + # font[4] = bdf_slant[font[4].upper()] + # font[11] = bdf_spacing[font[11].upper()] # ascent = int(props["FONT_ASCENT"]) # descent = int(props["FONT_DESCENT"]) @@ -123,7 +123,6 @@ class BdfFontFile(FontFile.FontFile): # for i in comments: # print "#", i - font = [] while True: c = bdf_char(fp) if not c: