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

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

No files matched your search

+1 -1
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
=========
+1 -1
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
=========
+1 -1
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
===========
+1 -1
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
===========
+1 -1
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()
+1 -1
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()