changeset 6561:01a5dd90286e

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.
author John Rouillard <rouilj@ieee.org>
date Mon, 13 Dec 2021 23:20:52 -0500
parents fdfe3b7387ea
children c77bd76b57da
files roundup/rest.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/rest.py	Mon Dec 13 22:18:15 2021 -0500
+++ b/roundup/rest.py	Mon Dec 13 23:20:52 2021 -0500
@@ -2212,11 +2212,12 @@
 
         # check for runtime statistics
         try:
+            # self.report_stats initialized to False
             self.report_stats = input['@stats'].value.lower() == "true"
         # Can also return a TypeError ("not indexable")
         # In case the FieldStorage could not parse the result
         except (KeyError, TypeError):
-            report_stats = False
+            pass
 
         # check for @apiver in query string
         msg = _("Unrecognized api version: %s. "

Roundup Issue Tracker: http://roundup-tracker.org/