diff options
author | jiansong <jian.song@easystack.cn> | 2017-01-11 22:46:02 -0800 |
---|---|---|
committer | jian.song <jian.song@easystack.cn> | 2017-03-02 07:26:27 +0000 |
commit | 6dce5f4f19b2096c6074fe78cfdd4c6305be8db6 (patch) | |
tree | a338418411604f6e23a044aa56f2ef87eabf01fd /tools | |
parent | 57148d701d80823add450c9c44d9e9e188cfb946 (diff) | |
download | trove-6dce5f4f19b2096c6074fe78cfdd4c6305be8db6.tar.gz |
Handle readfp deprecation
In py3.4 notice method readfp will removed in the future,so use
method readfile to replace it.This warning is only in py3 and
above.Py2,configparse do not have.Actually in py3,This function
is finally pointed to the readfile function
warnings.warn(
"This method will be removed in future versions. "
"Use 'parser.read_file()' instead.",
DeprecationWarning, stacklevel=2
)
self.read_file(fp, source=filename)
Change-Id: I22a2dca71008469a8c8b7afcc0934f3b4adcdae4
Diffstat (limited to 'tools')
-rw-r--r-- | tools/trove-pylint.config | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/trove-pylint.config b/tools/trove-pylint.config index 06031e79..9248f2f4 100644 --- a/tools/trove-pylint.config +++ b/tools/trove-pylint.config @@ -406,6 +406,12 @@ "MongoDbCluster.add_shard" ], [ + "trove/common/stream_codecs.py", + "no-member", + "Instance of 'ConfigParser' has no 'read_file' member", + "IniCodec.deserialize" + ], + [ "trove/common/utils.py", "E1127", "Slice index is not an int, None, or instance with __index__", @@ -1667,4 +1673,4 @@ "--rcfile=./pylintrc", "-E" ] -}
\ No newline at end of file +} |