From cd06a3404b5dafbe098613d4b402d7e0c80cae40 Mon Sep 17 00:00:00 2001 From: jevans Date: Wed, 7 Aug 2013 13:47:58 -0400 Subject: [PATCH] Was not interpolating an error message arguments properly. --- glymur/codestream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glymur/codestream.py b/glymur/codestream.py index 4a5a5d2..2c24bef 100644 --- a/glymur/codestream.py +++ b/glymur/codestream.py @@ -556,8 +556,8 @@ class Codestream(object): mantissa_exponent_buffer_length = length - 4 cqcc, sqcc = struct.unpack(fmt, read_buffer) if cqcc >= self._csiz: - msg = "Invalid component number (%d), " - msg += "number of components is only %d." + msg = "Invalid component number ({0}), " + msg += "number of components is only {1}." msg = msg.format(cqcc, self._csiz) warnings.warn(msg)