From fd8440a223bfc1f019854f857acff40315af78e2 Mon Sep 17 00:00:00 2001 From: Denis Jacquerye Date: Wed, 28 Oct 2015 08:44:08 +0000 Subject: [PATCH] validators: png signature as bytes --- Lib/ufoLib/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ufoLib/validators.py b/Lib/ufoLib/validators.py index 0643a88b6..538413e30 100644 --- a/Lib/ufoLib/validators.py +++ b/Lib/ufoLib/validators.py @@ -747,7 +747,7 @@ def pngValidator(path=None, data=None, fileObj=None): pos = fileObj.tell() signature = fileObj.read(8) fileObj.seek(pos) - if signature != "\x89PNG\r\n\x1a\n": + if signature != b"\x89PNG\r\n\x1a\n": return False, "Image does not begin with the PNG signature." return True, None