Block comment should start with '# '

This commit is contained in:
Andrew Murray 2018-06-15 19:40:04 +10:00
parent fe42591f5f
commit e7815ccd62
3 changed files with 3 additions and 3 deletions

View File

@ -413,7 +413,7 @@ class TestImageFont(PillowTestCase):
im = Image.new(mode='RGB', size=(300, 100))
target = im.copy()
draw = ImageDraw.Draw(im)
#should not crash here.
# should not crash here.
draw.text((10, 10), '', font=font)
self.assert_image_equal(im, target)

View File

@ -11,7 +11,7 @@ FONT_PATH = "Tests/fonts/DejaVuSans.ttf"
class TestImagecomplextext(PillowTestCase):
def test_english(self):
#smoke test, this should not fail
# smoke test, this should not fail
ttf = ImageFont.truetype(FONT_PATH, FONT_SIZE)
im = Image.new(mode='RGB', size=(300, 100))
draw = ImageDraw.Draw(im)

View File

@ -744,7 +744,7 @@ class PdfParser:
m = cls.re_string_lit.match(data, offset)
if m:
return cls.get_literal_string(data, m.end())
#return None, offset # fallback (only for debugging)
# return None, offset # fallback (only for debugging)
raise PdfFormatError("unrecognized object: " + repr(data[offset:offset+32]))
re_lit_str_token = re.compile(br"(\\[nrtbf()\\])|(\\[0-9]{1,3})|(\\(\r\n|\r|\n))|(\r\n|\r|\n)|(\()|(\))")