-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
12 changed files
with
16 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Remove `getopt` from the list of deprecated modules. | ||
Remove `getopt` and `optparse` from the list of deprecated modules. | ||
|
||
Closes #10211 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"""Test deprecated modules.""" | ||
# pylint: disable=unused-import | ||
# pylint: disable=unused-import, import-error | ||
|
||
import optparse # [deprecated-module] | ||
import formatter # [deprecated-module] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
deprecated-module:4:0:4:15::Deprecated module 'optparse':UNDEFINED | ||
deprecated-module:4:0:4:16::Deprecated module 'formatter':UNDEFINED |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"""Test deprecated modules from Python 3.6.""" | ||
# pylint: disable=unused-import,import-error | ||
|
||
import optparse # [deprecated-module] | ||
import formatter # [deprecated-module] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
deprecated-module:4:0:4:15::Deprecated module 'optparse':UNDEFINED | ||
deprecated-module:4:0:4:16::Deprecated module 'formatter':UNDEFINED |
4 changes: 2 additions & 2 deletions
4
tests/functional/d/deprecated/deprecated_relative_import/dot_relative_import.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# pylint: disable=import-error, missing-module-docstring, unused-import | ||
|
||
# from import of stdlib optparse which should yield deprecated-module error | ||
from optparse import OptionParser # [deprecated-module] | ||
from formatter import NullFormatter # [deprecated-module] | ||
# from import of module internal optparse module inside this package. | ||
# This should not yield deprecated-module error | ||
from .optparse import Bar | ||
from .formatter import Bar |
2 changes: 1 addition & 1 deletion
2
tests/functional/d/deprecated/deprecated_relative_import/dot_relative_import.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
deprecated-module:4:0:4:33::Deprecated module 'optparse':UNDEFINED | ||
deprecated-module:4:0:4:35::Deprecated module 'formatter':UNDEFINED |
6 changes: 3 additions & 3 deletions
6
.../functional/d/deprecated/deprecated_relative_import/subpackage/dot_dot_relative_import.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# pylint: disable=import-error, unused-import, missing-module-docstring | ||
# pylint: disable=import-error, missing-module-docstring, unused-import | ||
|
||
# from import of stdlib optparse which should yield deprecated-module error | ||
from optparse import OptionParser # [deprecated-module] | ||
from formatter import NullFormatter # [deprecated-module] | ||
# from import of module internal optparse module inside this package. | ||
# This should not yield deprecated-module error | ||
from ..optparse import Bar | ||
from .formatter import Bar |
2 changes: 1 addition & 1 deletion
2
...functional/d/deprecated/deprecated_relative_import/subpackage/dot_dot_relative_import.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
deprecated-module:4:0:4:33::Deprecated module 'optparse':UNDEFINED | ||
deprecated-module:4:0:4:35::Deprecated module 'formatter':UNDEFINED |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
no-member:10:4:10:28:test_no_member_in_getattr:Module 'math' has no 'THIS_does_not_EXIST' member:INFERENCE | ||
no-member:25:4:25:33:test_ignored_modules_invalid_pattern:Module 'xml.etree' has no 'THIS_does_not_EXIST' member:INFERENCE | ||
no-member:44:4:44:27:test_ignored_classes_no_recursive_pattern:Module 'sys' has no 'THIS_does_not_EXIST' member:INFERENCE | ||
no-member:9:4:9:28:test_no_member_in_getattr:Module 'math' has no 'THIS_does_not_EXIST' member:INFERENCE | ||
no-member:24:4:24:33:test_ignored_modules_invalid_pattern:Module 'xml.etree' has no 'THIS_does_not_EXIST' member:INFERENCE | ||
no-member:43:4:43:27:test_ignored_classes_no_recursive_pattern:Module 'sys' has no 'THIS_does_not_EXIST' member:INFERENCE |