* Changed this regex as pylint suggested: from: "^([0-9\.]+) ([EPTGMK])B$" to: "^([0-9.]+) ([EPTGMK])B$"
Signed-off-by: Gris Ge <f...@redhat.com> --- plugin/megaraid/megaraid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/megaraid/megaraid.py b/plugin/megaraid/megaraid.py index fa84cd7..cc4e238 100644 --- a/plugin/megaraid/megaraid.py +++ b/plugin/megaraid/megaraid.py @@ -117,7 +117,7 @@ def _mega_size_to_lsm(mega_size): LSI Using 'TB, GB, MB, KB' and etc, for LSM, they are 'TiB' and etc. Return int of block bytes """ - re_regex = re.compile("^([0-9\.]+) ([EPTGMK])B$") + re_regex = re.compile("^([0-9.]+) ([EPTGMK])B$") re_match = re_regex.match(mega_size) if re_match: return size_human_2_size_bytes( -- 1.8.3.1 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Libstoragemgmt-devel mailing list Libstoragemgmt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libstoragemgmt-devel