mercurial/mail.py
changeset 8343 6fbbb90261b1
parent 8332 3e544c074459
child 9246 2de7d96593db
--- 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')]