From 3fd411930f292cb2d1eb30c11f9e4a2f55b8aa67 Mon Sep 17 00:00:00 2001 From: Torsten Marek Date: Wed, 19 Jun 2013 13:21:58 +0200 Subject: [PATCH] Fix a typo (unexcepted -> unexpected) in the description of the invalid encoding warning. --- checkers/misc.py | 2 +- test/messages/func_invalid_encoded_data.txt | 2 +- test/messages/func_toolonglines.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/checkers/misc.py b/checkers/misc.py index eee5a7e9e..8ecf2b541 100644 --- a/checkers/misc.py +++ b/checkers/misc.py @@ -27,7 +27,7 @@ MSGS = { 'W0511': ('%s', 'fixme', 'Used when a warning note as FIXME or XXX is detected.'), - 'W0512': ('Cannot decode using encoding "%s", unexcepted byte at position %d', + 'W0512': ('Cannot decode using encoding "%s", unexpected byte at position %d', 'invalid-encoded-data', 'Used when a source line cannot be decoded using the specified ' 'source file encoding.'), diff --git a/test/messages/func_invalid_encoded_data.txt b/test/messages/func_invalid_encoded_data.txt index 9dac648d8..4a5c17e25 100644 --- a/test/messages/func_invalid_encoded_data.txt +++ b/test/messages/func_invalid_encoded_data.txt @@ -1 +1 @@ -W: 6: Cannot decode using encoding "utf-8", unexcepted byte at position 11 +W: 6: Cannot decode using encoding "utf-8", unexpected byte at position 11 diff --git a/test/messages/func_toolonglines.txt b/test/messages/func_toolonglines.txt index f8599f591..58bc984da 100644 --- a/test/messages/func_toolonglines.txt +++ b/test/messages/func_toolonglines.txt @@ -2,4 +2,4 @@ C: 1: Line too long (90/80) C: 2: Line too long (94/80) C: 11: Line too long (101/80) C: 17: Line too long (83/80) -W: 11: Cannot decode using encoding "ascii", unexcepted byte at position 37 +W: 11: Cannot decode using encoding "ascii", unexpected byte at position 37