summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2018-10-24 23:26:08 -0700
committerGitHub <[email protected]>2018-10-24 23:26:08 -0700
commitb74f48fe1b15b4958da35413edd89060df7a1c30 (patch)
treee772d24c4024bc9d61c96cab6b2f41ea431c25e2 /cmd
parentb3d7725c943292df72fa6812177f912bc58b302d (diff)
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 <[email protected]> Reviewed-by: Richard Elling <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #8056
Diffstat (limited to 'cmd')
-rwxr-xr-xcmd/arcstat/arcstat.py1
1 files changed, 0 insertions, 1 deletions
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():