changeset 8343:6fbbb90261b1

mail: updated comment
author Martin Geisler <mg@lazybytes.net>
date Fri, 08 May 2009 15:14:04 +0200
parents b24290c72a1d
children 873429914ec5
files mercurial/mail.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/mail.py	Mon May 11 13:03:34 2009 +0300
+++ b/mercurial/mail.py	Fri May 08 15:14:04 2009 +0200
@@ -119,7 +119,7 @@
     charsets = [cs.lower() for cs in ui.configlist('email', 'charsets')]
     fallbacks = [encoding.fallbackencoding.lower(),
                  encoding.encoding.lower(), 'utf-8']
-    for cs in fallbacks: # util.unique does not keep order
+    for cs in fallbacks: # find unique charsets while keeping order
         if cs not in charsets:
             charsets.append(cs)
     return [cs for cs in charsets if not cs.endswith('ascii')]