HomeFreeBSD

Fix flake8 "invalid escape sequence 'x'" warning

Description

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 <john.kennedy@delphix.com>
Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8056

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Oct 25 2018, 6:26 AM
GitHub <noreply@github.com>Committed on Oct 25 2018, 6:26 AM
Parents
rGb3d7725c9432: Remove zfs_gitrev.h
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGb74f48fe1b15: Fix flake8 "invalid escape sequence 'x'" warning (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Oct 25 2018, 6:26 AM