[extensions-web] review: s/get_filelist/get_file_list/g
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] review: s/get_filelist/get_file_list/g
- Date: Mon, 2 Apr 2012 04:34:19 +0000 (UTC)
commit c765f8f6b9d20211bbef8123c1244b838f0023f2
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Apr 1 22:22:35 2012 -0400
review: s/get_filelist/get_file_list/g
sweettooth/review/views.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index 06a4a81..4decf6c 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -149,7 +149,7 @@ def get_fake_chunks(numlines, tag):
'collapsable': False,
'meta': None }]
-def get_filelist(zipfile):
+def get_file_list(zipfile):
return set(n for n in zipfile.namelist() if not n.endswith('/'))
@ajax_view
@@ -159,7 +159,7 @@ def ajax_get_file_list_view(request, obj):
old_zipfile, new_zipfile = get_zipfiles(version, request.GET.get('oldver', None))
- new_filelist = get_filelist(new_zipfile)
+ new_filelist = get_file_list(new_zipfile)
if old_zipfile is None:
return dict(unchanged=[],
@@ -167,7 +167,7 @@ def ajax_get_file_list_view(request, obj):
added=sorted(new_filelist),
deleted=[])
- old_filelist = get_filelist(old_zipfile)
+ old_filelist = get_file_list(old_zipfile)
both = new_filelist & old_filelist
added = new_filelist - old_filelist
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]