prevent too much bookkeeping in vendors/__init__.py by adding each vendor.__name__ to __all__ from the vendors list.
This commit is contained in:
7
imbox/vendors/__init__.py
vendored
7
imbox/vendors/__init__.py
vendored
@@ -5,6 +5,7 @@ vendors = [GmailMessages]
|
||||
hostname_vendorname_dict = {vendor.hostname: vendor.name for vendor in vendors}
|
||||
name_authentication_string_dict = {vendor.name: vendor.authentication_error_message for vendor in vendors}
|
||||
|
||||
__all__ = ['GmailMessages',
|
||||
'hostname_vendorname_dict',
|
||||
'name_authentication_string_dict']
|
||||
__all__ = [v.__name__ for v in vendors]
|
||||
|
||||
__all__ += ['hostname_vendorname_dict',
|
||||
'name_authentication_string_dict']
|
||||
|
||||
Reference in New Issue
Block a user