Fix DeprecationWarning regarding invalid escape sequence. Fix SyntaxWarning regarding literal comparison.

This commit is contained in:
Karthikeyan Singaravelan
2020-01-22 18:35:41 +05:30
parent b55d4925b0
commit 51c7e763e5
6 changed files with 6 additions and 6 deletions

View File

@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
r"""
Default AMP
=========

View File

@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
r"""
Nginx AMP
=========

View File

@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
r"""
Systemd AMP
===========

View File

@@ -17,7 +17,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
r"""
SystemV AMP
===========

View File

@@ -105,7 +105,7 @@ class Config(object):
self._loaded_config_file = None
# Re patern for optimize research of `foo`
self.re_pattern = re.compile('(\`.+?\`)')
self.re_pattern = re.compile(r'(\`.+?\`)')
self.parser = ConfigParser()
self.read()

View File

@@ -697,7 +697,7 @@ class _GlancesCurses(object):
if p in stat_display:
self.display_plugin(stat_display[p],
display_optional=plugin_display_optional[p])
if p is not 'load':
if p != 'load':
# Skip last column
self.new_column()