diff options
author | KingPoo <haojingbo@huawei.com> | 2016-11-14 02:16:24 -0500 |
---|---|---|
committer | Justin chi <chigang@huawei.com> | 2016-11-15 03:20:08 +0000 |
commit | b15421ac53b8f57011613e29505cd8c0275b5066 (patch) | |
tree | 8ca3717d0f38c8ae7d19062b0f08f9b41b865f29 /util | |
parent | a099404ead9151b529de1e1e960cac6e67937ad0 (diff) |
Repair Flake8's warnings & errors
Change-Id: I67e71bc37c0464a0714e1e59b3402973786e4aa6
Signed-off-by: KingPoo <haojingbo@huawei.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/check_valid.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/check_valid.py b/util/check_valid.py index 87cd57ed..36d74ba4 100644 --- a/util/check_valid.py +++ b/util/check_valid.py @@ -25,7 +25,7 @@ def is_valid_ip(ip): if not ip: return False res = re.search( - "^(0?\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}(\/(\d|[1-2]\d|3[0-2]))?$", + "^(0?\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}(\/(\d|[1-2]\d|3[0-2]))?$", # noqa ip) is not None return res |