diff options
| author | Barry Warsaw | 2014-12-22 20:06:20 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2014-12-22 20:06:20 -0500 |
| commit | 286fac3f7c580dfc137ac11290a2ba5713f69472 (patch) | |
| tree | 1449121ac40dca604016bdef820e32ac08964d39 /src/mailman/app/subscriptions.py | |
| parent | fdd4748e2bb8da32a737aef3ba4d7705f654c729 (diff) | |
| download | mailman-286fac3f7c580dfc137ac11290a2ba5713f69472.tar.gz mailman-286fac3f7c580dfc137ac11290a2ba5713f69472.tar.zst mailman-286fac3f7c580dfc137ac11290a2ba5713f69472.zip | |
Remove huge amounts of now unnecessary file boilerplate.
Diffstat (limited to 'src/mailman/app/subscriptions.py')
| -rw-r--r-- | src/mailman/app/subscriptions.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mailman/app/subscriptions.py b/src/mailman/app/subscriptions.py index 620b99c20..e3239e97e 100644 --- a/src/mailman/app/subscriptions.py +++ b/src/mailman/app/subscriptions.py @@ -15,19 +15,14 @@ # You should have received a copy of the GNU General Public License along with # GNU Mailman. If not, see <http://www.gnu.org/licenses/>. -"""Module stuff.""" +"""Handle subscriptions.""" -from __future__ import absolute_import, print_function, unicode_literals - -__metaclass__ = type __all__ = [ 'SubscriptionService', 'handle_ListDeletingEvent', ] -import six - from operator import attrgetter from passlib.utils import generate_password as generate from sqlalchemy import and_, or_ @@ -110,7 +105,7 @@ class SubscriptionService: # the parameter can either be an email address or a user id. query = [] if subscriber is not None: - if isinstance(subscriber, six.text_type): + if isinstance(subscriber, str): # subscriber is an email address. address = user_manager.get_address(subscriber) user = user_manager.get_user(subscriber) |
