changeset 13051:120eccaaa522

encoding: fix typo in variable name The typo had no real effect, except for an unnecessary UTF-8 encoding.
author Martin Geisler <mg@aragost.com>
date Mon, 29 Nov 2010 10:13:55 +0100
parents 3790452d499b
children 25200c7efe0f
files mercurial/encoding.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/encoding.py	Sun Nov 28 18:21:47 2010 -0600
+++ b/mercurial/encoding.py	Mon Nov 29 10:13:55 2010 +0100
@@ -95,7 +95,7 @@
     for e in ('UTF-8', fallbackencoding):
         try:
             u = s.decode(e) # attempt strict decoding
-            if u == 'UTF-8':
+            if e == 'UTF-8':
                 return localstr(s, u.encode(encoding, "replace"))
             else:
                 return localstr(u.encode('UTF-8'),