From: Brian Behlendorf Date: Thu, 25 Oct 2018 06:26:08 +0000 (-0700) Subject: Fix flake8 "invalid escape sequence 'x'" warning X-Git-Tag: zfs-0.7.12~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e58d5ef38eff8db96fd4eec29c0af8b938e5039;p=zfs Fix flake8 "invalid escape sequence 'x'" warning From, https://lintlyci.github.io/Flake8Rules/rules/W605.html As of Python 3.6, a backslash-character pair that is not a valid escape sequence now generates a DeprecationWarning. Although this will eventually become a SyntaxError, that will not be for several Python releases. Note 'float_pobj' was simply removed from arcstat.py since it was entirely unused. Reviewed-by: John Kennedy Reviewed-by: Richard Elling Signed-off-by: Brian Behlendorf Closes #8056 --- diff --git a/cmd/arcstat/arcstat.py b/cmd/arcstat/arcstat.py index b52a8c294..d7d3e9b73 100755 --- a/cmd/arcstat/arcstat.py +++ b/cmd/arcstat/arcstat.py @@ -112,7 +112,6 @@ cur = {} d = {} out = None kstat = None -float_pobj = re.compile("^[0-9]+(\.[0-9]+)?$") def detailed_usage():