Revision: 6312
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6312&view=rev
Author:   mdboom
Date:     2008-10-23 17:35:14 +0000 (Thu, 23 Oct 2008)

Log Message:
-----------
Fix duplicate aliases.

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/artist.py

Modified: trunk/matplotlib/lib/matplotlib/artist.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/artist.py   2008-10-23 17:21:49 UTC (rev 
6311)
+++ trunk/matplotlib/lib/matplotlib/artist.py   2008-10-23 17:35:14 UTC (rev 
6312)
@@ -651,7 +651,7 @@
             if not self.is_alias(func): continue
             docstring = func.__doc__
             fullname = docstring[10:]
-            aliases.setdefault(fullname[4:], []).append(name[4:])
+            aliases.setdefault(fullname[4:], {})[name[4:]] = None
         return aliases
 
     _get_valid_values_regex = 
re.compile(r"\n\s*ACCEPTS:\s*((?:.|\n)*?)(?:$|(?:\n\n))")
@@ -731,7 +731,7 @@
         """
 
         if s in self.aliasd:
-            aliases = ''.join([' or %s' % x for x in self.aliasd[s]])
+            aliases = ''.join([' or %s' % x for x in self.aliasd[s].keys()])
         else:
             aliases = ''
         return ':meth:`%s <%s>`%s' % (s, target, aliases)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to