Skip to content

Commit 9feb2b3

Browse files
committed
Stop declaring unused variables
1 parent 36390dc commit 9feb2b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

haystack/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def changelist_view(self, request, extra_context=None):
128128
kwargs["list_max_show_all"] = self.list_max_show_all
129129

130130
changelist = SearchChangeList(**kwargs)
131-
formset = changelist.formset = None
131+
changelist.formset = None
132132
media = self.media
133133

134134
# Build the action form and populate it with available actions.

haystack/utils/geo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def ensure_distance(dist):
5858
try:
5959
# Since we mostly only care about the ``.km`` attribute, make sure
6060
# it's there.
61-
km = dist.km
61+
dist.km
6262
except AttributeError:
6363
raise SpatialError("'%s' does not appear to be a 'Distance' object." % dist)
6464

0 commit comments

Comments
 (0)