Skip to content

Commit 12db949

Browse files
committed
Remove unused report_stats
I think it was supposed to be self.report_stats. But self.report_stats = False on initialization so the code wouldn't have done anything useful anyway.
1 parent 407aae8 commit 12db949

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roundup/rest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2212,11 +2212,12 @@ def dispatch(self, method, uri, input):
22122212

22132213
# check for runtime statistics
22142214
try:
2215+
# self.report_stats initialized to False
22152216
self.report_stats = input['@stats'].value.lower() == "true"
22162217
# Can also return a TypeError ("not indexable")
22172218
# In case the FieldStorage could not parse the result
22182219
except (KeyError, TypeError):
2219-
report_stats = False
2220+
pass
22202221

22212222
# check for @apiver in query string
22222223
msg = _("Unrecognized api version: %s. "

0 commit comments

Comments
 (0)