Bug 997575
Summary: | [pylint] E:685,56:_convert_to_outputformat: Undefined variable 'opt' | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Steve Tyler <stephent98> |
Component: | python-bugzilla | Assignee: | Will Woods <wwoods> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | bugs.michael, crobinso, dzickus, jskarvad, stephent98, wwoods |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-08-15 17:17:45 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Steve Tyler
2013-08-15 16:13:31 UTC
In line 685, "opt.output" should be "output": $ less -N /usr/bin/bugzilla ... 657 def _convert_to_outputformat(output): 658 fmt = "" 659 660 if output == "normal": ... 684 else: 685 raise RuntimeError("Unknown output type '%s'" % opt.output) 686 687 return fmt ... Huh, I wonder why our upstream pylint infrastructure didn't catch this? Thanks for noticing Fixed upstream now: https://git.fedorahosted.org/cgit/python-bugzilla.git/commit/?id=c9b2b06ec0bce9a41109193fa3b50a3130910434 Given that the code path can't be hit in practice (it's to prevent against future coding errors), just closing as UPSTREAM since it isn't worth a backport. Thanks. That's way more than I would have known to do ... :-) |