summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk Wallenstein <halsmit@t-online.de>2011-01-12 23:05:08 +0000
committerJeremy Kerr <jk@ozlabs.org>2011-02-11 08:52:19 +0800
commitbf0aef79a1e5b1d0b78c10df4a610b0a7b2d365f (patch)
tree44b099a890adbbbab26df53bcde11c111749e2f9
parent9dee7bf3a168d7662709b5e0fba04ef34e05c01e (diff)
downloadpatchwork-bf0aef79a1e5b1d0b78c10df4a610b0a7b2d365f.tar.bz2
patchwork-bf0aef79a1e5b1d0b78c10df4a610b0a7b2d365f.tar.xz
Replace tab in indentation with space
Signed-off-by: Dirk Wallenstein <halsmit@t-online.de> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--apps/patchwork/forms.py6
-rw-r--r--apps/patchwork/tests/encodings.py6
-rw-r--r--apps/patchwork/tests/utils.py4
-rw-r--r--apps/patchwork/views/bundle.py16
-rw-r--r--apps/patchwork/views/xmlrpc.py8
5 files changed, 20 insertions, 20 deletions
diff --git a/apps/patchwork/forms.py b/apps/patchwork/forms.py
index 1c5aeef..4c811f5 100644
--- a/apps/patchwork/forms.py
+++ b/apps/patchwork/forms.py
@@ -45,9 +45,9 @@ class RegistrationForm(RegistrationFormUniqueEmail):
user.last_name = self.cleaned_data.get('last_name', '')
user.save()
- # saving the userprofile causes the firstname/lastname to propagate
- # to the person objects.
- user.get_profile().save()
+ # saving the userprofile causes the firstname/lastname to propagate
+ # to the person objects.
+ user.get_profile().save()
return user
diff --git a/apps/patchwork/tests/encodings.py b/apps/patchwork/tests/encodings.py
index 397b39b..db98483 100644
--- a/apps/patchwork/tests/encodings.py
+++ b/apps/patchwork/tests/encodings.py
@@ -69,9 +69,9 @@ class UTF8HeaderPatchViewTest(UTF8PatchViewTest):
def setUp(self):
defaults.project.save()
- self.patch_author = Person(name = self.patch_author_name,
- email = defaults.patch_author_person.email)
- self.patch_author.save()
+ self.patch_author = Person(name = self.patch_author_name,
+ email = defaults.patch_author_person.email)
+ self.patch_author.save()
self.patch_content = read_patch(self.patch_filename,
encoding = self.patch_encoding)
self.patch = Patch(project = defaults.project,
diff --git a/apps/patchwork/tests/utils.py b/apps/patchwork/tests/utils.py
index cf445aa..02c4bd4 100644
--- a/apps/patchwork/tests/utils.py
+++ b/apps/patchwork/tests/utils.py
@@ -40,7 +40,7 @@ class defaults(object):
patch_author = 'Patch Author <patch-author@example.com>'
patch_author_person = Person(name = 'Patch Author',
- email = 'patch-author@example.com')
+ email = 'patch-author@example.com')
comment_author = 'Comment Author <comment-author@example.com>'
@@ -92,7 +92,7 @@ def find_in_context(context, key):
def read_patch(filename, encoding = None):
file_path = os.path.join(_test_patch_dir, filename)
if encoding is not None:
- f = codecs.open(file_path, encoding = encoding)
+ f = codecs.open(file_path, encoding = encoding)
else:
f = file(file_path)
diff --git a/apps/patchwork/views/bundle.py b/apps/patchwork/views/bundle.py
index 18beb08..62b50d4 100644
--- a/apps/patchwork/views/bundle.py
+++ b/apps/patchwork/views/bundle.py
@@ -110,17 +110,17 @@ def bundles(request):
if request.method == 'POST':
form_name = request.POST.get('form_name', '')
- if form_name == DeleteBundleForm.name:
- form = DeleteBundleForm(request.POST)
- if form.is_valid():
- bundle = get_object_or_404(Bundle,
- id = form.cleaned_data['bundle_id'])
- bundle.delete()
+ if form_name == DeleteBundleForm.name:
+ form = DeleteBundleForm(request.POST)
+ if form.is_valid():
+ bundle = get_object_or_404(Bundle,
+ id = form.cleaned_data['bundle_id'])
+ bundle.delete()
bundles = Bundle.objects.filter(owner = request.user)
for bundle in bundles:
bundle.delete_form = DeleteBundleForm(auto_id = False,
- initial = {'bundle_id': bundle.id})
+ initial = {'bundle_id': bundle.id})
context['bundles'] = bundles
@@ -174,7 +174,7 @@ def mbox(request, bundle_id):
bundle = get_object_or_404(Bundle, id = bundle_id)
response = HttpResponse(mimetype='text/plain')
response['Content-Disposition'] = 'attachment; filename=bundle-%d.mbox' % \
- bundle.id
+ bundle.id
response.write(bundle.mbox())
return response
diff --git a/apps/patchwork/views/xmlrpc.py b/apps/patchwork/views/xmlrpc.py
index 0d3321f..3310e69 100644
--- a/apps/patchwork/views/xmlrpc.py
+++ b/apps/patchwork/views/xmlrpc.py
@@ -59,14 +59,14 @@ class PatchworkXMLRPCDispatcher(SimpleXMLRPCDispatcher):
def _user_for_request(self, request):
- auth_header = None
+ auth_header = None
if request.META.has_key('HTTP_AUTHORIZATION'):
- auth_header = request.META.get('HTTP_AUTHORIZATION')
+ auth_header = request.META.get('HTTP_AUTHORIZATION')
elif request.META.has_key('Authorization'):
- auth_header = request.META.get('Authorization')
+ auth_header = request.META.get('Authorization')
- if auth_header is None or auth_header == '':
+ if auth_header is None or auth_header == '':
raise Exception("No authentication credentials given")
str = auth_header.strip()