root/gaphor/tags/gaphor-0.2.0/utils/dist_mo.py

Revision 190, 400 bytes (checked in by arjanmol, 6 years ago)

*** empty log message ***

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 # vim:sw=4:et
2
3 from distutils.dist import Distribution as _Distribution
4
5 class Distribution(_Distribution):
6
7     def __init__(self, attrs=None):
8         if attrs and attrs.has_key('all_linguas'):
9             self.all_linguas = attrs['all_linguas']
10             del attrs['all_linguas']
11         _Distribution.__init__(self, attrs)
12
13     def get_all_linguas(self):
14         return self.all_linguas or []
15
Note: See TracBrowser for help on using the browser.