-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New pylint warnings appeared with code "W0602: Using global for X but no assignment is done (global-variable-not-assigned)" where X is a global variable. In the lines pointed by the warnings, "global" was used inside a function scope in order to enable assignment of the global variable to a new value in the function. The reason for these warnings was that pylint noticed we are using "global" for the variable X inside a function scope without actually assigning it to a new value. Overall that was true for the reported cases and I removed the use of "global", but there were only two cases were pylint reported a false-positive. Then we were using "global", but pylint didn't understand there were an assignments. In those cases, I disabled the warnings. Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
- Loading branch information
Showing
2 changed files
with
2 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters