From 74cd9345aedf574448468e3bb4dee1442148c412 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Fri, 20 Apr 2012 11:48:26 +0200 Subject: [PATCH] Lint. --- pastebin/apps/dpaste/forms.py | 10 ++++++---- pastebin/smtp.py | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pastebin/apps/dpaste/forms.py b/pastebin/apps/dpaste/forms.py index 74535ca..5900a8e 100644 --- a/pastebin/apps/dpaste/forms.py +++ b/pastebin/apps/dpaste/forms.py @@ -11,12 +11,13 @@ import datetime EXPIRE_CHOICES = ( (3600, _(u'In one hour')), - (3600*24*7, _(u'In one week')), - (3600*24*30, _(u'In one month')), + (3600 * 24 * 7, _(u'In one week')), + (3600 * 24 * 30, _(u'In one month')), #(3600*24*30*12*100, _(u'Save forever')), # 100 years, I call it forever ;) ) -EXPIRE_DEFAULT = 3600*24*30 +EXPIRE_DEFAULT = 3600 * 24 * 30 + class SnippetForm(forms.ModelForm): lexer = forms.ChoiceField(choices=LEXER_LIST, initial=LEXER_DEFAULT, label=_(u'Lexer')) @@ -91,6 +92,7 @@ USERPREFS_FONT_CHOICES = [(None, _(u'Default'))] + [ USERPREFS_SIZES = [(None, _(u'Default'))] + [(i, '%dpx' % i) for i in range(5, 25)] + class UserSettingsForm(forms.Form): default_name = forms.CharField(label=_(u'Default Name'), required=False) @@ -100,7 +102,7 @@ class UserSettingsForm(forms.Form): widget=forms.CheckboxInput, help_text=_(u'This also enables the super secret \'guess lexer\' function.'), ) - wordwrap = forms.BooleanField( + wordwrap = forms.BooleanField( label=_('Always enable wordwrap'), required=False, widget=forms.CheckboxInput, diff --git a/pastebin/smtp.py b/pastebin/smtp.py index f23b5f3..f773df6 100644 --- a/pastebin/smtp.py +++ b/pastebin/smtp.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):