Mercurial > p > roundup > code
comparison roundup/rest.py @ 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 | 178705fbeaa8 |
| children | 9a1f5e496e6c |
comparison
equal
deleted
inserted
replaced
| 6560:fdfe3b7387ea | 6561:01a5dd90286e |
|---|---|
| 2210 except (KeyError, TypeError): | 2210 except (KeyError, TypeError): |
| 2211 pretty_output = True | 2211 pretty_output = True |
| 2212 | 2212 |
| 2213 # check for runtime statistics | 2213 # check for runtime statistics |
| 2214 try: | 2214 try: |
| 2215 # self.report_stats initialized to False | |
| 2215 self.report_stats = input['@stats'].value.lower() == "true" | 2216 self.report_stats = input['@stats'].value.lower() == "true" |
| 2216 # Can also return a TypeError ("not indexable") | 2217 # Can also return a TypeError ("not indexable") |
| 2217 # In case the FieldStorage could not parse the result | 2218 # In case the FieldStorage could not parse the result |
| 2218 except (KeyError, TypeError): | 2219 except (KeyError, TypeError): |
| 2219 report_stats = False | 2220 pass |
| 2220 | 2221 |
| 2221 # check for @apiver in query string | 2222 # check for @apiver in query string |
| 2222 msg = _("Unrecognized api version: %s. " | 2223 msg = _("Unrecognized api version: %s. " |
| 2223 "See /rest without specifying api version " | 2224 "See /rest without specifying api version " |
| 2224 "for supported versions.") | 2225 "for supported versions.") |
