prevent too much bookkeeping in vendors/__init__.py by adding each vendor.__name__ to __all__ from the vendors list.

This commit is contained in:
2018-07-27 14:44:35 -04:00
parent 1fbb8511b9
commit 6f3cc1ab92

View File

@@ -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']