From 6178d66f0d75cbbdf962e47a9a74e8a326469c87 Mon Sep 17 00:00:00 2001 From: volpino Date: Sun, 29 Jul 2012 10:13:17 +0200 Subject: [PATCH] euscanwww: removing unused import and PEP8 cleaning Signed-off-by: volpino --- euscanwww/djeuscan/processing/scan/scan_portage.py | 1 + euscanwww/djeuscan/tasks.py | 2 +- euscanwww/euscanwww/sendmail.py | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/euscanwww/djeuscan/processing/scan/scan_portage.py b/euscanwww/djeuscan/processing/scan/scan_portage.py index 25ca211..bf6a1fc 100644 --- a/euscanwww/djeuscan/processing/scan/scan_portage.py +++ b/euscanwww/djeuscan/processing/scan/scan_portage.py @@ -13,6 +13,7 @@ from euscan.version import get_version_type from djeuscan.processing import FakeLogger from djeuscan.models import Package, Version, VersionLog, Category, Overlay + class ScanPortage(object): def __init__(self, logger=None, no_log=False, purge_packages=False, purge_versions=False): diff --git a/euscanwww/djeuscan/tasks.py b/euscanwww/djeuscan/tasks.py index e3898cc..a474920 100644 --- a/euscanwww/djeuscan/tasks.py +++ b/euscanwww/djeuscan/tasks.py @@ -173,7 +173,7 @@ def update_portage(packages=None): @task def update_upstream(): if settings.TASKS_UPSTREAM_GROUPS >= 1: - packages = Package.objects.all().order_by('pk') # .order_by('?') ? + packages = Package.objects.all().order_by('pk') # .order_by('?') ? scan_upstream_sub = group_chunks(scan_upstream, packages, settings.TASKS_UPSTREAM_GROUPS, diff --git a/euscanwww/euscanwww/sendmail.py b/euscanwww/euscanwww/sendmail.py index f23b5f3..691b05b 100644 --- a/euscanwww/euscanwww/sendmail.py +++ b/euscanwww/euscanwww/sendmail.py @@ -2,9 +2,9 @@ import threading -from django.conf import settings from django.core.mail.backends.base import BaseEmailBackend -from subprocess import Popen,PIPE +from subprocess import Popen, PIPE + class EmailBackend(BaseEmailBackend): def __init__(self, fail_silently=False, **kwargs): @@ -40,7 +40,7 @@ class EmailBackend(BaseEmailBackend): if not email_message.recipients(): return False try: - ps = Popen(["sendmail"]+list(email_message.recipients()), \ + ps = Popen(["sendmail"] + list(email_message.recipients()), \ stdin=PIPE) ps.stdin.write(email_message.message().as_string()) ps.stdin.flush()