]> git.proxmox.com Git - zfsonlinux.git/blob - zfs-patches/0018-Fix-flake8-invalid-escape-sequence-x-warning.patch
update/rebase to zfs-0.7.12 with patches from ZOL
[zfsonlinux.git] / zfs-patches / 0018-Fix-flake8-invalid-escape-sequence-x-warning.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Brian Behlendorf <behlendorf1@llnl.gov>
3 Date: Wed, 24 Oct 2018 23:26:08 -0700
4 Subject: [PATCH] Fix flake8 "invalid escape sequence 'x'" warning
5
6 From, https://lintlyci.github.io/Flake8Rules/rules/W605.html
7
8 As of Python 3.6, a backslash-character pair that is not a valid
9 escape sequence now generates a DeprecationWarning. Although this
10 will eventually become a SyntaxError, that will not be for several
11 Python releases.
12
13 Note 'float_pobj' was simply removed from arcstat.py since it
14 was entirely unused.
15
16 Reviewed-by: John Kennedy <john.kennedy@delphix.com>
17 Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
18 Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
19 Closes #8056
20 ---
21 cmd/arcstat/arcstat.py | 1 -
22 1 file changed, 1 deletion(-)
23
24 diff --git a/cmd/arcstat/arcstat.py b/cmd/arcstat/arcstat.py
25 index b52a8c29..d7d3e9b7 100755
26 --- a/cmd/arcstat/arcstat.py
27 +++ b/cmd/arcstat/arcstat.py
28 @@ -112,7 +112,6 @@ cur = {}
29 d = {}
30 out = None
31 kstat = None
32 -float_pobj = re.compile("^[0-9]+(\.[0-9]+)?$")
33
34
35 def detailed_usage():