From a8d0670db7fafb3106b2318d5611bf1f59093d7e Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Thu, 24 Oct 2013 11:56:48 +0200 Subject: [PATCH] fix PEP-8 minors --- isso/__init__.py | 5 ++--- isso/notify.py | 3 --- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/isso/__init__.py b/isso/__init__.py index e4816a5..a5cc851 100644 --- a/isso/__init__.py +++ b/isso/__init__.py @@ -32,7 +32,6 @@ dist = pkg_resources.get_distribution("isso") import sys import os -import socket from os.path import dirname, join from argparse import ArgumentParser @@ -50,7 +49,7 @@ from werkzeug.contrib.fixers import ProxyFix from jinja2 import Environment, FileSystemLoader -from isso import db, migrate, views, wsgi, colors +from isso import db, migrate, views, wsgi from isso.core import NaiveMixin, uWSGIMixin, Config from isso.views import comment, admin @@ -104,7 +103,7 @@ class Isso(object): try: handler, values = adapter.match() return handler(self, request.environ, request, **values) - except NotFound as e: + except NotFound: return Response('Not Found', 404) except MethodNotAllowed: return Response("Yup.", 200) diff --git a/isso/notify.py b/isso/notify.py index 2bc1211..c37c30f 100644 --- a/isso/notify.py +++ b/isso/notify.py @@ -58,9 +58,6 @@ class SMTPMailer(object): self.from_addr = conf.get('SMTP', 'from') self.to_addr = conf.get('SMTP', 'to') - with Connection(self.conf): - pass - def sendmail(self, subject, body): msg = MIMEText(body, 'plain', 'utf-8')