mirror of
https://github.com/nicolargo/glances.git
synced 2026-03-13 03:17:12 -04:00
Fix DeprecationWarning regarding invalid escape sequence. Fix SyntaxWarning regarding literal comparison.
This commit is contained in:
@@ -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
|
||||
=========
|
||||
|
||||
|
||||
@@ -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
|
||||
=========
|
||||
|
||||
|
||||
@@ -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
|
||||
===========
|
||||
|
||||
|
||||
@@ -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
|
||||
===========
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user